model

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 AddonInstanceStatusStatusEnum

type AddonInstanceStatusStatusEnum struct {
	INSTALLING AddonInstanceStatusStatus
	UPGRADING  AddonInstanceStatusStatus
	FAILED     AddonInstanceStatusStatus
	RUNNING    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 CceClusterNodeInformation

type CceClusterNodeInformation struct {
	Metadata *CceClusterNodeInformationMetadata `json:"metadata"`
}

func (CceClusterNodeInformation) String

func (o CceClusterNodeInformation) String() string

type CceClusterNodeInformationMetadata

type CceClusterNodeInformationMetadata struct {
	Name string `json:"name"`
}

func (CceClusterNodeInformationMetadata) String

type CceJob

type CceJob struct {
	Kind *string `json:"kind,omitempty"`

	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *CceJobMetadata `json:"metadata,omitempty"`

	Spec *CceJobSpec `json:"spec,omitempty"`

	Status *CceJobStatus `json:"status,omitempty"`
}

func (CceJob) String

func (o CceJob) String() string

type CceJobMetadata

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

	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`
}

func (CceJobMetadata) String

func (o CceJobMetadata) String() string

type CceJobSpec

type CceJobSpec 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 *[]CceJob `json:"subJobs,omitempty"`
}

func (CceJobSpec) String

func (o CceJobSpec) String() string

type CceJobStatus

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

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

func (CceJobStatus) String

func (o CceJobStatus) String() string

type CertDuration

type CertDuration struct {
	Duration int32 `json:"duration"`
}

集群证书有效期

func (CertDuration) String

func (o CertDuration) 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 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 *V3Cluster `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 *V3ClusterSpec `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"`
	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 *V3NodeCreateRequest `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 *V3NodeSpec `json:"spec,omitempty"`

	Status         *V3NodeStatus `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"`
}

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 DeleteClusterResponse

type DeleteClusterResponse struct {
	Kind *string `json:"kind,omitempty"`

	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *ClusterMetadata `json:"metadata,omitempty"`

	Spec *V3ClusterSpec `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 *V3NodeSpec `json:"spec,omitempty"`

	Status         *V3NodeStatus `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"`
}

ENI网络配置,创建集群指定使用云原生网络2.0网络模式时必填。

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 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          *[]V3Cluster `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          *[]V3Node `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 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 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 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 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 *V3NodeSpec `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 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 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 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 ShowClusterMetadata

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

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

	Annotations map[string]string `json:"annotations,omitempty"`

	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

	UpdateTimestamp *string `json:"updateTimestamp,omitempty"`

	Labels *string `json:"labels,omitempty"`
}

func (ShowClusterMetadata) String

func (o ShowClusterMetadata) 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 *ShowClusterMetadata `json:"metadata,omitempty"`

	Spec *V3ClusterSpec `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 *CceJobMetadata `json:"metadata,omitempty"`

	Spec *CceJobSpec `json:"spec,omitempty"`

	Status         *CceJobStatus `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 *V3NodeSpec `json:"spec,omitempty"`

	Status         *V3NodeStatus `json:"status,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowNodeResponse) String

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

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 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 *V3ClusterSpec `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 *CceClusterNodeInformation `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 *V3NodeSpec `json:"spec,omitempty"`

	Status         *V3NodeStatus `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 V3Cluster

type V3Cluster struct {
	Kind string `json:"kind"`

	ApiVersion string `json:"apiVersion"`

	Metadata *ClusterMetadata `json:"metadata"`

	Spec *V3ClusterSpec `json:"spec"`

	Status *ClusterStatus `json:"status,omitempty"`
}

func (V3Cluster) String

func (o V3Cluster) String() string

type V3ClusterSpec

type V3ClusterSpec struct {
	Type V3ClusterSpecType `json:"type"`

	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 *V3ClusterSpecKubeProxyMode `json:"kubeProxyMode,omitempty"`

	Az *string `json:"az,omitempty"`

	ExtendParam *ClusterExtendParam `json:"extendParam,omitempty"`

	SupportIstio *bool `json:"supportIstio,omitempty"`
}

Detailed cluster parameters.

func (V3ClusterSpec) String

func (o V3ClusterSpec) String() string

type V3ClusterSpecKubeProxyMode

type V3ClusterSpecKubeProxyMode struct {
	// contains filtered or unexported fields
}

func (V3ClusterSpecKubeProxyMode) MarshalJSON

func (c V3ClusterSpecKubeProxyMode) MarshalJSON() ([]byte, error)

func (*V3ClusterSpecKubeProxyMode) UnmarshalJSON

func (c *V3ClusterSpecKubeProxyMode) UnmarshalJSON(b []byte) error

type V3ClusterSpecKubeProxyModeEnum

type V3ClusterSpecKubeProxyModeEnum struct {
	IPTABLES V3ClusterSpecKubeProxyMode
	IPVS     V3ClusterSpecKubeProxyMode
}

func GetV3ClusterSpecKubeProxyModeEnum

func GetV3ClusterSpecKubeProxyModeEnum() V3ClusterSpecKubeProxyModeEnum

type V3ClusterSpecType

type V3ClusterSpecType struct {
	// contains filtered or unexported fields
}

func (V3ClusterSpecType) MarshalJSON

func (c V3ClusterSpecType) MarshalJSON() ([]byte, error)

func (*V3ClusterSpecType) UnmarshalJSON

func (c *V3ClusterSpecType) UnmarshalJSON(b []byte) error

type V3ClusterSpecTypeEnum

type V3ClusterSpecTypeEnum struct {
	VIRTUAL_MACHINE V3ClusterSpecType
	ARM64           V3ClusterSpecType
}

func GetV3ClusterSpecTypeEnum

func GetV3ClusterSpecTypeEnum() V3ClusterSpecTypeEnum

type V3Node

type V3Node struct {
	Kind *string `json:"kind,omitempty"`

	ApiVersion *string `json:"apiVersion,omitempty"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *V3NodeSpec `json:"spec,omitempty"`

	Status *V3NodeStatus `json:"status,omitempty"`
}

