Documentation ¶
Index ¶
- type AddNode
- type AddNodeList
- type AddNodeRequest
- type AddNodeResponse
- type AddonInstance
- type AddonInstanceStatus
- type AddonInstanceStatusStatus
- type AddonInstanceStatusStatusEnum
- type AddonTemplate
- type AuthenticatingProxy
- type Authentication
- type AwakeClusterRequest
- type AwakeClusterResponse
- type CertDuration
- type Cluster
- type ClusterCert
- type ClusterEndpoints
- type ClusterExtendParam
- type ClusterInformation
- type ClusterInformationSpec
- type ClusterMetadata
- type ClusterNodeInformation
- type ClusterNodeInformationMetadata
- type ClusterSpec
- type ClusterSpecCategory
- type ClusterSpecCategoryEnum
- type ClusterSpecKubeProxyMode
- type ClusterSpecKubeProxyModeEnum
- type ClusterSpecType
- type ClusterSpecTypeEnum
- type ClusterStatus
- type Clusters
- type ContainerCidr
- type ContainerNetwork
- type ContainerNetworkMode
- type ContainerNetworkModeEnum
- type ContainerNetworkUpdate
- type Context
- type Contexts
- type CreateAddonInstanceRequest
- type CreateAddonInstanceResponse
- type CreateCloudPersistentVolumeClaimsRequest
- type CreateCloudPersistentVolumeClaimsResponse
- type CreateClusterRequest
- type CreateClusterResponse
- type CreateKubernetesClusterCertRequest
- type CreateKubernetesClusterCertResponse
- type CreateNodePoolRequest
- type CreateNodePoolResponse
- type CreateNodeRequest
- type CreateNodeRequestNodepoolScaleUp
- type CreateNodeRequestNodepoolScaleUpEnum
- type CreateNodeResponse
- type DeleteAddonInstanceRequest
- type DeleteAddonInstanceResponse
- type DeleteCloudPersistentVolumeClaimsRequest
- type DeleteCloudPersistentVolumeClaimsResponse
- type DeleteClusterRequest
- type DeleteClusterRequestDeleteEfs
- type DeleteClusterRequestDeleteEfsEnum
- type DeleteClusterRequestDeleteEni
- type DeleteClusterRequestDeleteEniEnum
- type DeleteClusterRequestDeleteEvs
- type DeleteClusterRequestDeleteEvsEnum
- type DeleteClusterRequestDeleteNet
- type DeleteClusterRequestDeleteNetEnum
- type DeleteClusterRequestDeleteObs
- type DeleteClusterRequestDeleteObsEnum
- type DeleteClusterRequestDeleteSfs
- type DeleteClusterRequestDeleteSfsEnum
- type DeleteClusterRequestTobedeleted
- type DeleteClusterRequestTobedeletedEnum
- type DeleteClusterResponse
- type DeleteNodePoolRequest
- type DeleteNodePoolResponse
- type DeleteNodeRequest
- type DeleteNodeRequestNodepoolScaleDown
- type DeleteNodeRequestNodepoolScaleDownEnum
- type DeleteNodeResponse
- type DeleteStatus
- type EniNetwork
- type HibernateClusterRequest
- type HibernateClusterResponse
- type HostNetwork
- type InstanceRequest
- type InstanceRequestSpec
- type InstanceSpec
- type Job
- type JobMetadata
- type JobSpec
- type JobStatus
- type ListAddonInstancesRequest
- type ListAddonInstancesResponse
- type ListAddonTemplatesRequest
- type ListAddonTemplatesResponse
- type ListClustersRequest
- type ListClustersRequestStatus
- type ListClustersRequestStatusEnum
- type ListClustersRequestType
- type ListClustersRequestTypeEnum
- type ListClustersResponse
- type ListNodePoolsRequest
- type ListNodePoolsResponse
- type ListNodesRequest
- type ListNodesResponse
- type Login
- type LvmConfig
- type MasterSpec
- type Metadata
- type MigrateNodeExtendParam
- type MigrateNodeRequest
- type MigrateNodeResponse
- type MigrateNodesSpec
- type MigrateNodesTask
- type NetworkSubnet
- type NicSpec
- type Node
- type NodeBandwidth
- type NodeCreateRequest
- type NodeEipSpec
- type NodeExtendParam
- type NodeItem
- type NodeLifecycleConfig
- type NodeManagement
- type NodeMetadata
- type NodeNicSpec
- type NodePool
- type NodePoolCondition
- type NodePoolMetadata
- type NodePoolMetadataUpdate
- type NodePoolNodeAutoscaling
- type NodePoolSpec
- type NodePoolSpecType
- type NodePoolSpecTypeEnum
- type NodePoolSpecUpdate
- type NodePoolStatus
- type NodePoolStatusPhase
- type NodePoolStatusPhaseEnum
- type NodePoolUpdate
- type NodePublicIp
- type NodeSpec
- type NodeSpecUpdate
- type NodeStatus
- type NodeStatusPhase
- type NodeStatusPhaseEnum
- type PersistentVolumeClaim
- type PersistentVolumeClaimMetadata
- type PersistentVolumeClaimSpec
- type PersistentVolumeClaimSpecAccessModes
- type PersistentVolumeClaimSpecAccessModesEnum
- type PersistentVolumeClaimStatus
- type QuotaResource
- type ReinstallExtendParam
- type ReinstallK8sOptionsConfig
- type ReinstallNodeSpec
- type ReinstallRuntimeConfig
- type ReinstallServerConfig
- type ReinstallVolumeConfig
- type ReinstallVolumeSpec
- type RemoveNodeRequest
- type RemoveNodeResponse
- type RemoveNodesSpec
- type RemoveNodesTask
- type ResetNode
- type ResetNodeList
- type ResetNodeRequest
- type ResetNodeResponse
- type ResourceRequirements
- type ResourceTag
- type Runtime
- type RuntimeConfig
- type RuntimeName
- type RuntimeNameEnum
- type SecurityId
- type ShowAddonInstanceRequest
- type ShowAddonInstanceResponse
- type ShowClusterRequest
- type ShowClusterResponse
- type ShowJobRequest
- type ShowJobResponse
- type ShowNodePoolRequest
- type ShowNodePoolResponse
- type ShowNodeRequest
- type ShowNodeResponse
- type ShowQuotasRequest
- type ShowQuotasResponse
- type Storage
- type StorageGroups
- type StorageSelectors
- type StorageSelectorsMatchLabels
- type SupportVersions
- type Taint
- type TaintEffect
- type TaintEffectEnum
- type TaskStatus
- type Templatespec
- type UpdateAddonInstanceRequest
- type UpdateAddonInstanceResponse
- type UpdateClusterRequest
- type UpdateClusterResponse
- type UpdateNodePoolRequest
- type UpdateNodePoolResponse
- type UpdateNodeRequest
- type UpdateNodeResponse
- type User
- type UserPassword
- type UserTag
- type Users
- type Versions
- type VirtualSpace
- type Volume
- type VolumeMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNode ¶ added in v0.0.59
type AddNode struct { ServerID string `json:"serverID"` Spec *ReinstallNodeSpec `json:"spec"` }
纳管节点参数。集群内已有节点支持通过重置进行重新安装并接入集群。
type AddNodeList ¶ added in v0.0.59
type AddNodeList struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` NodeList []AddNode `json:"nodeList"` }
重置节点参数。集群内已有节点,支持通过重置节点方式进行重新安装并接入集群,纳管过程将清理节点上系统盘、数据盘数据,并作为新节点接入Kuberntes集群,请提前备份迁移关键数据。
func (AddNodeList) String ¶ added in v0.0.59
func (o AddNodeList) String() string
type AddNodeRequest ¶ added in v0.0.59
type AddNodeRequest struct { ClusterId string `json:"cluster_id"` Body *AddNodeList `json:"body,omitempty"` }
Request Object
func (AddNodeRequest) String ¶ added in v0.0.59
func (o AddNodeRequest) String() string
type AddNodeResponse ¶ added in v0.0.59
type AddNodeResponse struct { Jobid *string `json:"jobid,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AddNodeResponse) String ¶ added in v0.0.59
func (o AddNodeResponse) String() string
type AddonInstance ¶
type AddonInstance struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *Metadata `json:"metadata,omitempty"` Spec *InstanceSpec `json:"spec"` Status *AddonInstanceStatus `json:"status"` }
插件实例详细信息-response结构体
func (AddonInstance) String ¶
func (o AddonInstance) String() string
type AddonInstanceStatus ¶
type AddonInstanceStatus struct { Status AddonInstanceStatusStatus `json:"status"` Reason string `json:"Reason"` Message string `json:"message"` TargetVersions *[]string `json:"targetVersions,omitempty"` CurrentVersion *Versions `json:"currentVersion"` }
插件状态信息
func (AddonInstanceStatus) String ¶
func (o AddonInstanceStatus) String() string
type AddonInstanceStatusStatus ¶
type AddonInstanceStatusStatus struct {
// contains filtered or unexported fields
}
func (AddonInstanceStatusStatus) MarshalJSON ¶
func (c AddonInstanceStatusStatus) MarshalJSON() ([]byte, error)
func (*AddonInstanceStatusStatus) UnmarshalJSON ¶
func (c *AddonInstanceStatusStatus) UnmarshalJSON(b []byte) error
type AddonInstanceStatusStatusEnum ¶
type AddonInstanceStatusStatusEnum struct { RUNNING AddonInstanceStatusStatus ABNORMAL AddonInstanceStatusStatus INSTALLING AddonInstanceStatusStatus INSTALL_FAILED AddonInstanceStatusStatus UPGRADING AddonInstanceStatusStatus UPGRADE_FAILED AddonInstanceStatusStatus DELETING AddonInstanceStatusStatus DELETE_SUCCESS AddonInstanceStatusStatus DELETE_FAILED AddonInstanceStatusStatus AVAILABLE AddonInstanceStatusStatus ROLLBACKING AddonInstanceStatusStatus }
func GetAddonInstanceStatusStatusEnum ¶
func GetAddonInstanceStatusStatusEnum() AddonInstanceStatusStatusEnum
type AddonTemplate ¶
type AddonTemplate struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *Metadata `json:"metadata"` Spec *Templatespec `json:"spec"` }
插件模板详情-response结构体
func (AddonTemplate) String ¶
func (o AddonTemplate) String() string
type AuthenticatingProxy ¶
type AuthenticatingProxy struct { Ca *string `json:"ca,omitempty"` Cert *string `json:"cert,omitempty"` PrivateKey *string `json:"privateKey,omitempty"` }
authenticatingProxy模式相关配置。认证模式为authenticating_proxy时必选
func (AuthenticatingProxy) String ¶
func (o AuthenticatingProxy) String() string
type Authentication ¶
type Authentication struct { Mode *string `json:"mode,omitempty"` AuthenticatingProxy *AuthenticatingProxy `json:"authenticatingProxy,omitempty"` }
func (Authentication) String ¶
func (o Authentication) String() string
type AwakeClusterRequest ¶
type AwakeClusterRequest struct {
ClusterId string `json:"cluster_id"`
}
Request Object
func (AwakeClusterRequest) String ¶
func (o AwakeClusterRequest) String() string
type AwakeClusterResponse ¶
type AwakeClusterResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (AwakeClusterResponse) String ¶
func (o AwakeClusterResponse) String() string
type CertDuration ¶
type CertDuration struct {
Duration int32 `json:"duration"`
}
集群证书有效期
func (CertDuration) String ¶
func (o CertDuration) String() string
type Cluster ¶ added in v0.0.51
type Cluster struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *ClusterMetadata `json:"metadata"` Spec *ClusterSpec `json:"spec"` Status *ClusterStatus `json:"status,omitempty"` }
type ClusterCert ¶
type ClusterCert struct { Server *string `json:"server,omitempty"` CertificateAuthorityData *string `json:"certificate-authority-data,omitempty"` InsecureSkipTlsVerify *bool `json:"insecure-skip-tls-verify,omitempty"` }
func (ClusterCert) String ¶
func (o ClusterCert) String() string
type ClusterEndpoints ¶
type ClusterEndpoints struct { Url *string `json:"url,omitempty"` Type *string `json:"type,omitempty"` }
func (ClusterEndpoints) String ¶
func (o ClusterEndpoints) String() string
type ClusterExtendParam ¶ added in v0.0.46
type ClusterExtendParam struct { ClusterAZ *string `json:"clusterAZ,omitempty"` DssMasterVolumes *string `json:"dssMasterVolumes,omitempty"` EnterpriseProjectId *string `json:"enterpriseProjectId,omitempty"` KubeProxyMode *string `json:"kubeProxyMode,omitempty"` ClusterExternalIP *string `json:"clusterExternalIP,omitempty"` AlphaCceFixPoolMask *string `json:"alpha.cce/fixPoolMask,omitempty"` DecMasterFlavor *string `json:"decMasterFlavor,omitempty"` DockerUmaskMode *string `json:"dockerUmaskMode,omitempty"` KubernetesIoCpuManagerPolicy *string `json:"kubernetes.io/cpuManagerPolicy,omitempty"` OrderID *string `json:"orderID,omitempty"` PeriodType *string `json:"periodType,omitempty"` PeriodNum *int32 `json:"periodNum,omitempty"` IsAutoRenew *string `json:"isAutoRenew,omitempty"` IsAutoPay *string `json:"isAutoPay,omitempty"` Upgradefrom *string `json:"upgradefrom,omitempty"` }
func (ClusterExtendParam) String ¶ added in v0.0.46
func (o ClusterExtendParam) String() string
type ClusterInformation ¶
type ClusterInformation struct {
Spec *ClusterInformationSpec `json:"spec"`
}
func (ClusterInformation) String ¶
func (o ClusterInformation) String() string
type ClusterInformationSpec ¶
type ClusterInformationSpec struct { Description *string `json:"description,omitempty"` CustomSan *[]string `json:"customSan,omitempty"` ContainerNetwork *ContainerNetworkUpdate `json:"containerNetwork,omitempty"` }
func (ClusterInformationSpec) String ¶
func (o ClusterInformationSpec) String() string
type ClusterMetadata ¶
type ClusterMetadata struct { Name string `json:"name"` Uid *string `json:"uid,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` Labels map[string]string `json:"labels,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` UpdateTimestamp *string `json:"updateTimestamp,omitempty"` }
可以通过 annotations[\"cluster.install.addons/install\"] 来指定创建集群时需要安装的插件,格式形如 ``` [ { \"addonTemplateName\": \"autoscaler\", \"version\": \"1.15.3\", \"values\": { \"flavor\": { \"description\": \"Has only one instance\", \"name\": \"Single\", \"replicas\": 1, \"resources\": [ { \"limitsCpu\": \"100m\", \"limitsMem\": \"300Mi\", \"name\": \"autoscaler\", \"requestsCpu\": \"100m\", \"requestsMem\": \"300Mi\" } ] }, \"custom\": { \"coresTotal\": 32000, \"maxEmptyBulkDeleteFlag\": 10, \"maxNodesTotal\": 1000, \"memoryTotal\": 128000, \"scaleDownDelayAfterAdd\": 10, \"scaleDownDelayAfterDelete\": 10, \"scaleDownDelayAfterFailure\": 3, \"scaleDownEnabled\": false, \"scaleDownUnneededTime\": 10, \"scaleDownUtilizationThreshold\": 0.5, \"scaleUpCpuUtilizationThreshold\": 1, \"scaleUpMemUtilizationThreshold\": 1, \"scaleUpUnscheduledPodEnabled\": true, \"scaleUpUtilizationEnabled\": true, \"tenant_id\": \"47eb1d64cbeb45cfa01ae20af4f4b563\", \"unremovableNodeRecheckTimeout\": 5 } } } ] ```
func (ClusterMetadata) String ¶
func (o ClusterMetadata) String() string
type ClusterNodeInformation ¶ added in v0.0.51
type ClusterNodeInformation struct {
Metadata *ClusterNodeInformationMetadata `json:"metadata"`
}
func (ClusterNodeInformation) String ¶ added in v0.0.51
func (o ClusterNodeInformation) String() string
type ClusterNodeInformationMetadata ¶ added in v0.0.51
type ClusterNodeInformationMetadata struct {
Name string `json:"name"`
}
func (ClusterNodeInformationMetadata) String ¶ added in v0.0.51
func (o ClusterNodeInformationMetadata) String() string
type ClusterSpec ¶ added in v0.0.51
type ClusterSpec struct { Category *ClusterSpecCategory `json:"category,omitempty"` Type *ClusterSpecType `json:"type,omitempty"` Flavor string `json:"flavor"` Version *string `json:"version,omitempty"` PlatformVersion *string `json:"platformVersion,omitempty"` Description *string `json:"description,omitempty"` CustomSan *[]string `json:"customSan,omitempty"` Ipv6enable *bool `json:"ipv6enable,omitempty"` OffloadCluster *bool `json:"offloadCluster,omitempty"` HostNetwork *HostNetwork `json:"hostNetwork"` ContainerNetwork *ContainerNetwork `json:"containerNetwork"` EniNetwork *EniNetwork `json:"eniNetwork,omitempty"` Authentication *Authentication `json:"authentication,omitempty"` BillingMode *int32 `json:"billingMode,omitempty"` Masters *[]MasterSpec `json:"masters,omitempty"` KubernetesSvcIpRange *string `json:"kubernetesSvcIpRange,omitempty"` ClusterTags *[]ResourceTag `json:"clusterTags,omitempty"` KubeProxyMode *ClusterSpecKubeProxyMode `json:"kubeProxyMode,omitempty"` Az *string `json:"az,omitempty"` ExtendParam *ClusterExtendParam `json:"extendParam,omitempty"` SupportIstio *bool `json:"supportIstio,omitempty"` }
集群参数定义。
func (ClusterSpec) String ¶ added in v0.0.51
func (o ClusterSpec) String() string
type ClusterSpecCategory ¶ added in v0.0.51
type ClusterSpecCategory struct {
// contains filtered or unexported fields
}
func (ClusterSpecCategory) MarshalJSON ¶ added in v0.0.51
func (c ClusterSpecCategory) MarshalJSON() ([]byte, error)
func (*ClusterSpecCategory) UnmarshalJSON ¶ added in v0.0.51
func (c *ClusterSpecCategory) UnmarshalJSON(b []byte) error
type ClusterSpecCategoryEnum ¶ added in v0.0.51
type ClusterSpecCategoryEnum struct { CCE ClusterSpecCategory TURBO ClusterSpecCategory }
func GetClusterSpecCategoryEnum ¶ added in v0.0.51
func GetClusterSpecCategoryEnum() ClusterSpecCategoryEnum
type ClusterSpecKubeProxyMode ¶ added in v0.0.51
type ClusterSpecKubeProxyMode struct {
// contains filtered or unexported fields
}
func (ClusterSpecKubeProxyMode) MarshalJSON ¶ added in v0.0.51
func (c ClusterSpecKubeProxyMode) MarshalJSON() ([]byte, error)
func (*ClusterSpecKubeProxyMode) UnmarshalJSON ¶ added in v0.0.51
func (c *ClusterSpecKubeProxyMode) UnmarshalJSON(b []byte) error
type ClusterSpecKubeProxyModeEnum ¶ added in v0.0.51
type ClusterSpecKubeProxyModeEnum struct { IPTABLES ClusterSpecKubeProxyMode IPVS ClusterSpecKubeProxyMode }
func GetClusterSpecKubeProxyModeEnum ¶ added in v0.0.51
func GetClusterSpecKubeProxyModeEnum() ClusterSpecKubeProxyModeEnum
type ClusterSpecType ¶ added in v0.0.51
type ClusterSpecType struct {
// contains filtered or unexported fields
}
func (ClusterSpecType) MarshalJSON ¶ added in v0.0.51
func (c ClusterSpecType) MarshalJSON() ([]byte, error)
func (*ClusterSpecType) UnmarshalJSON ¶ added in v0.0.51
func (c *ClusterSpecType) UnmarshalJSON(b []byte) error
type ClusterSpecTypeEnum ¶ added in v0.0.51
type ClusterSpecTypeEnum struct { VIRTUAL_MACHINE ClusterSpecType ARM64 ClusterSpecType }
func GetClusterSpecTypeEnum ¶ added in v0.0.51
func GetClusterSpecTypeEnum() ClusterSpecTypeEnum
type ClusterStatus ¶
type ClusterStatus struct { Phase *string `json:"phase,omitempty"` JobID *string `json:"jobID,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` Endpoints *[]ClusterEndpoints `json:"endpoints,omitempty"` IsLocked *bool `json:"isLocked,omitempty"` LockScene *string `json:"lockScene,omitempty"` LockSource *string `json:"lockSource,omitempty"` LockSourceId *string `json:"lockSourceId,omitempty"` DeleteOption *interface{} `json:"deleteOption,omitempty"` DeleteStatus *interface{} `json:"deleteStatus,omitempty"` }
func (ClusterStatus) String ¶
func (o ClusterStatus) String() string
type Clusters ¶
type Clusters struct { Name *string `json:"name,omitempty"` Cluster *ClusterCert `json:"cluster,omitempty"` }
type ContainerCidr ¶ added in v0.0.74
type ContainerCidr struct {
Cidr string `json:"cidr"`
}
容器网络网段,指定cidrs字段使用时必填。
func (ContainerCidr) String ¶ added in v0.0.74
func (o ContainerCidr) String() string
type ContainerNetwork ¶
type ContainerNetwork struct { Mode ContainerNetworkMode `json:"mode"` Cidr *string `json:"cidr,omitempty"` Cidrs *[]ContainerCidr `json:"cidrs,omitempty"` }
Container network parameters.
func (ContainerNetwork) String ¶
func (o ContainerNetwork) String() string
type ContainerNetworkMode ¶
type ContainerNetworkMode struct {
// contains filtered or unexported fields
}
func (ContainerNetworkMode) MarshalJSON ¶
func (c ContainerNetworkMode) MarshalJSON() ([]byte, error)
func (*ContainerNetworkMode) UnmarshalJSON ¶
func (c *ContainerNetworkMode) UnmarshalJSON(b []byte) error
type ContainerNetworkModeEnum ¶
type ContainerNetworkModeEnum struct { OVERLAY_L2 ContainerNetworkMode VPC_ROUTER ContainerNetworkMode ENI ContainerNetworkMode }
func GetContainerNetworkModeEnum ¶
func GetContainerNetworkModeEnum() ContainerNetworkModeEnum
type ContainerNetworkUpdate ¶ added in v0.0.74
type ContainerNetworkUpdate struct {
Cidrs *[]ContainerCidr `json:"cidrs,omitempty"`
}
func (ContainerNetworkUpdate) String ¶ added in v0.0.74
func (o ContainerNetworkUpdate) String() string
type Context ¶
type Contexts ¶
type CreateAddonInstanceRequest ¶
type CreateAddonInstanceRequest struct {
Body *InstanceRequest `json:"body,omitempty"`
}
Request Object
func (CreateAddonInstanceRequest) String ¶
func (o CreateAddonInstanceRequest) String() string
type CreateAddonInstanceResponse ¶
type CreateAddonInstanceResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` Spec *InstanceSpec `json:"spec,omitempty"` Status *AddonInstanceStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateAddonInstanceResponse) String ¶
func (o CreateAddonInstanceResponse) String() string
type CreateCloudPersistentVolumeClaimsRequest ¶
type CreateCloudPersistentVolumeClaimsRequest struct { Namespace string `json:"namespace"` XClusterID *string `json:"X-Cluster-ID,omitempty"` Body *PersistentVolumeClaim `json:"body,omitempty"` }
Request Object
func (CreateCloudPersistentVolumeClaimsRequest) String ¶
func (o CreateCloudPersistentVolumeClaimsRequest) String() string
type CreateCloudPersistentVolumeClaimsResponse ¶
type CreateCloudPersistentVolumeClaimsResponse struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Metadata *PersistentVolumeClaimMetadata `json:"metadata,omitempty"` Spec *PersistentVolumeClaimSpec `json:"spec,omitempty"` Status *PersistentVolumeClaimStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateCloudPersistentVolumeClaimsResponse) String ¶
func (o CreateCloudPersistentVolumeClaimsResponse) String() string
type CreateClusterRequest ¶
type CreateClusterRequest struct {
Body *Cluster `json:"body,omitempty"`
}
Request Object
func (CreateClusterRequest) String ¶
func (o CreateClusterRequest) String() string
type CreateClusterResponse ¶
type CreateClusterResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *ClusterMetadata `json:"metadata,omitempty"` Spec *ClusterSpec `json:"spec,omitempty"` Status *ClusterStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateClusterResponse) String ¶
func (o CreateClusterResponse) String() string
type CreateKubernetesClusterCertRequest ¶
type CreateKubernetesClusterCertRequest struct { ClusterId string `json:"cluster_id"` Body *CertDuration `json:"body,omitempty"` }
Request Object
func (CreateKubernetesClusterCertRequest) String ¶
func (o CreateKubernetesClusterCertRequest) String() string
type CreateKubernetesClusterCertResponse ¶
type CreateKubernetesClusterCertResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Preferences *interface{} `json:"preferences,omitempty"` Clusters *[]Clusters `json:"clusters,omitempty"` Users *[]Users `json:"users,omitempty"` Contexts *[]Contexts `json:"contexts,omitempty"` CurrentContext *string `json:"current-context,omitempty"` PortID *string `json:"Port-ID,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateKubernetesClusterCertResponse) String ¶
func (o CreateKubernetesClusterCertResponse) String() string
type CreateNodePoolRequest ¶
type CreateNodePoolRequest struct { ClusterId string `json:"cluster_id"` Body *NodePool `json:"body,omitempty"` }
Request Object
func (CreateNodePoolRequest) String ¶
func (o CreateNodePoolRequest) String() string
type CreateNodePoolResponse ¶
type CreateNodePoolResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodePoolMetadata `json:"metadata,omitempty"` Spec *NodePoolSpec `json:"spec,omitempty"` Status *NodePoolStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateNodePoolResponse) String ¶
func (o CreateNodePoolResponse) String() string
type CreateNodeRequest ¶
type CreateNodeRequest struct { ClusterId string `json:"cluster_id"` NodepoolScaleUp *CreateNodeRequestNodepoolScaleUp `json:"nodepoolScaleUp,omitempty"` Body *NodeCreateRequest `json:"body,omitempty"` }
Request Object
func (CreateNodeRequest) String ¶
func (o CreateNodeRequest) String() string
type CreateNodeRequestNodepoolScaleUp ¶
type CreateNodeRequestNodepoolScaleUp struct {
// contains filtered or unexported fields
}
func (CreateNodeRequestNodepoolScaleUp) MarshalJSON ¶
func (c CreateNodeRequestNodepoolScaleUp) MarshalJSON() ([]byte, error)
func (*CreateNodeRequestNodepoolScaleUp) UnmarshalJSON ¶
func (c *CreateNodeRequestNodepoolScaleUp) UnmarshalJSON(b []byte) error
type CreateNodeRequestNodepoolScaleUpEnum ¶
type CreateNodeRequestNodepoolScaleUpEnum struct {
NODEPOOL_SCALE_UP CreateNodeRequestNodepoolScaleUp
}
func GetCreateNodeRequestNodepoolScaleUpEnum ¶
func GetCreateNodeRequestNodepoolScaleUpEnum() CreateNodeRequestNodepoolScaleUpEnum
type CreateNodeResponse ¶
type CreateNodeResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec,omitempty"` Status *NodeStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateNodeResponse) String ¶
func (o CreateNodeResponse) String() string
type DeleteAddonInstanceRequest ¶
type DeleteAddonInstanceRequest struct { Id string `json:"id"` ClusterId *string `json:"cluster_id,omitempty"` }
Request Object
func (DeleteAddonInstanceRequest) String ¶
func (o DeleteAddonInstanceRequest) String() string
type DeleteAddonInstanceResponse ¶
type DeleteAddonInstanceResponse struct { Body *string `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteAddonInstanceResponse) String ¶
func (o DeleteAddonInstanceResponse) String() string
type DeleteCloudPersistentVolumeClaimsRequest ¶
type DeleteCloudPersistentVolumeClaimsRequest struct { Name string `json:"name"` Namespace string `json:"namespace"` DeleteVolume *string `json:"deleteVolume,omitempty"` StorageType *string `json:"storageType,omitempty"` XClusterID *string `json:"X-Cluster-ID,omitempty"` }
Request Object
func (DeleteCloudPersistentVolumeClaimsRequest) String ¶
func (o DeleteCloudPersistentVolumeClaimsRequest) String() string
type DeleteCloudPersistentVolumeClaimsResponse ¶
type DeleteCloudPersistentVolumeClaimsResponse struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Metadata *PersistentVolumeClaimMetadata `json:"metadata,omitempty"` Spec *PersistentVolumeClaimSpec `json:"spec,omitempty"` Status *PersistentVolumeClaimStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteCloudPersistentVolumeClaimsResponse) String ¶
func (o DeleteCloudPersistentVolumeClaimsResponse) String() string
type DeleteClusterRequest ¶
type DeleteClusterRequest struct { ClusterId string `json:"cluster_id"` ErrorStatus *string `json:"errorStatus,omitempty"` DeleteEfs *DeleteClusterRequestDeleteEfs `json:"delete_efs,omitempty"` DeleteEni *DeleteClusterRequestDeleteEni `json:"delete_eni,omitempty"` DeleteEvs *DeleteClusterRequestDeleteEvs `json:"delete_evs,omitempty"` DeleteNet *DeleteClusterRequestDeleteNet `json:"delete_net,omitempty"` DeleteObs *DeleteClusterRequestDeleteObs `json:"delete_obs,omitempty"` DeleteSfs *DeleteClusterRequestDeleteSfs `json:"delete_sfs,omitempty"` Tobedeleted *DeleteClusterRequestTobedeleted `json:"tobedeleted,omitempty"` }
Request Object
func (DeleteClusterRequest) String ¶
func (o DeleteClusterRequest) String() string
type DeleteClusterRequestDeleteEfs ¶
type DeleteClusterRequestDeleteEfs struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteEfs) MarshalJSON ¶
func (c DeleteClusterRequestDeleteEfs) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteEfs) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteEfs) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteEfsEnum ¶
type DeleteClusterRequestDeleteEfsEnum struct { TRUE DeleteClusterRequestDeleteEfs BLOCK DeleteClusterRequestDeleteEfs TRY DeleteClusterRequestDeleteEfs FALSE DeleteClusterRequestDeleteEfs SKIP DeleteClusterRequestDeleteEfs }
func GetDeleteClusterRequestDeleteEfsEnum ¶
func GetDeleteClusterRequestDeleteEfsEnum() DeleteClusterRequestDeleteEfsEnum
type DeleteClusterRequestDeleteEni ¶
type DeleteClusterRequestDeleteEni struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteEni) MarshalJSON ¶
func (c DeleteClusterRequestDeleteEni) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteEni) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteEni) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteEniEnum ¶
type DeleteClusterRequestDeleteEniEnum struct { TRUE DeleteClusterRequestDeleteEni BLOCK DeleteClusterRequestDeleteEni TRY DeleteClusterRequestDeleteEni FALSE DeleteClusterRequestDeleteEni SKIP DeleteClusterRequestDeleteEni }
func GetDeleteClusterRequestDeleteEniEnum ¶
func GetDeleteClusterRequestDeleteEniEnum() DeleteClusterRequestDeleteEniEnum
type DeleteClusterRequestDeleteEvs ¶
type DeleteClusterRequestDeleteEvs struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteEvs) MarshalJSON ¶
func (c DeleteClusterRequestDeleteEvs) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteEvs) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteEvs) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteEvsEnum ¶
type DeleteClusterRequestDeleteEvsEnum struct { TRUE DeleteClusterRequestDeleteEvs BLOCK DeleteClusterRequestDeleteEvs TRY DeleteClusterRequestDeleteEvs FALSE DeleteClusterRequestDeleteEvs SKIP DeleteClusterRequestDeleteEvs }
func GetDeleteClusterRequestDeleteEvsEnum ¶
func GetDeleteClusterRequestDeleteEvsEnum() DeleteClusterRequestDeleteEvsEnum
type DeleteClusterRequestDeleteNet ¶
type DeleteClusterRequestDeleteNet struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteNet) MarshalJSON ¶
func (c DeleteClusterRequestDeleteNet) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteNet) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteNet) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteNetEnum ¶
type DeleteClusterRequestDeleteNetEnum struct { TRUE DeleteClusterRequestDeleteNet BLOCK DeleteClusterRequestDeleteNet TRY DeleteClusterRequestDeleteNet FALSE DeleteClusterRequestDeleteNet SKIP DeleteClusterRequestDeleteNet }
func GetDeleteClusterRequestDeleteNetEnum ¶
func GetDeleteClusterRequestDeleteNetEnum() DeleteClusterRequestDeleteNetEnum
type DeleteClusterRequestDeleteObs ¶
type DeleteClusterRequestDeleteObs struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteObs) MarshalJSON ¶
func (c DeleteClusterRequestDeleteObs) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteObs) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteObs) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteObsEnum ¶
type DeleteClusterRequestDeleteObsEnum struct { TRUE DeleteClusterRequestDeleteObs BLOCK DeleteClusterRequestDeleteObs TRY DeleteClusterRequestDeleteObs FALSE DeleteClusterRequestDeleteObs SKIP DeleteClusterRequestDeleteObs }
func GetDeleteClusterRequestDeleteObsEnum ¶
func GetDeleteClusterRequestDeleteObsEnum() DeleteClusterRequestDeleteObsEnum
type DeleteClusterRequestDeleteSfs ¶
type DeleteClusterRequestDeleteSfs struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestDeleteSfs) MarshalJSON ¶
func (c DeleteClusterRequestDeleteSfs) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestDeleteSfs) UnmarshalJSON ¶
func (c *DeleteClusterRequestDeleteSfs) UnmarshalJSON(b []byte) error
type DeleteClusterRequestDeleteSfsEnum ¶
type DeleteClusterRequestDeleteSfsEnum struct { TRUE DeleteClusterRequestDeleteSfs BLOCK DeleteClusterRequestDeleteSfs TRY DeleteClusterRequestDeleteSfs FALSE DeleteClusterRequestDeleteSfs SKIP DeleteClusterRequestDeleteSfs }
func GetDeleteClusterRequestDeleteSfsEnum ¶
func GetDeleteClusterRequestDeleteSfsEnum() DeleteClusterRequestDeleteSfsEnum
type DeleteClusterRequestTobedeleted ¶ added in v0.0.51
type DeleteClusterRequestTobedeleted struct {
// contains filtered or unexported fields
}
func (DeleteClusterRequestTobedeleted) MarshalJSON ¶ added in v0.0.51
func (c DeleteClusterRequestTobedeleted) MarshalJSON() ([]byte, error)
func (*DeleteClusterRequestTobedeleted) UnmarshalJSON ¶ added in v0.0.51
func (c *DeleteClusterRequestTobedeleted) UnmarshalJSON(b []byte) error
type DeleteClusterRequestTobedeletedEnum ¶ added in v0.0.51
type DeleteClusterRequestTobedeletedEnum struct {
TRUE DeleteClusterRequestTobedeleted
}
func GetDeleteClusterRequestTobedeletedEnum ¶ added in v0.0.51
func GetDeleteClusterRequestTobedeletedEnum() DeleteClusterRequestTobedeletedEnum
type DeleteClusterResponse ¶
type DeleteClusterResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *ClusterMetadata `json:"metadata,omitempty"` Spec *ClusterSpec `json:"spec,omitempty"` Status *ClusterStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteClusterResponse) String ¶
func (o DeleteClusterResponse) String() string
type DeleteNodePoolRequest ¶
type DeleteNodePoolRequest struct { ClusterId string `json:"cluster_id"` NodepoolId string `json:"nodepool_id"` ErrorStatus *string `json:"errorStatus,omitempty"` }
Request Object
func (DeleteNodePoolRequest) String ¶
func (o DeleteNodePoolRequest) String() string
type DeleteNodePoolResponse ¶
type DeleteNodePoolResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodePoolMetadata `json:"metadata,omitempty"` Spec *NodePoolSpec `json:"spec,omitempty"` Status *NodePoolStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteNodePoolResponse) String ¶
func (o DeleteNodePoolResponse) String() string
type DeleteNodeRequest ¶
type DeleteNodeRequest struct { ClusterId string `json:"cluster_id"` NodeId string `json:"node_id"` ErrorStatus *string `json:"errorStatus,omitempty"` NodepoolScaleDown *DeleteNodeRequestNodepoolScaleDown `json:"nodepoolScaleDown,omitempty"` }
Request Object
func (DeleteNodeRequest) String ¶
func (o DeleteNodeRequest) String() string
type DeleteNodeRequestNodepoolScaleDown ¶
type DeleteNodeRequestNodepoolScaleDown struct {
// contains filtered or unexported fields
}
func (DeleteNodeRequestNodepoolScaleDown) MarshalJSON ¶
func (c DeleteNodeRequestNodepoolScaleDown) MarshalJSON() ([]byte, error)
func (*DeleteNodeRequestNodepoolScaleDown) UnmarshalJSON ¶
func (c *DeleteNodeRequestNodepoolScaleDown) UnmarshalJSON(b []byte) error
type DeleteNodeRequestNodepoolScaleDownEnum ¶
type DeleteNodeRequestNodepoolScaleDownEnum struct {
NO_SCALE_DOWN DeleteNodeRequestNodepoolScaleDown
}
func GetDeleteNodeRequestNodepoolScaleDownEnum ¶
func GetDeleteNodeRequestNodepoolScaleDownEnum() DeleteNodeRequestNodepoolScaleDownEnum
type DeleteNodeResponse ¶
type DeleteNodeResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec,omitempty"` Status *NodeStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteNodeResponse) String ¶
func (o DeleteNodeResponse) String() string
type DeleteStatus ¶
type DeleteStatus struct { PreviousTotal *int32 `json:"previous_total,omitempty"` CurrentTotal *int32 `json:"current_total,omitempty"` Updated *int32 `json:"updated,omitempty"` Added *int32 `json:"added,omitempty"` Deleted *int32 `json:"deleted,omitempty"` }
func (DeleteStatus) String ¶
func (o DeleteStatus) String() string
type EniNetwork ¶
type EniNetwork struct { EniSubnetId string `json:"eniSubnetId"` EniSubnetCIDR string `json:"eniSubnetCIDR"` Subnets []NetworkSubnet `json:"subnets"` }
ENI网络配置,创建集群指定使用云原生网络2.0网络模式时必填subnets和eniSubnetId其中一个字段(eniSubnetCIDR可选,若填写了会校验是否合法),1.19.10及新版本集群使用subnets字段,1.19.8及老版本若使用subnets字段,则取值subnets数组中的第一个子网ID作为容器地址使用的子网ID。
func (EniNetwork) String ¶
func (o EniNetwork) String() string
type HibernateClusterRequest ¶
type HibernateClusterRequest struct {
ClusterId string `json:"cluster_id"`
}
Request Object
func (HibernateClusterRequest) String ¶
func (o HibernateClusterRequest) String() string
type HibernateClusterResponse ¶
type HibernateClusterResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (HibernateClusterResponse) String ¶
func (o HibernateClusterResponse) String() string
type HostNetwork ¶
type HostNetwork struct { Vpc string `json:"vpc"` Subnet string `json:"subnet"` SecurityGroup *string `json:"SecurityGroup,omitempty"` }
Node network parameters.
func (HostNetwork) String ¶
func (o HostNetwork) String() string
type InstanceRequest ¶
type InstanceRequest struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *Metadata `json:"metadata"` Spec *InstanceRequestSpec `json:"spec"` }
插件安装/升级-request结构体
func (InstanceRequest) String ¶
func (o InstanceRequest) String() string
type InstanceRequestSpec ¶
type InstanceRequestSpec struct { Version string `json:"version"` ClusterID string `json:"clusterID"` Values map[string]interface{} `json:"values"` AddonTemplateName string `json:"addonTemplateName"` }
spec是集合类的元素类型,内容为插件实例安装/升级的具体请求信息
func (InstanceRequestSpec) String ¶
func (o InstanceRequestSpec) String() string
type InstanceSpec ¶
type InstanceSpec struct { ClusterID string `json:"clusterID"` Version string `json:"version"` AddonTemplateName string `json:"addonTemplateName"` AddonTemplateType string `json:"addonTemplateType"` AddonTemplateLogo *string `json:"addonTemplateLogo,omitempty"` AddonTemplateLabels *[]string `json:"addonTemplateLabels,omitempty"` Description string `json:"description"` Values map[string]interface{} `json:"values"` }
spec是集合类的元素类型,内容为插件实例具体信息
func (InstanceSpec) String ¶
func (o InstanceSpec) String() string
type Job ¶ added in v0.0.51
type Job struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *JobMetadata `json:"metadata,omitempty"` Spec *JobSpec `json:"spec,omitempty"` Status *JobStatus `json:"status,omitempty"` }
type JobMetadata ¶ added in v0.0.51
type JobMetadata struct { Uid *string `json:"uid,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` UpdateTimestamp *string `json:"updateTimestamp,omitempty"` }
func (JobMetadata) String ¶ added in v0.0.51
func (o JobMetadata) String() string
type JobSpec ¶ added in v0.0.51
type JobSpec struct { Type *string `json:"type,omitempty"` ClusterUID *string `json:"clusterUID,omitempty"` ResourceID *string `json:"resourceID,omitempty"` ResourceName *string `json:"resourceName,omitempty"` ExtendParam map[string]string `json:"extendParam,omitempty"` SubJobs *[]Job `json:"subJobs,omitempty"` }
type JobStatus ¶ added in v0.0.51
type ListAddonInstancesRequest ¶
type ListAddonInstancesRequest struct { AddonTemplateName *string `json:"addon_template_name,omitempty"` ClusterId string `json:"cluster_id"` }
Request Object
func (ListAddonInstancesRequest) String ¶
func (o ListAddonInstancesRequest) String() string
type ListAddonInstancesResponse ¶
type ListAddonInstancesResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Items *[]AddonInstance `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAddonInstancesResponse) String ¶
func (o ListAddonInstancesResponse) String() string
type ListAddonTemplatesRequest ¶
type ListAddonTemplatesRequest struct { AddonTemplateName *string `json:"addon_template_name,omitempty"` BaseUpdateAddonVersion *string `json:"base_update_addon_version,omitempty"` ClusterId *string `json:"cluster_id,omitempty"` Newest *string `json:"newest,omitempty"` Version *string `json:"version,omitempty"` }
Request Object
func (ListAddonTemplatesRequest) String ¶
func (o ListAddonTemplatesRequest) String() string
type ListAddonTemplatesResponse ¶
type ListAddonTemplatesResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Items *[]AddonTemplate `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAddonTemplatesResponse) String ¶
func (o ListAddonTemplatesResponse) String() string
type ListClustersRequest ¶
type ListClustersRequest struct { ErrorStatus *string `json:"errorStatus,omitempty"` Detail *string `json:"detail,omitempty"` Status *ListClustersRequestStatus `json:"status,omitempty"` Type *ListClustersRequestType `json:"type,omitempty"` Version *string `json:"version,omitempty"` }
Request Object
func (ListClustersRequest) String ¶
func (o ListClustersRequest) String() string
type ListClustersRequestStatus ¶
type ListClustersRequestStatus struct {
// contains filtered or unexported fields
}
func (ListClustersRequestStatus) MarshalJSON ¶
func (c ListClustersRequestStatus) MarshalJSON() ([]byte, error)
func (*ListClustersRequestStatus) UnmarshalJSON ¶
func (c *ListClustersRequestStatus) UnmarshalJSON(b []byte) error
type ListClustersRequestStatusEnum ¶
type ListClustersRequestStatusEnum struct { AVAILABLE ListClustersRequestStatus UNAVAILABLE ListClustersRequestStatus SCALING_UP ListClustersRequestStatus SCALING_DOWN ListClustersRequestStatus CREATING ListClustersRequestStatus DELETING ListClustersRequestStatus UPGRADING ListClustersRequestStatus RESIZING ListClustersRequestStatus ROLLING_BACK ListClustersRequestStatus ROLLBACK_FAILED ListClustersRequestStatus EMPTY ListClustersRequestStatus }
func GetListClustersRequestStatusEnum ¶
func GetListClustersRequestStatusEnum() ListClustersRequestStatusEnum
type ListClustersRequestType ¶
type ListClustersRequestType struct {
// contains filtered or unexported fields
}
func (ListClustersRequestType) MarshalJSON ¶
func (c ListClustersRequestType) MarshalJSON() ([]byte, error)
func (*ListClustersRequestType) UnmarshalJSON ¶
func (c *ListClustersRequestType) UnmarshalJSON(b []byte) error
type ListClustersRequestTypeEnum ¶
type ListClustersRequestTypeEnum struct { VIRTUAL_MACHINE ListClustersRequestType ARM64 ListClustersRequestType }
func GetListClustersRequestTypeEnum ¶
func GetListClustersRequestTypeEnum() ListClustersRequestTypeEnum
type ListClustersResponse ¶
type ListClustersResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Items *[]Cluster `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListClustersResponse) String ¶
func (o ListClustersResponse) String() string
type ListNodePoolsRequest ¶
type ListNodePoolsRequest struct { ClusterId string `json:"cluster_id"` ErrorStatus *string `json:"errorStatus,omitempty"` ShowDefaultNodePool *string `json:"showDefaultNodePool,omitempty"` }
Request Object
func (ListNodePoolsRequest) String ¶
func (o ListNodePoolsRequest) String() string
type ListNodePoolsResponse ¶
type ListNodePoolsResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Items *[]NodePool `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListNodePoolsResponse) String ¶
func (o ListNodePoolsResponse) String() string
type ListNodesRequest ¶
type ListNodesRequest struct { ClusterId string `json:"cluster_id"` ErrorStatus *string `json:"errorStatus,omitempty"` }
Request Object
func (ListNodesRequest) String ¶
func (o ListNodesRequest) String() string
type ListNodesResponse ¶
type ListNodesResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Items *[]Node `json:"items,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListNodesResponse) String ¶
func (o ListNodesResponse) String() string
type Login ¶
type Login struct { SshKey *string `json:"sshKey,omitempty"` UserPassword *UserPassword `json:"userPassword,omitempty"` }
type MasterSpec ¶
type MasterSpec struct { AvailabilityZone *string `json:"availabilityZone,omitempty"` Flavor *string `json:"flavor,omitempty"` FaultDomain *string `json:"faultDomain,omitempty"` }
master的配置,支持指定可用区、规格和故障域。若指定故障域,则必须所有master节点都需要指定故障字段。
func (MasterSpec) String ¶
func (o MasterSpec) String() string
type Metadata ¶
type Metadata struct { Uid *string `json:"uid,omitempty"` Name *string `json:"name,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` UpdateTimestamp *string `json:"updateTimestamp,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` }
插件基本信息,集合类的元素类型,包含一组由不同名称定义的属性。
type MigrateNodeExtendParam ¶ added in v0.0.51
type MigrateNodeExtendParam struct { MaxPods *int32 `json:"maxPods,omitempty"` DockerLVMConfigOverride *string `json:"DockerLVMConfigOverride,omitempty"` AlphaCcePreInstall *string `json:"alpha.cce/preInstall,omitempty"` AlphaCcePostInstall *string `json:"alpha.cce/postInstall,omitempty"` AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"` }
func (MigrateNodeExtendParam) String ¶ added in v0.0.51
func (o MigrateNodeExtendParam) String() string
type MigrateNodeRequest ¶ added in v0.0.51
type MigrateNodeRequest struct { ClusterId string `json:"cluster_id"` TargetClusterId string `json:"target_cluster_id"` Body *MigrateNodesTask `json:"body,omitempty"` }
Request Object
func (MigrateNodeRequest) String ¶ added in v0.0.51
func (o MigrateNodeRequest) String() string
type MigrateNodeResponse ¶ added in v0.0.51
type MigrateNodeResponse struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Spec *MigrateNodesSpec `json:"spec,omitempty"` Status *TaskStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (MigrateNodeResponse) String ¶ added in v0.0.51
func (o MigrateNodeResponse) String() string
type MigrateNodesSpec ¶ added in v0.0.51
type MigrateNodesSpec struct { Os string `json:"os"` ExtendParam *MigrateNodeExtendParam `json:"extendParam,omitempty"` Login *Login `json:"login"` Nodes []NodeItem `json:"nodes"` }
func (MigrateNodesSpec) String ¶ added in v0.0.51
func (o MigrateNodesSpec) String() string
type MigrateNodesTask ¶ added in v0.0.51
type MigrateNodesTask struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Spec *MigrateNodesSpec `json:"spec"` Status *TaskStatus `json:"status,omitempty"` }
func (MigrateNodesTask) String ¶ added in v0.0.51
func (o MigrateNodesTask) String() string
type NetworkSubnet ¶ added in v0.0.51
type NetworkSubnet struct {
SubnetID string `json:"subnetID"`
}
ENI网络配置,创建集群指定subnets字段使用时必填。
func (NetworkSubnet) String ¶ added in v0.0.51
func (o NetworkSubnet) String() string
type NicSpec ¶
type NicSpec struct { SubnetId *string `json:"subnetId,omitempty"` FixedIps *[]string `json:"fixedIps,omitempty"` IpBlock *string `json:"ipBlock,omitempty"` }
主网卡的描述信息。
type Node ¶ added in v0.0.51
type Node struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec,omitempty"` Status *NodeStatus `json:"status,omitempty"` }
type NodeBandwidth ¶ added in v0.0.51
type NodeBandwidth struct { Chargemode *string `json:"chargemode,omitempty"` Size *int32 `json:"size,omitempty"` }
func (NodeBandwidth) String ¶ added in v0.0.51
func (o NodeBandwidth) String() string
type NodeCreateRequest ¶ added in v0.0.51
type NodeCreateRequest struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec"` }
func (NodeCreateRequest) String ¶ added in v0.0.51
func (o NodeCreateRequest) String() string
type NodeEipSpec ¶ added in v0.0.51
type NodeEipSpec struct { Iptype *string `json:"iptype,omitempty"` Bandwidth *NodeBandwidth `json:"bandwidth,omitempty"` }
func (NodeEipSpec) String ¶ added in v0.0.51
func (o NodeEipSpec) String() string
type NodeExtendParam ¶ added in v0.0.46
type NodeExtendParam struct { Ecsperformancetype *string `json:"ecs:performancetype,omitempty"` OrderID *string `json:"orderID,omitempty"` ProductID *string `json:"productID,omitempty"` MaxPods *int32 `json:"maxPods,omitempty"` PeriodType *string `json:"periodType,omitempty"` PeriodNum *int32 `json:"periodNum,omitempty"` IsAutoRenew *string `json:"isAutoRenew,omitempty"` IsAutoPay *string `json:"isAutoPay,omitempty"` DockerLVMConfigOverride *string `json:"DockerLVMConfigOverride,omitempty"` DockerBaseSize *int32 `json:"dockerBaseSize,omitempty"` OffloadNode *string `json:"offloadNode,omitempty"` PublicKey *string `json:"publicKey,omitempty"` AlphaCcePreInstall *string `json:"alpha.cce/preInstall,omitempty"` AlphaCcePostInstall *string `json:"alpha.cce/postInstall,omitempty"` AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"` NicMultiqueue *string `json:"nicMultiqueue,omitempty"` NicThreshold *string `json:"nicThreshold,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` ChargingMode *int32 `json:"chargingMode,omitempty"` }
创建节点时的扩展参数。
func (NodeExtendParam) String ¶ added in v0.0.46
func (o NodeExtendParam) String() string
type NodeLifecycleConfig ¶ added in v0.0.59
type NodeLifecycleConfig struct { PreInstall *string `json:"preInstall,omitempty"` PostInstall *string `json:"postInstall,omitempty"` }
节点自定义生命周期配置
func (NodeLifecycleConfig) String ¶ added in v0.0.59
func (o NodeLifecycleConfig) String() string
type NodeManagement ¶
type NodeManagement struct {
ServerGroupReference *string `json:"serverGroupReference,omitempty"`
}
func (NodeManagement) String ¶
func (o NodeManagement) String() string
type NodeMetadata ¶
type NodeMetadata struct { Name *string `json:"name,omitempty"` Uid *string `json:"uid,omitempty"` Labels map[string]string `json:"labels,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` UpdateTimestamp *string `json:"updateTimestamp,omitempty"` }
func (NodeMetadata) String ¶
func (o NodeMetadata) String() string
type NodeNicSpec ¶
type NodeNicSpec struct { PrimaryNic *NicSpec `json:"primaryNic,omitempty"` ExtNics *[]NicSpec `json:"extNics,omitempty"` }
节点网卡的描述信息。
func (NodeNicSpec) String ¶
func (o NodeNicSpec) String() string
type NodePool ¶
type NodePool struct { Kind string `json:"kind"` ApiVersion string `json:"apiVersion"` Metadata *NodePoolMetadata `json:"metadata"` Spec *NodePoolSpec `json:"spec"` Status *NodePoolStatus `json:"status,omitempty"` }
type NodePoolCondition ¶ added in v0.0.56
type NodePoolCondition struct { Type *string `json:"type,omitempty"` Status *string `json:"status,omitempty"` LastProbeTime *string `json:"lastProbeTime,omitempty"` LastTransitTime *string `json:"lastTransitTime,omitempty"` Reason *string `json:"reason,omitempty"` Message *string `json:"message,omitempty"` }
节点池详细状态。
func (NodePoolCondition) String ¶ added in v0.0.56
func (o NodePoolCondition) String() string
type NodePoolMetadata ¶
type NodePoolMetadata struct { Name string `json:"name"` Uid *string `json:"uid,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` UpdateTimestamp *string `json:"updateTimestamp,omitempty"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` }
func (NodePoolMetadata) String ¶
func (o NodePoolMetadata) String() string
type NodePoolMetadataUpdate ¶ added in v0.0.83
type NodePoolMetadataUpdate struct {
Name string `json:"name"`
}
func (NodePoolMetadataUpdate) String ¶ added in v0.0.83
func (o NodePoolMetadataUpdate) String() string
type NodePoolNodeAutoscaling ¶
type NodePoolNodeAutoscaling struct { Enable *bool `json:"enable,omitempty"` MinNodeCount *int32 `json:"minNodeCount,omitempty"` MaxNodeCount *int32 `json:"maxNodeCount,omitempty"` ScaleDownCooldownTime *int32 `json:"scaleDownCooldownTime,omitempty"` Priority *int32 `json:"priority,omitempty"` }
节点池自动伸缩相关配置
func (NodePoolNodeAutoscaling) String ¶
func (o NodePoolNodeAutoscaling) String() string
type NodePoolSpec ¶
type NodePoolSpec struct { Type *NodePoolSpecType `json:"type,omitempty"` NodeTemplate *NodeSpec `json:"nodeTemplate"` InitialNodeCount *int32 `json:"initialNodeCount,omitempty"` Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling,omitempty"` NodeManagement *NodeManagement `json:"nodeManagement,omitempty"` PodSecurityGroups *[]SecurityId `json:"podSecurityGroups,omitempty"` }
func (NodePoolSpec) String ¶
func (o NodePoolSpec) String() string
type NodePoolSpecType ¶
type NodePoolSpecType struct {
// contains filtered or unexported fields
}
func (NodePoolSpecType) MarshalJSON ¶
func (c NodePoolSpecType) MarshalJSON() ([]byte, error)
func (*NodePoolSpecType) UnmarshalJSON ¶
func (c *NodePoolSpecType) UnmarshalJSON(b []byte) error
type NodePoolSpecTypeEnum ¶
type NodePoolSpecTypeEnum struct { VM NodePoolSpecType ELASTIC_BMS NodePoolSpecType }
func GetNodePoolSpecTypeEnum ¶
func GetNodePoolSpecTypeEnum() NodePoolSpecTypeEnum
type NodePoolSpecUpdate ¶ added in v0.0.83
type NodePoolSpecUpdate struct { NodeTemplate *NodeSpecUpdate `json:"nodeTemplate"` InitialNodeCount int32 `json:"initialNodeCount"` Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling"` }
func (NodePoolSpecUpdate) String ¶ added in v0.0.83
func (o NodePoolSpecUpdate) String() string
type NodePoolStatus ¶
type NodePoolStatus struct { CurrentNode *int32 `json:"currentNode,omitempty"` CreatingNode *int32 `json:"creatingNode,omitempty"` DeletingNode *int32 `json:"deletingNode,omitempty"` Phase *NodePoolStatusPhase `json:"phase,omitempty"` JobId *string `json:"jobId,omitempty"` Conditions *[]NodePoolCondition `json:"conditions,omitempty"` }
func (NodePoolStatus) String ¶
func (o NodePoolStatus) String() string
type NodePoolStatusPhase ¶
type NodePoolStatusPhase struct {
// contains filtered or unexported fields
}
func (NodePoolStatusPhase) MarshalJSON ¶
func (c NodePoolStatusPhase) MarshalJSON() ([]byte, error)
func (*NodePoolStatusPhase) UnmarshalJSON ¶
func (c *NodePoolStatusPhase) UnmarshalJSON(b []byte) error
type NodePoolStatusPhaseEnum ¶
type NodePoolStatusPhaseEnum struct { SYNCHRONIZING NodePoolStatusPhase SYNCHRONIZED NodePoolStatusPhase SOLD_OUT NodePoolStatusPhase DELETING NodePoolStatusPhase ERROR NodePoolStatusPhase }
func GetNodePoolStatusPhaseEnum ¶
func GetNodePoolStatusPhaseEnum() NodePoolStatusPhaseEnum
type NodePoolUpdate ¶ added in v0.0.83
type NodePoolUpdate struct { Metadata *NodePoolMetadataUpdate `json:"metadata"` Spec *NodePoolSpecUpdate `json:"spec"` }
func (NodePoolUpdate) String ¶ added in v0.0.83
func (o NodePoolUpdate) String() string
type NodePublicIp ¶ added in v0.0.51
type NodePublicIp struct { Ids *[]string `json:"ids,omitempty"` Count *int32 `json:"count,omitempty"` Eip *NodeEipSpec `json:"eip,omitempty"` }
func (NodePublicIp) String ¶ added in v0.0.51
func (o NodePublicIp) String() string
type NodeSpec ¶ added in v0.0.51
type NodeSpec struct { Flavor string `json:"flavor"` Az string `json:"az"` Os *string `json:"os,omitempty"` Login *Login `json:"login"` RootVolume *Volume `json:"rootVolume"` DataVolumes []Volume `json:"dataVolumes"` Storage *Storage `json:"storage,omitempty"` PublicIP *NodePublicIp `json:"publicIP,omitempty"` NodeNicSpec *NodeNicSpec `json:"nodeNicSpec,omitempty"` Count *int32 `json:"count,omitempty"` BillingMode *int32 `json:"billingMode,omitempty"` Taints *[]Taint `json:"taints,omitempty"` K8sTags map[string]string `json:"k8sTags,omitempty"` EcsGroupId *string `json:"ecsGroupId,omitempty"` FaultDomain *string `json:"faultDomain,omitempty"` DedicatedHostId *string `json:"dedicatedHostId,omitempty"` OffloadNode *bool `json:"offloadNode,omitempty"` UserTags *[]UserTag `json:"userTags,omitempty"` Runtime *Runtime `json:"runtime,omitempty"` ExtendParam *NodeExtendParam `json:"extendParam,omitempty"` }
type NodeSpecUpdate ¶ added in v0.0.83
type NodeSpecUpdate struct { Taints []Taint `json:"taints"` K8sTags map[string]string `json:"k8sTags"` UserTags []UserTag `json:"userTags"` }
func (NodeSpecUpdate) String ¶ added in v0.0.83
func (o NodeSpecUpdate) String() string
type NodeStatus ¶ added in v0.0.51
type NodeStatus struct { Phase *NodeStatusPhase `json:"phase,omitempty"` JobID *string `json:"jobID,omitempty"` ServerId *string `json:"serverId,omitempty"` PrivateIP *string `json:"privateIP,omitempty"` PublicIP *string `json:"publicIP,omitempty"` DeleteStatus *DeleteStatus `json:"deleteStatus,omitempty"` }
func (NodeStatus) String ¶ added in v0.0.51
func (o NodeStatus) String() string
type NodeStatusPhase ¶ added in v0.0.51
type NodeStatusPhase struct {
// contains filtered or unexported fields
}
func (NodeStatusPhase) MarshalJSON ¶ added in v0.0.51
func (c NodeStatusPhase) MarshalJSON() ([]byte, error)
func (*NodeStatusPhase) UnmarshalJSON ¶ added in v0.0.51
func (c *NodeStatusPhase) UnmarshalJSON(b []byte) error
type NodeStatusPhaseEnum ¶ added in v0.0.51
type NodeStatusPhaseEnum struct { BUILD NodeStatusPhase INSTALLING NodeStatusPhase INSTALLED NodeStatusPhase SHUT_DOWN NodeStatusPhase UPGRADING NodeStatusPhase ACTIVE NodeStatusPhase ABNORMAL NodeStatusPhase DELETING NodeStatusPhase ERROR NodeStatusPhase }
func GetNodeStatusPhaseEnum ¶ added in v0.0.51
func GetNodeStatusPhaseEnum() NodeStatusPhaseEnum
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` Metadata *PersistentVolumeClaimMetadata `json:"metadata"` Spec *PersistentVolumeClaimSpec `json:"spec"` Status *PersistentVolumeClaimStatus `json:"status,omitempty"` }
func (PersistentVolumeClaim) String ¶
func (o PersistentVolumeClaim) String() string
type PersistentVolumeClaimMetadata ¶
type PersistentVolumeClaimMetadata struct { Name string `json:"name"` Labels *string `json:"labels,omitempty"` }
metadata是集群对象的元数据定义,是集合类的元素类型,包含一组由不同名称定义的属性。
func (PersistentVolumeClaimMetadata) String ¶
func (o PersistentVolumeClaimMetadata) String() string
type PersistentVolumeClaimSpec ¶
type PersistentVolumeClaimSpec struct { VolumeID string `json:"volumeID"` StorageType string `json:"storageType"` AccessModes []PersistentVolumeClaimSpecAccessModes `json:"accessModes"` StorageClassName *string `json:"storageClassName,omitempty"` VolumeName *string `json:"volumeName,omitempty"` Resources *ResourceRequirements `json:"resources,omitempty"` VolumeMode *string `json:"volumeMode,omitempty"` }
func (PersistentVolumeClaimSpec) String ¶
func (o PersistentVolumeClaimSpec) String() string
type PersistentVolumeClaimSpecAccessModes ¶
type PersistentVolumeClaimSpecAccessModes struct {
// contains filtered or unexported fields
}
func (PersistentVolumeClaimSpecAccessModes) MarshalJSON ¶
func (c PersistentVolumeClaimSpecAccessModes) MarshalJSON() ([]byte, error)
func (*PersistentVolumeClaimSpecAccessModes) UnmarshalJSON ¶
func (c *PersistentVolumeClaimSpecAccessModes) UnmarshalJSON(b []byte) error
type PersistentVolumeClaimSpecAccessModesEnum ¶
type PersistentVolumeClaimSpecAccessModesEnum struct { READ_ONLY_MANY PersistentVolumeClaimSpecAccessModes READ_WRITE_MANY PersistentVolumeClaimSpecAccessModes }
func GetPersistentVolumeClaimSpecAccessModesEnum ¶
func GetPersistentVolumeClaimSpecAccessModesEnum() PersistentVolumeClaimSpecAccessModesEnum
type PersistentVolumeClaimStatus ¶
type PersistentVolumeClaimStatus struct { AccessModes *[]string `json:"accessModes,omitempty"` Capacity *string `json:"capacity,omitempty"` Phase *string `json:"phase,omitempty"` }
func (PersistentVolumeClaimStatus) String ¶
func (o PersistentVolumeClaimStatus) String() string
type QuotaResource ¶ added in v0.0.74
type QuotaResource struct { QuotaKey *string `json:"quotaKey,omitempty"` QuotaLimit *int32 `json:"quotaLimit,omitempty"` Used *int32 `json:"used,omitempty"` Unit *string `json:"unit,omitempty"` RegionId *string `json:"regionId,omitempty"` AvailabilityZoneId *string `json:"availabilityZoneId,omitempty"` }
func (QuotaResource) String ¶ added in v0.0.74
func (o QuotaResource) String() string
type ReinstallExtendParam ¶ added in v0.0.59
type ReinstallExtendParam struct {
AlphaCceNodeImageID *string `json:"alpha.cce/NodeImageID,omitempty"`
}
重装拓展参数,已废弃。
func (ReinstallExtendParam) String ¶ added in v0.0.59
func (o ReinstallExtendParam) String() string
type ReinstallK8sOptionsConfig ¶ added in v0.0.59
type ReinstallK8sOptionsConfig struct { Labels map[string]string `json:"labels,omitempty"` Taints *[]Taint `json:"taints,omitempty"` MaxPods *int32 `json:"maxPods,omitempty"` NicMultiqueue *string `json:"nicMultiqueue,omitempty"` NicThreshold *string `json:"nicThreshold,omitempty"` }
节点重装场景Kubernetes节点配置
func (ReinstallK8sOptionsConfig) String ¶ added in v0.0.59
func (o ReinstallK8sOptionsConfig) String() string
type ReinstallNodeSpec ¶ added in v0.0.59
type ReinstallNodeSpec struct { Os string `json:"os"` Login *Login `json:"login"` Name *string `json:"name,omitempty"` ServerConfig *ReinstallServerConfig `json:"serverConfig,omitempty"` VolumeConfig *ReinstallVolumeConfig `json:"volumeConfig,omitempty"` RuntimeConfig *ReinstallRuntimeConfig `json:"runtimeConfig,omitempty"` K8sOptions *ReinstallK8sOptionsConfig `json:"k8sOptions,omitempty"` Lifecycle *NodeLifecycleConfig `json:"lifecycle,omitempty"` ExtendParam *ReinstallExtendParam `json:"extendParam,omitempty"` }
节点重装配置参数
func (ReinstallNodeSpec) String ¶ added in v0.0.59
func (o ReinstallNodeSpec) String() string
type ReinstallRuntimeConfig ¶ added in v0.0.59
type ReinstallRuntimeConfig struct { DockerBaseSize *int32 `json:"dockerBaseSize,omitempty"` Runtime *Runtime `json:"runtime,omitempty"` }
节点重装场景容器运行时配置
func (ReinstallRuntimeConfig) String ¶ added in v0.0.59
func (o ReinstallRuntimeConfig) String() string
type ReinstallServerConfig ¶ added in v0.0.59
type ReinstallServerConfig struct { UserTags *[]UserTag `json:"userTags,omitempty"` RootVolume *ReinstallVolumeSpec `json:"rootVolume,omitempty"` }
节点重装场景服务器配置
func (ReinstallServerConfig) String ¶ added in v0.0.59
func (o ReinstallServerConfig) String() string
type ReinstallVolumeConfig ¶ added in v0.0.59
type ReinstallVolumeConfig struct { LvmConfig *string `json:"lvmConfig,omitempty"` Storage *Storage `json:"storage,omitempty"` }
节点重装场景服务器相关配置
func (ReinstallVolumeConfig) String ¶ added in v0.0.59
func (o ReinstallVolumeConfig) String() string
type ReinstallVolumeSpec ¶ added in v0.0.59
type ReinstallVolumeSpec struct { ImageID *string `json:"imageID,omitempty"` CmkID *string `json:"cmkID,omitempty"` }
服务器重装云硬盘配置
func (ReinstallVolumeSpec) String ¶ added in v0.0.59
func (o ReinstallVolumeSpec) String() string
type RemoveNodeRequest ¶ added in v0.0.51
type RemoveNodeRequest struct { ClusterId string `json:"cluster_id"` Body *RemoveNodesTask `json:"body,omitempty"` }
Request Object
func (RemoveNodeRequest) String ¶ added in v0.0.51
func (o RemoveNodeRequest) String() string
type RemoveNodeResponse ¶ added in v0.0.51
type RemoveNodeResponse struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Spec *RemoveNodesSpec `json:"spec,omitempty"` Status *TaskStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RemoveNodeResponse) String ¶ added in v0.0.51
func (o RemoveNodeResponse) String() string
type RemoveNodesSpec ¶ added in v0.0.51
func (RemoveNodesSpec) String ¶ added in v0.0.51
func (o RemoveNodesSpec) String() string
type RemoveNodesTask ¶ added in v0.0.51
type RemoveNodesTask struct { ApiVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Spec *RemoveNodesSpec `json:"spec"` Status *TaskStatus `json:"status,omitempty"` }
func (RemoveNodesTask) String ¶ added in v0.0.51
func (o RemoveNodesTask) String() string
type ResetNode ¶ added in v0.0.59
type ResetNode struct { NodeID string `json:"nodeID"` Spec *ReinstallNodeSpec `json:"spec"` }
重置节点参数。集群内已有节点通过重置进行重新安装并接入集群。
type ResetNodeList ¶ added in v0.0.59
type ResetNodeList struct { ApiVersion string `json:"apiVersion"` Kind string `json:"kind"` NodeList []ResetNode `json:"nodeList"` }
纳管节点参数。满足条件的已有服务器,支持通过纳管节点方式安装并接入集群,重置过程将清理节点上系统盘、数据盘数据,并作为新节点接入Kuberntes集群,请提前备份迁移关键数据。其中节点池内节点重置时不支持外部指定配置,将以节点池配置进行校验并重装,以保证同节点池节点一致性。
func (ResetNodeList) String ¶ added in v0.0.59
func (o ResetNodeList) String() string
type ResetNodeRequest ¶ added in v0.0.59
type ResetNodeRequest struct { ClusterId string `json:"cluster_id"` Body *ResetNodeList `json:"body,omitempty"` }
Request Object
func (ResetNodeRequest) String ¶ added in v0.0.59
func (o ResetNodeRequest) String() string
type ResetNodeResponse ¶ added in v0.0.59
type ResetNodeResponse struct { Jobid *string `json:"jobid,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ResetNodeResponse) String ¶ added in v0.0.59
func (o ResetNodeResponse) String() string
type ResourceRequirements ¶
type ResourceRequirements struct { Limits map[string]string `json:"limits,omitempty"` Requests map[string]string `json:"requests,omitempty"` }
func (ResourceRequirements) String ¶
func (o ResourceRequirements) String() string
type ResourceTag ¶
type ResourceTag struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` }
CCE资源标签
func (ResourceTag) String ¶
func (o ResourceTag) String() string
type Runtime ¶
type Runtime struct {
Name *RuntimeName `json:"name,omitempty"`
}
type RuntimeConfig ¶ added in v0.0.51
type RuntimeConfig struct {
LvType string `json:"lvType"`
}
func (RuntimeConfig) String ¶ added in v0.0.51
func (o RuntimeConfig) String() string
type RuntimeName ¶
type RuntimeName struct {
// contains filtered or unexported fields
}
func (RuntimeName) MarshalJSON ¶
func (c RuntimeName) MarshalJSON() ([]byte, error)
func (*RuntimeName) UnmarshalJSON ¶
func (c *RuntimeName) UnmarshalJSON(b []byte) error
type RuntimeNameEnum ¶
type RuntimeNameEnum struct { DOCKER RuntimeName CONTAINERD RuntimeName }
func GetRuntimeNameEnum ¶
func GetRuntimeNameEnum() RuntimeNameEnum
type SecurityId ¶ added in v0.0.75
type SecurityId struct {
Id *string `json:"id,omitempty"`
}
func (SecurityId) String ¶ added in v0.0.75
func (o SecurityId) String() string
type ShowAddonInstanceRequest ¶
type ShowAddonInstanceRequest struct { Id string `json:"id"` ClusterId *string `json:"cluster_id,omitempty"` }
Request Object
func (ShowAddonInstanceRequest) String ¶
func (o ShowAddonInstanceRequest) String() string
type ShowAddonInstanceResponse ¶
type ShowAddonInstanceResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` Spec *InstanceSpec `json:"spec,omitempty"` Status *AddonInstanceStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowAddonInstanceResponse) String ¶
func (o ShowAddonInstanceResponse) String() string
type ShowClusterRequest ¶
type ShowClusterRequest struct { ClusterId string `json:"cluster_id"` ErrorStatus *string `json:"errorStatus,omitempty"` Detail *string `json:"detail,omitempty"` }
Request Object
func (ShowClusterRequest) String ¶
func (o ShowClusterRequest) String() string
type ShowClusterResponse ¶
type ShowClusterResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *ClusterMetadata `json:"metadata,omitempty"` Spec *ClusterSpec `json:"spec,omitempty"` Status *ClusterStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowClusterResponse) String ¶
func (o ShowClusterResponse) String() string
type ShowJobRequest ¶
type ShowJobRequest struct {
JobId string `json:"job_id"`
}
Request Object
func (ShowJobRequest) String ¶
func (o ShowJobRequest) String() string
type ShowJobResponse ¶
type ShowJobResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *JobMetadata `json:"metadata,omitempty"` Spec *JobSpec `json:"spec,omitempty"` Status *JobStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobResponse) String ¶
func (o ShowJobResponse) String() string
type ShowNodePoolRequest ¶
type ShowNodePoolRequest struct { ClusterId string `json:"cluster_id"` NodepoolId string `json:"nodepool_id"` ErrorStatus *string `json:"errorStatus,omitempty"` }
Request Object
func (ShowNodePoolRequest) String ¶
func (o ShowNodePoolRequest) String() string
type ShowNodePoolResponse ¶
type ShowNodePoolResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodePoolMetadata `json:"metadata,omitempty"` Spec *NodePoolSpec `json:"spec,omitempty"` Status *NodePoolStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowNodePoolResponse) String ¶
func (o ShowNodePoolResponse) String() string
type ShowNodeRequest ¶
type ShowNodeRequest struct { ClusterId string `json:"cluster_id"` NodeId string `json:"node_id"` ErrorStatus *string `json:"errorStatus,omitempty"` }
Request Object
func (ShowNodeRequest) String ¶
func (o ShowNodeRequest) String() string
type ShowNodeResponse ¶
type ShowNodeResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec,omitempty"` Status *NodeStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowNodeResponse) String ¶
func (o ShowNodeResponse) String() string
type ShowQuotasRequest ¶ added in v0.0.74
type ShowQuotasRequest struct { }
Request Object
func (ShowQuotasRequest) String ¶ added in v0.0.74
func (o ShowQuotasRequest) String() string
type ShowQuotasResponse ¶ added in v0.0.74
type ShowQuotasResponse struct { Quotas *[]QuotaResource `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowQuotasResponse) String ¶ added in v0.0.74
func (o ShowQuotasResponse) String() string
type Storage ¶ added in v0.0.51
type Storage struct { StorageSelectors []StorageSelectors `json:"storageSelectors"` StorageGroups []StorageGroups `json:"storageGroups"` }
磁盘初始化配置管理参数。 该参数配置逻辑较为复杂,详细说明请参见[节点磁盘挂载](node_storage_example.xml)。 该参数缺省时,按照extendParam中的DockerLVMConfigOverride参数进行磁盘管理。此参数对1.15.11及以上集群版本支持。
type StorageGroups ¶ added in v0.0.51
type StorageGroups struct { Name string `json:"name"` CceManaged *bool `json:"cceManaged,omitempty"` SelectorNames []string `json:"selectorNames"` VirtualSpaces []VirtualSpace `json:"virtualSpaces"` }
func (StorageGroups) String ¶ added in v0.0.51
func (o StorageGroups) String() string
type StorageSelectors ¶ added in v0.0.51
type StorageSelectors struct { Name string `json:"name"` StorageType string `json:"storageType"` MatchLabels *StorageSelectorsMatchLabels `json:"matchLabels,omitempty"` }
func (StorageSelectors) String ¶ added in v0.0.51
func (o StorageSelectors) String() string
type StorageSelectorsMatchLabels ¶ added in v0.0.51
type StorageSelectorsMatchLabels struct { Size *string `json:"size,omitempty"` VolumeType *string `json:"volumeType,omitempty"` MetadataEncrypted *string `json:"metadataEncrypted,omitempty"` MetadataCmkid *string `json:"metadataCmkid,omitempty"` Count *string `json:"count,omitempty"` }
evs盘的匹配字段,支持DataVolume中的size、volumeType、metadataEncrypted、metadataCmkid、count五个字段。
func (StorageSelectorsMatchLabels) String ¶ added in v0.0.51
func (o StorageSelectorsMatchLabels) String() string
type SupportVersions ¶
type SupportVersions struct { ClusterType string `json:"clusterType"` ClusterVersion []string `json:"clusterVersion"` }
插件支持升级的集群版本
func (SupportVersions) String ¶
func (o SupportVersions) String() string
type Taint ¶
type Taint struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` Effect *TaintEffect `json:"effect,omitempty"` }
如下字段不可使用: - node.kubernetes.io/memory-pressure - node.kubernetes.io/disk-pressure - node.kubernetes.io/out-of-disk - node.kubernetes.io/unschedulable - node.kubernetes.io/network-unavailable
type TaintEffect ¶
type TaintEffect struct {
// contains filtered or unexported fields
}
func (TaintEffect) MarshalJSON ¶
func (c TaintEffect) MarshalJSON() ([]byte, error)
func (*TaintEffect) UnmarshalJSON ¶
func (c *TaintEffect) UnmarshalJSON(b []byte) error
type TaintEffectEnum ¶
type TaintEffectEnum struct { NO_SCHEDULE TaintEffect PREFER_NO_SCHEDULE TaintEffect NO_EXECUTE TaintEffect }
func GetTaintEffectEnum ¶
func GetTaintEffectEnum() TaintEffectEnum
type TaskStatus ¶ added in v0.0.51
type TaskStatus struct {
JobID *string `json:"jobID,omitempty"`
}
func (TaskStatus) String ¶ added in v0.0.51
func (o TaskStatus) String() string
type Templatespec ¶
type Templatespec struct { Type string `json:"type"` Require *bool `json:"require,omitempty"` Labels []string `json:"labels"` LogoURL string `json:"logoURL"` ReadmeURL string `json:"readmeURL"` Description string `json:"description"` Versions []Versions `json:"versions"` }
插件模板详细信息
func (Templatespec) String ¶
func (o Templatespec) String() string
type UpdateAddonInstanceRequest ¶
type UpdateAddonInstanceRequest struct { Id string `json:"id"` Body *InstanceRequest `json:"body,omitempty"` }
Request Object
func (UpdateAddonInstanceRequest) String ¶
func (o UpdateAddonInstanceRequest) String() string
type UpdateAddonInstanceResponse ¶
type UpdateAddonInstanceResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *Metadata `json:"metadata,omitempty"` Spec *InstanceSpec `json:"spec,omitempty"` Status *AddonInstanceStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateAddonInstanceResponse) String ¶
func (o UpdateAddonInstanceResponse) String() string
type UpdateClusterRequest ¶
type UpdateClusterRequest struct { ClusterId string `json:"cluster_id"` ErrorStatus *string `json:"errorStatus,omitempty"` Body *ClusterInformation `json:"body,omitempty"` }
Request Object
func (UpdateClusterRequest) String ¶
func (o UpdateClusterRequest) String() string
type UpdateClusterResponse ¶
type UpdateClusterResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *ClusterMetadata `json:"metadata,omitempty"` Spec *ClusterSpec `json:"spec,omitempty"` Status *ClusterStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateClusterResponse) String ¶
func (o UpdateClusterResponse) String() string
type UpdateNodePoolRequest ¶
type UpdateNodePoolRequest struct { ClusterId string `json:"cluster_id"` NodepoolId string `json:"nodepool_id"` ErrorStatus *string `json:"errorStatus,omitempty"` Body *NodePoolUpdate `json:"body,omitempty"` }
Request Object
func (UpdateNodePoolRequest) String ¶
func (o UpdateNodePoolRequest) String() string
type UpdateNodePoolResponse ¶
type UpdateNodePoolResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodePoolMetadata `json:"metadata,omitempty"` Spec *NodePoolSpec `json:"spec,omitempty"` Status *NodePoolStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateNodePoolResponse) String ¶
func (o UpdateNodePoolResponse) String() string
type UpdateNodeRequest ¶
type UpdateNodeRequest struct { ClusterId string `json:"cluster_id"` NodeId string `json:"node_id"` ErrorStatus *string `json:"errorStatus,omitempty"` Body *ClusterNodeInformation `json:"body,omitempty"` }
Request Object
func (UpdateNodeRequest) String ¶
func (o UpdateNodeRequest) String() string
type UpdateNodeResponse ¶
type UpdateNodeResponse struct { Kind *string `json:"kind,omitempty"` ApiVersion *string `json:"apiVersion,omitempty"` Metadata *NodeMetadata `json:"metadata,omitempty"` Spec *NodeSpec `json:"spec,omitempty"` Status *NodeStatus `json:"status,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (UpdateNodeResponse) String ¶
func (o UpdateNodeResponse) String() string
type User ¶
type UserPassword ¶
type UserPassword struct { Username *string `json:"username,omitempty"` Password string `json:"password"` }
func (UserPassword) String ¶
func (o UserPassword) String() string
type Versions ¶
type Versions struct { Version string `json:"version"` Input *interface{} `json:"input"` Stable bool `json:"stable"` Translate *interface{} `json:"translate"` SupportVersions []SupportVersions `json:"supportVersions"` CreationTimestamp *string `json:"creationTimestamp,omitempty"` UpdateTimestamp string `json:"updateTimestamp"` }
具体插件版本信息
type VirtualSpace ¶ added in v0.0.51
type VirtualSpace struct { Name string `json:"name"` Size string `json:"size"` LvmConfig *LvmConfig `json:"lvmConfig,omitempty"` RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` }
func (VirtualSpace) String ¶ added in v0.0.51
func (o VirtualSpace) String() string
type Volume ¶ added in v0.0.46
type Volume struct { Size int32 `json:"size"` Volumetype string `json:"volumetype"` ExtendParam map[string]interface{} `json:"extendParam,omitempty"` ClusterId *string `json:"cluster_id,omitempty"` ClusterType *string `json:"cluster_type,omitempty"` Hwpassthrough *bool `json:"hw:passthrough,omitempty"` Metadata *VolumeMetadata `json:"metadata,omitempty"` }
type VolumeMetadata ¶
type VolumeMetadata struct { SystemEncrypted *string `json:"__system__encrypted,omitempty"` SystemCmkid *string `json:"__system__cmkid,omitempty"` }
云硬盘加密信息,仅在创建节点系统盘或数据盘需加密时须填写。
func (VolumeMetadata) String ¶
func (o VolumeMetadata) String() string
Source Files ¶
- model_add_node.go
- model_add_node_list.go
- model_add_node_request.go
- model_add_node_response.go
- model_addon_instance.go
- model_addon_instance_status.go
- model_addon_template.go
- model_authenticating_proxy.go
- model_authentication.go
- model_awake_cluster_request.go
- model_awake_cluster_response.go
- model_cert_duration.go
- model_cluster.go
- model_cluster_cert.go
- model_cluster_endpoints.go
- model_cluster_extend_param.go
- model_cluster_information.go
- model_cluster_information_spec.go
- model_cluster_metadata.go
- model_cluster_node_information.go
- model_cluster_node_information_metadata.go
- model_cluster_spec.go
- model_cluster_status.go
- model_clusters.go
- model_container_cidr.go
- model_container_network.go
- model_container_network_update.go
- model_context.go
- model_contexts.go
- model_create_addon_instance_request.go
- model_create_addon_instance_response.go
- model_create_cloud_persistent_volume_claims_request.go
- model_create_cloud_persistent_volume_claims_response.go
- model_create_cluster_request.go
- model_create_cluster_response.go
- model_create_kubernetes_cluster_cert_request.go
- model_create_kubernetes_cluster_cert_response.go
- model_create_node_pool_request.go
- model_create_node_pool_response.go
- model_create_node_request.go
- model_create_node_response.go
- model_delete_addon_instance_request.go
- model_delete_addon_instance_response.go
- model_delete_cloud_persistent_volume_claims_request.go
- model_delete_cloud_persistent_volume_claims_response.go
- model_delete_cluster_request.go
- model_delete_cluster_response.go
- model_delete_node_pool_request.go
- model_delete_node_pool_response.go
- model_delete_node_request.go
- model_delete_node_response.go
- model_delete_status.go
- model_eni_network.go
- model_hibernate_cluster_request.go
- model_hibernate_cluster_response.go
- model_host_network.go
- model_instance_request.go
- model_instance_request_spec.go
- model_instance_spec.go
- model_job.go
- model_job_metadata.go
- model_job_spec.go
- model_job_status.go
- model_list_addon_instances_request.go
- model_list_addon_instances_response.go
- model_list_addon_templates_request.go
- model_list_addon_templates_response.go
- model_list_clusters_request.go
- model_list_clusters_response.go
- model_list_node_pools_request.go
- model_list_node_pools_response.go
- model_list_nodes_request.go
- model_list_nodes_response.go
- model_login.go
- model_lvm_config.go
- model_master_spec.go
- model_metadata.go
- model_migrate_node_extend_param.go
- model_migrate_node_request.go
- model_migrate_node_response.go
- model_migrate_nodes_spec.go
- model_migrate_nodes_task.go
- model_network_subnet.go
- model_nic_spec.go
- model_node.go
- model_node_bandwidth.go
- model_node_create_request.go
- model_node_eip_spec.go
- model_node_extend_param.go
- model_node_item.go
- model_node_lifecycle_config.go
- model_node_management.go
- model_node_metadata.go
- model_node_nic_spec.go
- model_node_pool.go
- model_node_pool_condition.go
- model_node_pool_metadata.go
- model_node_pool_metadata_update.go
- model_node_pool_node_autoscaling.go
- model_node_pool_spec.go
- model_node_pool_spec_update.go
- model_node_pool_status.go
- model_node_pool_update.go
- model_node_public_ip.go
- model_node_spec.go
- model_node_spec_update.go
- model_node_status.go
- model_persistent_volume_claim.go
- model_persistent_volume_claim_metadata.go
- model_persistent_volume_claim_spec.go
- model_persistent_volume_claim_status.go
- model_quota_resource.go
- model_reinstall_extend_param.go
- model_reinstall_k8s_options_config.go
- model_reinstall_node_spec.go
- model_reinstall_runtime_config.go
- model_reinstall_server_config.go
- model_reinstall_volume_config.go
- model_reinstall_volume_spec.go
- model_remove_node_request.go
- model_remove_node_response.go
- model_remove_nodes_spec.go
- model_remove_nodes_task.go
- model_reset_node.go
- model_reset_node_list.go
- model_reset_node_request.go
- model_reset_node_response.go
- model_resource_requirements.go
- model_resource_tag.go
- model_runtime.go
- model_runtime_config.go
- model_security_id.go
- model_show_addon_instance_request.go
- model_show_addon_instance_response.go
- model_show_cluster_request.go
- model_show_cluster_response.go
- model_show_job_request.go
- model_show_job_response.go
- model_show_node_pool_request.go
- model_show_node_pool_response.go
- model_show_node_request.go
- model_show_node_response.go
- model_show_quotas_request.go
- model_show_quotas_response.go
- model_storage.go
- model_storage_groups.go
- model_storage_selectors.go
- model_storage_selectors_match_labels.go
- model_support_versions.go
- model_taint.go
- model_task_status.go
- model_templatespec.go
- model_update_addon_instance_request.go
- model_update_addon_instance_response.go
- model_update_cluster_request.go
- model_update_cluster_response.go
- model_update_node_pool_request.go
- model_update_node_pool_response.go
- model_update_node_request.go
- model_update_node_response.go
- model_user.go
- model_user_password.go
- model_user_tag.go
- model_users.go
- model_versions.go
- model_virtual_space.go
- model_volume.go
- model_volume_metadata.go