model

package
v0.0.37-rc Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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 {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

	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 {
	CurrentVersion *Versions `json:"currentVersion"`

	Message string `json:"message"`

	Reason string `json:"reason"`

	Status AddonInstanceStatusStatus `json:"status"`

	TargetVersions *[]string `json:"targetVersions,omitempty"`
}

插件状态信息

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 {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

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

authenticatingProxy模式相关配置。认证模式为authenticating_proxy时必选

func (AuthenticatingProxy) String

func (o AuthenticatingProxy) String() string

type Authentication

type Authentication struct {
	AuthenticatingProxy *AuthenticatingProxy `json:"authenticatingProxy,omitempty"`

	Mode *string `json:"mode,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	CreationTimestamp *string `json:"creationTimestamp,omitempty"`

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

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

func (CceJobMetadata) String

func (o CceJobMetadata) String() string

type CceJobSpec

type CceJobSpec struct {
	ClusterUID *string `json:"clusterUID,omitempty"`

	ExtendParam map[string]string `json:"extendParam,omitempty"`

	ResourceID *string `json:"resourceID,omitempty"`

	ResourceName *string `json:"resourceName,omitempty"`

	SubJobs *[]CceJob `json:"subJobs,omitempty"`

	Type *string `json:"type,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 {
	CertificateAuthorityData *string `json:"certificate-authority-data,omitempty"`

	InsecureSkipTlsVerify *bool `json:"insecure-skip-tls-verify,omitempty"`

	Server *string `json:"server,omitempty"`
}

func (ClusterCert) String

func (o ClusterCert) String() string

type ClusterEndpoints

type ClusterEndpoints struct {
	Type *string `json:"type,omitempty"`

	Url *string `json:"url,omitempty"`
}

func (ClusterEndpoints) String

func (o ClusterEndpoints) 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 {
	Annotations map[string]string `json:"annotations,omitempty"`

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

	Labels map[string]string `json:"labels,omitempty"`

	Name string `json:"name"`

	Uid *string `json:"uid,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 {
	DeleteOption *interface{} `json:"deleteOption,omitempty"`

	DeleteStatus *interface{} `json:"deleteStatus,omitempty"`

	Endpoints *[]ClusterEndpoints `json:"endpoints,omitempty"`

	IsLocked *bool `json:"isLocked,omitempty"`

	JobID *string `json:"jobID,omitempty"`

	LockScene *string `json:"lockScene,omitempty"`

	LockSource *string `json:"lockSource,omitempty"`

	LockSourceId *string `json:"lockSourceId,omitempty"`

	Message *string `json:"message,omitempty"`

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

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

func (ClusterStatus) String

func (o ClusterStatus) String() string

type Clusters

type Clusters struct {
	Cluster *ClusterCert `json:"cluster,omitempty"`

	Name *string `json:"name,omitempty"`
}

func (Clusters) String

func (o Clusters) String() string

type ContainerNetwork

type ContainerNetwork struct {
	Cidr *string `json:"cidr,omitempty"`

	Mode ContainerNetworkMode `json:"mode"`
}

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
	UNDERLAY_IPVLAN 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 {
	Context *Context `json:"context,omitempty"`

	Name *string `json:"name,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Clusters *[]Clusters `json:"clusters,omitempty"`

	Contexts *[]Contexts `json:"contexts,omitempty"`

	CurrentContext *string `json:"current-context,omitempty"`

	Kind *string `json:"kind,omitempty"`

	Preferences *interface{} `json:"preferences,omitempty"`

	Users          *[]Users `json:"users,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 DataVolumeMetadata

type DataVolumeMetadata struct {
	SystemCmkid *string `json:"__system__cmkid,omitempty"`

	SystemEncrypted *string `json:"__system__encrypted,omitempty"`
}

数据盘加密信息,仅在创建节点数据盘需加密时须填写。

func (DataVolumeMetadata) String

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

	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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	Added *int32 `json:"added,omitempty"`

	CurrentTotal *int32 `json:"current_total,omitempty"`

	Deleted *int32 `json:"deleted,omitempty"`

	PreviousTotal *int32 `json:"previous_total,omitempty"`

	Updated *int32 `json:"updated,omitempty"`
}

func (DeleteStatus) String

func (o DeleteStatus) String() string

type EniNetwork

type EniNetwork struct {
	EniSubnetCIDR string `json:"eniSubnetCIDR"`

	EniSubnetId string `json:"eniSubnetId"`
}

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

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 {
	SecurityGroup *string `json:"SecurityGroup,omitempty"`

	HighwaySubnet *string `json:"highwaySubnet,omitempty"`

	Subnet string `json:"subnet"`

	Vpc string `json:"vpc"`
}

Node network parameters.

func (HostNetwork) String

func (o HostNetwork) String() string

type InstanceRequest

type InstanceRequest struct {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

	Metadata *Metadata `json:"metadata"`

	Spec *InstanceRequestSpec `json:"spec"`
}

插件安装/升级-request结构体

func (InstanceRequest) String

func (o InstanceRequest) String() string

type InstanceRequestSpec

type InstanceRequestSpec struct {
	AddonTemplateName string `json:"addonTemplateName"`

	ClusterID string `json:"clusterID"`

	Values map[string]interface{} `json:"values"`

	Version string `json:"version"`
}

spec是集合类的元素类型,内容为插件实例安装/升级的具体请求信息

func (InstanceRequestSpec) String

func (o InstanceRequestSpec) String() string

type InstanceSpec

type InstanceSpec struct {
	AddonTemplateLabels *[]string `json:"addonTemplateLabels,omitempty"`


	AddonTemplateName string `json:"addonTemplateName"`

	AddonTemplateType string `json:"addonTemplateType"`

	ClusterID string `json:"clusterID"`

	Description string `json:"description"`

	Values map[string]interface{} `json:"values"`

	Version string `json:"version"`
}

spec是集合类的元素类型,内容为插件实例具体信息

func (InstanceSpec) String

func (o InstanceSpec) String() string

type ListAddonInstancesRequest

type ListAddonInstancesRequest struct {
	ClusterId string `json:"cluster_id"`
}

Request Object

func (ListAddonInstancesRequest) String

func (o ListAddonInstancesRequest) String() string

type ListAddonInstancesResponse

type ListAddonInstancesResponse struct {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Items *[]AddonInstance `json:"items,omitempty"`

	Kind           *string `json:"kind,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListAddonInstancesResponse) String

type ListAddonTemplatesRequest

type ListAddonTemplatesRequest struct {
	AddonTemplateName *string `json:"addon_template_name,omitempty"`
}

Request Object

func (ListAddonTemplatesRequest) String

func (o ListAddonTemplatesRequest) String() string

type ListAddonTemplatesResponse

type ListAddonTemplatesResponse struct {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Items *[]AddonTemplate `json:"items,omitempty"`

	Kind           *string `json:"kind,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
	BARE_METAL      ListClustersRequestType
	ARM64           ListClustersRequestType
}

func GetListClustersRequestTypeEnum

func GetListClustersRequestTypeEnum() ListClustersRequestTypeEnum

type ListClustersResponse

type ListClustersResponse struct {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Items *[]V3Cluster `json:"items,omitempty"`

	Kind           *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Items *[]NodePool `json:"items,omitempty"`

	Kind           *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Items *[]V3Node `json:"items,omitempty"`

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

master的配置,支持指定可用区、规格和故障域。若指定故障域,则必须所有master节点都需要指定故障字段。

func (MasterSpec) String

func (o MasterSpec) String() string

type Metadata

type Metadata struct {
	Annotations map[string]string `json:"annotations,omitempty"`

	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`

	Name string `json:"name"`

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

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

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

func (Metadata) String

func (o Metadata) String() string

type NicSpec

type NicSpec struct {
	FixedIps *[]string `json:"fixedIps,omitempty"`

	IpBlock *string `json:"ipBlock,omitempty"`

	SubnetId *string `json:"subnetId,omitempty"`
}

主网卡的描述信息。

func (NicSpec) String

func (o NicSpec) 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 {
	Annotations map[string]string `json:"annotations,omitempty"`

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

	Labels map[string]string `json:"labels,omitempty"`

	Name *string `json:"name,omitempty"`

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

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

func (NodeMetadata) String

func (o NodeMetadata) String() string

type NodeNicSpec

type NodeNicSpec struct {
	ExtNics *[]NicSpec `json:"extNics,omitempty"`

	PrimaryNic *NicSpec `json:"primaryNic,omitempty"`
}

节点网卡的描述信息。

func (NodeNicSpec) String

func (o NodeNicSpec) String() string

type NodePool

type NodePool struct {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

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

	MaxNodeCount *int32 `json:"maxNodeCount,omitempty"`

	MinNodeCount *int32 `json:"minNodeCount,omitempty"`

	Priority *int32 `json:"priority,omitempty"`

	ScaleDownCooldownTime *int32 `json:"scaleDownCooldownTime,omitempty"`
}

节点池自动伸缩相关配置

func (NodePoolNodeAutoscaling) String

func (o NodePoolNodeAutoscaling) String() string

type NodePoolSpec

type NodePoolSpec struct {
	Autoscaling *NodePoolNodeAutoscaling `json:"autoscaling,omitempty"`

	InitialNodeCount *int32 `json:"initialNodeCount,omitempty"`

	NodeManagement *NodeManagement `json:"nodeManagement,omitempty"`

	NodeTemplate *V3NodeSpec `json:"nodeTemplate"`

	Type *NodePoolSpecType `json:"type,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"`

	JobId *string `json:"jobId,omitempty"`

	Phase *NodePoolStatusPhase `json:"phase,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 {
	Labels *string `json:"labels,omitempty"`

	Name string `json:"name"`
}

metadata是集群对象的元数据定义,是集合类的元素类型,包含一组由不同名称定义的属性。

func (PersistentVolumeClaimMetadata) String

type PersistentVolumeClaimSpec

type PersistentVolumeClaimSpec struct {
	AccessModes []PersistentVolumeClaimSpecAccessModes `json:"accessModes"`

	Resources *ResourceRequirements `json:"resources,omitempty"`

	StorageClassName *string `json:"storageClassName,omitempty"`

	StorageType string `json:"storageType"`

	VolumeID string `json:"volumeID"`

	VolumeMode *string `json:"volumeMode,omitempty"`

	VolumeName *string `json:"volumeName,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 ShowAddonInstanceRequest

type ShowAddonInstanceRequest struct {
	Id string `json:"id"`

	ClusterId string `json:"cluster_id"`
}

Request Object

func (ShowAddonInstanceRequest) String

func (o ShowAddonInstanceRequest) String() string

type ShowAddonInstanceResponse

type ShowAddonInstanceResponse struct {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	Annotations map[string]string `json:"annotations,omitempty"`

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

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

	Name string `json:"name"`

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

	UpdateTimestamp *string `json:"updateTimestamp,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	Effect *TaintEffect `json:"effect,omitempty"`

	Key *string `json:"key,omitempty"`

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

	Labels []string `json:"labels"`

	LogoURL string `json:"logoURL"`

	ReadmeURL string `json:"readmeURL"`

	Require *bool `json:"require,omitempty"`

	Type string `json:"type"`

	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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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 {
	Password string `json:"password"`

	Username *string `json:"username,omitempty"`
}

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 {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

	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 {
	Authentication *Authentication `json:"authentication,omitempty"`

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

	BillingMode *int32 `json:"billingMode,omitempty"`

	ClusterTags *[]ResourceTag `json:"clusterTags,omitempty"`

	ContainerNetwork *ContainerNetwork `json:"containerNetwork"`

	Description *string `json:"description,omitempty"`

	EniNetwork *EniNetwork `json:"eniNetwork,omitempty"`

	ExtendParam map[string]string `json:"extendParam,omitempty"`

	Flavor string `json:"flavor"`

	HostNetwork *HostNetwork `json:"hostNetwork"`

	Ipv6enable *bool `json:"ipv6enable,omitempty"`

	KubeProxyMode *V3ClusterSpecKubeProxyMode `json:"kubeProxyMode,omitempty"`

	KubernetesSvcIpRange *string `json:"kubernetesSvcIpRange,omitempty"`

	Masters *[]MasterSpec `json:"masters,omitempty"`

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

	Type V3ClusterSpecType `json:"type"`

	Version *string `json:"version,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
	BARE_METAL      V3ClusterSpecType
	ARM64           V3ClusterSpecType
}

func GetV3ClusterSpecTypeEnum

func GetV3ClusterSpecTypeEnum() V3ClusterSpecTypeEnum

type V3DataVolume

type V3DataVolume struct {
	ClusterId *string `json:"cluster_id,omitempty"`

	ClusterType *string `json:"cluster_type,omitempty"`

	ExtendParam map[string]interface{} `json:"extendParam,omitempty"`

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Size int32 `json:"size"`

	Volumetype string `json:"volumetype"`

	Metadata *DataVolumeMetadata `json:"metadata,omitempty"`
}

func (V3DataVolume) String

func (o V3DataVolume) String() string

type V3Node

type V3Node struct {
	ApiVersion *string `json:"apiVersion,omitempty"`

	Kind *string `json:"kind,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"`

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

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

func (V3NodeBandwidth) String

func (o V3NodeBandwidth) String() string

type V3NodeCreateRequest

type V3NodeCreateRequest struct {
	ApiVersion string `json:"apiVersion"`

	Kind string `json:"kind"`

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

	Spec *V3NodeSpec `json:"spec"`
}

func (V3NodeCreateRequest) String

func (o V3NodeCreateRequest) String() string

type V3NodeEipSpec

type V3NodeEipSpec struct {
	Bandwidth *V3NodeBandwidth `json:"bandwidth,omitempty"`

	Iptype *string `json:"iptype,omitempty"`
}

func (V3NodeEipSpec) String

func (o V3NodeEipSpec) String() string

type V3NodePublicIp

type V3NodePublicIp struct {
	Count *int32 `json:"count,omitempty"`

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

	Ids *[]string `json:"ids,omitempty"`
}

func (V3NodePublicIp) String

func (o V3NodePublicIp) String() string

type V3NodeSpec

type V3NodeSpec struct {
	Az string `json:"az"`

	BillingMode *int32 `json:"billingMode,omitempty"`

	Count int32 `json:"count"`

	DataVolumes []V3DataVolume `json:"dataVolumes"`

	DedicatedHostId *string `json:"dedicatedHostId,omitempty"`

	EcsGroupId *string `json:"ecsGroupId,omitempty"`

	ExtendParam map[string]interface{} `json:"extendParam,omitempty"`

	Flavor string `json:"flavor"`

	K8sTags map[string]string `json:"k8sTags,omitempty"`

	Login *Login `json:"login"`

	NodeNicSpec *NodeNicSpec `json:"nodeNicSpec,omitempty"`

	OffloadNode *bool `json:"offloadNode,omitempty"`

	Os string `json:"os"`

	PublicIP *V3NodePublicIp `json:"publicIP,omitempty"`

	RootVolume *V3RootVolume `json:"rootVolume"`

	Taints *[]Taint `json:"taints,omitempty"`

	UserTags *[]UserTag `json:"userTags,omitempty"`
}

func (V3NodeSpec) String

func (o V3NodeSpec) String() string

type V3NodeStatus

type V3NodeStatus struct {
	DeleteStatus *DeleteStatus `json:"deleteStatus,omitempty"`

	JobID *string `json:"jobID,omitempty"`

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

	PrivateIP *string `json:"privateIP,omitempty"`

	PublicIP *string `json:"publicIP,omitempty"`

	ServerId *string `json:"serverId,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 V3RootVolume

type V3RootVolume struct {
	ClusterId *string `json:"cluster_id,omitempty"`

	ClusterType *string `json:"cluster_type,omitempty"`

	ExtendParam map[string]interface{} `json:"extendParam,omitempty"`

	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Size int32 `json:"size"`

	Volumetype string `json:"volumetype"`
}

func (V3RootVolume) String

func (o V3RootVolume) String() string

type Versions

type Versions struct {
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	Input *interface{} `json:"input"`

	Stable bool `json:"stable"`

	SupportVersions []SupportVersions `json:"supportVersions"`

	Translate *interface{} `json:"translate"`

	UpdateTimestamp string `json:"updateTimestamp"`

	Version string `json:"version"`
}

具体插件版本信息

func (Versions) String

func (o Versions) String() string

Source Files

Jump to

Keyboard shortcuts

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