func (V3Node) String

func (o V3Node) String() string

type V3NodeBandwidth

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

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

	Sharetype *string `json:"sharetype,omitempty"`
}

func (V3NodeBandwidth) String

func (o V3NodeBandwidth) String() string

type V3NodeCreateRequest

type V3NodeCreateRequest struct {
	Kind string `json:"kind"`

	ApiVersion string `json:"apiVersion"`

	Metadata *NodeMetadata `json:"metadata,omitempty"`

	Spec *V3NodeSpec `json:"spec"`
}

func (V3NodeCreateRequest) String

func (o V3NodeCreateRequest) String() string

type V3NodeEipSpec

type V3NodeEipSpec struct {
	Iptype *string `json:"iptype,omitempty"`

	Bandwidth *V3NodeBandwidth `json:"bandwidth,omitempty"`
}

func (V3NodeEipSpec) String

func (o V3NodeEipSpec) String() string

type V3NodePublicIp

type V3NodePublicIp struct {
	Ids *[]string `json:"ids,omitempty"`

	Count *int32 `json:"count,omitempty"`

	Eip *V3NodeEipSpec `json:"eip,omitempty"`
}

func (V3NodePublicIp) String

func (o V3NodePublicIp) String() string

type V3NodeSpec

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

	PublicIP *V3NodePublicIp `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 (V3NodeSpec) String

func (o V3NodeSpec) String() string

type V3NodeStatus

type V3NodeStatus struct {
	Phase *V3NodeStatusPhase `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 (V3NodeStatus) String

func (o V3NodeStatus) String() string

type V3NodeStatusPhase

type V3NodeStatusPhase struct {
	// contains filtered or unexported fields
}

func (V3NodeStatusPhase) MarshalJSON

func (c V3NodeStatusPhase) MarshalJSON() ([]byte, error)

func (*V3NodeStatusPhase) UnmarshalJSON

func (c *V3NodeStatusPhase) UnmarshalJSON(b []byte) error

type V3NodeStatusPhaseEnum

type V3NodeStatusPhaseEnum struct {
	BUILD      V3NodeStatusPhase
	INSTALLING V3NodeStatusPhase
	INSTALLED  V3NodeStatusPhase
	SHUT_DOWN  V3NodeStatusPhase
	UPGRADING  V3NodeStatusPhase
	ACTIVE     V3NodeStatusPhase
	ABNORMAL   V3NodeStatusPhase
	DELETING   V3NodeStatusPhase
	ERROR      V3NodeStatusPhase
}

func GetV3NodeStatusPhaseEnum

func GetV3NodeStatusPhaseEnum() V3NodeStatusPhaseEnum

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