model

package
v0.0.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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"`
}

func (Cluster) String added in v0.0.51

func (o Cluster) String() string

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"`

	PeriodType *string `json:"periodType,omitempty"`

	PeriodNum *int32 `json:"periodNum,omitempty"`

	IsAutoRenew *string `json:"isAutoRenew,omitempty"`

	IsAutoPay *string `json:"isAutoPay,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"`
}

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

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"`

	Description *string `json:"description,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"`
}

func (Clusters) String

func (o Clusters) String() string

type ContainerNetwork

type ContainerNetwork struct {
	Mode ContainerNetworkMode `json:"mode"`

	Cidr *string `json:"cidr,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 Context

type Context struct {
	Cluster *string `json:"cluster,omitempty"`

	User *string `json:"user,omitempty"`
}

func (Context) String

func (o Context) String() string

type Contexts

type Contexts struct {
	Name *string `json:"name,omitempty"`

	Context *Context `json:"context,omitempty"`
}

func (Contexts) String

func (o Contexts) String() string

type CreateAddonInstanceRequest

type CreateAddonInstanceRequest struct {
	Body *InstanceRequest `json:"body,omitempty"`
}

Request Object

func (CreateAddonInstanceRequest) 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

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

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

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

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

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"`
}

Request Object

func (DeleteAddonInstanceRequest) String

type DeleteAddonInstanceResponse

type DeleteAddonInstanceResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteAddonInstanceResponse) 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

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

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 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 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 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 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 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 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"`


	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"`
}

func (Job) String added in v0.0.51

func (o Job) String() string

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"`
}

func (JobSpec) String added in v0.0.51

func (o JobSpec) String() string

type JobStatus added in v0.0.51

type JobStatus struct {
	Phase *string `json:"phase,omitempty"`

	Reason *string `json:"reason,omitempty"`
}

func (JobStatus) String added in v0.0.51

func (o JobStatus) String() string

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

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

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 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"`
}

func (Login) String

func (o Login) String() string

type LvmConfig added in v0.0.51

type LvmConfig struct {
	LvType string `json:"lvType"`

	Path *string `json:"path,omitempty"`
}

func (LvmConfig) String added in v0.0.51

func (o LvmConfig) String() string

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"`
}

插件基本信息,集合类的元素类型,包含一组由不同名称定义的属性。

func (Metadata) String

func (o Metadata) String() string

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,omitempty"`
}

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"`
}

主网卡的描述信息。

func (NicSpec) String

func (o NicSpec) String() string

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"`
}

func (Node) String added in v0.0.51

func (o Node) String() string

type NodeBandwidth added in v0.0.51

type NodeBandwidth struct {
	Chargemode *string `json:"chargemode,omitempty"`

	Size *int32 `json:"size,omitempty"`

	Sharetype *string `json:"sharetype,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"`
}

创建节点时的扩展参数。

func (NodeExtendParam) String added in v0.0.46

func (o NodeExtendParam) String() string

type NodeItem added in v0.0.51

type NodeItem struct {
	Uid *string `json:"uid,omitempty"`
}

func (NodeItem) String added in v0.0.51

func (o NodeItem) 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"`
}

func (NodePool) String

func (o NodePool) String() string

type NodePoolMetadata

type NodePoolMetadata struct {
	Name string `json:"name"`

	Uid *string `json:"uid,omitempty"`
}

func (NodePoolMetadata) String

func (o NodePoolMetadata) 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"`
}

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 NodePoolStatus

type NodePoolStatus struct {
	CurrentNode *int32 `json:"currentNode,omitempty"`

	Phase *NodePoolStatusPhase `json:"phase,omitempty"`

	JobId *string `json:"jobId,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 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"`

	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"`
}

func (NodeSpec) String added in v0.0.51

func (o NodeSpec) 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

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

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

type RemoveNodesSpec struct {
	Login *Login `json:"login"`

	Nodes *[]NodeItem `json:"nodes,omitempty"`
}

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 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"`
}

func (Runtime) String

func (o Runtime) String() string

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 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 Storage added in v0.0.51

type Storage struct {
	StorageSelectors []StorageSelectors `json:"storageSelectors"`

	StorageGroups []StorageGroups `json:"storageGroups"`
}

磁盘初始化配置管理参数。该参数缺省时,按照extendParam中的DockerLVMConfigOverride参数进行磁盘管理。此参数对1.15.11及以上集群版本支持。

func (Storage) String added in v0.0.51

func (o Storage) String() string

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

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

func (Taint) String

func (o Taint) String() string

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

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

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 *NodePool `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 User struct {
	ClientCertificateData *string `json:"client-certificate-data,omitempty"`

	ClientKeyData *string `json:"client-key-data,omitempty"`
}

func (User) String

func (o User) String() string

type UserPassword

type UserPassword struct {
	Username *string `json:"username,omitempty"`

	Password string `json:"password"`
}

func (UserPassword) String

func (o UserPassword) String() string

type UserTag

type UserTag struct {
	Key *string `json:"key,omitempty"`

	Value *string `json:"value,omitempty"`
}

func (UserTag) String

func (o UserTag) String() string

type Users

type Users struct {
	Name *string `json:"name,omitempty"`

	User *User `json:"user,omitempty"`
}

func (Users) String

func (o Users) 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"`
}

具体插件版本信息

func (Versions) String

func (o Versions) String() string

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"`
}

func (Volume) String added in v0.0.46

func (o Volume) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL