Skip to content

Commit

Permalink
Fix missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
ducvm29 committed Oct 22, 2024
1 parent a4e6393 commit d410347
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions commons/api_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ var ApiPath = struct {
DedicatedFKEUpgradeVersion func(vpcId string, clusterId string) string
DedicatedFKEManagement func(vpcId string, clusterId string) string

ManagedFKEList func(vpcId string, page int, pageSize int, infraType string) string
ManagedFKEGet func(vpcId string, platform string, clusterId string) string
ManagedFKEDelete func(vpcId string, platform string, clusterName string) string
ManagedFKECreate func(vpcId string, platform string) string
GetFKEOSVersion func(vpcId string, platform string) string
ManagedFKEList func(vpcId string, page int, pageSize int, infraType string) string
ManagedFKEGet func(vpcId string, platform string, clusterId string) string
ManagedFKEDelete func(vpcId string, platform string, clusterName string) string
ManagedFKECreate func(vpcId string, platform string) string
ManagedFKEHibernate func(vpcId, platform, clusterId string) string
ManagedFKEWakeup func(vpcId, platform, clusterId string) string
GetFKEOSVersion func(vpcId string, platform string) string
}{
SSH: "/v1/user/sshs",
Storage: func(vpcId string) string {
Expand Down Expand Up @@ -216,6 +218,18 @@ var ApiPath = struct {
vpcId, platform, clusterId,
)
},
ManagedFKEHibernate: func(vpcId, platform, clusterId string) string {
return fmt.Sprintf(
"/v1/xplat/fke/vpc/%s/m-fke/%s/hibernation-cluster/shoots/%s/hibernate",
vpcId, platform, clusterId,
)
},
ManagedFKEWakeup: func(vpcId, platform, clusterId string) string {
return fmt.Sprintf(
"/v1/xplat/fke/vpc/%s/m-fke/%s/hibernation-cluster/shoots/%s/wakeup",
vpcId, platform, clusterId,
)
},
GetFKEOSVersion: func(vpcId string, platform string) string {
return fmt.Sprintf("/v1/xplat/fke/vpc/%s/m-fke/%s/get_k8s_versions", vpcId, platform)
},
Expand Down

0 comments on commit d410347

Please sign in to comment.