v3

package
v0.1.68 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CceClientBuilder

func CceClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForAddNode added in v0.0.59

func GenReqDefForAddNode() *def.HttpRequestDef

func GenReqDefForAwakeCluster

func GenReqDefForAwakeCluster() *def.HttpRequestDef

func GenReqDefForBatchCreateClusterTags added in v0.1.57

func GenReqDefForBatchCreateClusterTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteClusterTags added in v0.1.57

func GenReqDefForBatchDeleteClusterTags() *def.HttpRequestDef

func GenReqDefForContinueUpgradeClusterTask added in v0.1.17

func GenReqDefForContinueUpgradeClusterTask() *def.HttpRequestDef

func GenReqDefForCreateAddonInstance

func GenReqDefForCreateAddonInstance() *def.HttpRequestDef

func GenReqDefForCreateCloudPersistentVolumeClaims

func GenReqDefForCreateCloudPersistentVolumeClaims() *def.HttpRequestDef

func GenReqDefForCreateCluster

func GenReqDefForCreateCluster() *def.HttpRequestDef

func GenReqDefForCreateKubernetesClusterCert

func GenReqDefForCreateKubernetesClusterCert() *def.HttpRequestDef

func GenReqDefForCreateNode

func GenReqDefForCreateNode() *def.HttpRequestDef

func GenReqDefForCreateNodePool

func GenReqDefForCreateNodePool() *def.HttpRequestDef

func GenReqDefForDeleteAddonInstance

func GenReqDefForDeleteAddonInstance() *def.HttpRequestDef

func GenReqDefForDeleteCloudPersistentVolumeClaims

func GenReqDefForDeleteCloudPersistentVolumeClaims() *def.HttpRequestDef

func GenReqDefForDeleteCluster

func GenReqDefForDeleteCluster() *def.HttpRequestDef

func GenReqDefForDeleteNode

func GenReqDefForDeleteNode() *def.HttpRequestDef

func GenReqDefForDeleteNodePool

func GenReqDefForDeleteNodePool() *def.HttpRequestDef

func GenReqDefForHibernateCluster

func GenReqDefForHibernateCluster() *def.HttpRequestDef

func GenReqDefForListAddonInstances

func GenReqDefForListAddonInstances() *def.HttpRequestDef

func GenReqDefForListAddonTemplates

func GenReqDefForListAddonTemplates() *def.HttpRequestDef

func GenReqDefForListClusters

func GenReqDefForListClusters() *def.HttpRequestDef

func GenReqDefForListNodePools

func GenReqDefForListNodePools() *def.HttpRequestDef

func GenReqDefForListNodes

func GenReqDefForListNodes() *def.HttpRequestDef

func GenReqDefForMigrateNode added in v0.0.51

func GenReqDefForMigrateNode() *def.HttpRequestDef

func GenReqDefForPauseUpgradeClusterTask added in v0.1.17

func GenReqDefForPauseUpgradeClusterTask() *def.HttpRequestDef

func GenReqDefForRemoveNode added in v0.0.51

func GenReqDefForRemoveNode() *def.HttpRequestDef

func GenReqDefForResetNode added in v0.0.59

func GenReqDefForResetNode() *def.HttpRequestDef

func GenReqDefForResizeCluster added in v0.1.57

func GenReqDefForResizeCluster() *def.HttpRequestDef

func GenReqDefForRetryUpgradeClusterTask added in v0.1.17

func GenReqDefForRetryUpgradeClusterTask() *def.HttpRequestDef

func GenReqDefForRollbackAddonInstance added in v0.1.57

func GenReqDefForRollbackAddonInstance() *def.HttpRequestDef

func GenReqDefForShowAddonInstance

func GenReqDefForShowAddonInstance() *def.HttpRequestDef

func GenReqDefForShowCluster

func GenReqDefForShowCluster() *def.HttpRequestDef

func GenReqDefForShowClusterEndpoints added in v0.0.97

func GenReqDefForShowClusterEndpoints() *def.HttpRequestDef

func GenReqDefForShowJob

func GenReqDefForShowJob() *def.HttpRequestDef

func GenReqDefForShowNode

func GenReqDefForShowNode() *def.HttpRequestDef

func GenReqDefForShowNodePool

func GenReqDefForShowNodePool() *def.HttpRequestDef

func GenReqDefForShowQuotas added in v0.0.74

func GenReqDefForShowQuotas() *def.HttpRequestDef

func GenReqDefForShowUpgradeClusterTask added in v0.1.17

func GenReqDefForShowUpgradeClusterTask() *def.HttpRequestDef

func GenReqDefForShowVersion added in v0.0.97

func GenReqDefForShowVersion() *def.HttpRequestDef

func GenReqDefForUpdateAddonInstance

func GenReqDefForUpdateAddonInstance() *def.HttpRequestDef

func GenReqDefForUpdateCluster

func GenReqDefForUpdateCluster() *def.HttpRequestDef

func GenReqDefForUpdateClusterEip added in v0.0.97

func GenReqDefForUpdateClusterEip() *def.HttpRequestDef

func GenReqDefForUpdateNode

func GenReqDefForUpdateNode() *def.HttpRequestDef

func GenReqDefForUpdateNodePool

func GenReqDefForUpdateNodePool() *def.HttpRequestDef

func GenReqDefForUpgradeCluster added in v0.1.17

func GenReqDefForUpgradeCluster() *def.HttpRequestDef

Types

type AddNodeInvoker added in v0.0.90

type AddNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*AddNodeInvoker) Invoke added in v0.0.90

func (i *AddNodeInvoker) Invoke() (*model.AddNodeResponse, error)

type AwakeClusterInvoker added in v0.0.90

type AwakeClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*AwakeClusterInvoker) Invoke added in v0.0.90

type BatchCreateClusterTagsInvoker added in v0.1.57

type BatchCreateClusterTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateClusterTagsInvoker) Invoke added in v0.1.57

type BatchDeleteClusterTagsInvoker added in v0.1.57

type BatchDeleteClusterTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteClusterTagsInvoker) Invoke added in v0.1.57

type CceClient

type CceClient struct {
	HcClient *http_client.HcHttpClient
}

func NewCceClient

func NewCceClient(hcClient *http_client.HcHttpClient) *CceClient

func (*CceClient) AddNode added in v0.0.59

func (c *CceClient) AddNode(request *model.AddNodeRequest) (*model.AddNodeResponse, error)

AddNode 纳管节点

该API用于在指定集群下纳管节点。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) AddNodeInvoker added in v0.0.90

func (c *CceClient) AddNodeInvoker(request *model.AddNodeRequest) *AddNodeInvoker

AddNodeInvoker 纳管节点

func (*CceClient) AwakeCluster

func (c *CceClient) AwakeCluster(request *model.AwakeClusterRequest) (*model.AwakeClusterResponse, error)

AwakeCluster 集群唤醒

集群唤醒用于唤醒已休眠的集群,唤醒后,将继续收取控制节点资源费用。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) AwakeClusterInvoker added in v0.0.90

func (c *CceClient) AwakeClusterInvoker(request *model.AwakeClusterRequest) *AwakeClusterInvoker

AwakeClusterInvoker 集群唤醒

func (*CceClient) BatchCreateClusterTags added in v0.1.57

BatchCreateClusterTags 批量添加指定集群的资源标签

该API用于批量添加指定集群的资源标签。 > - 每个集群支持最多20个资源标签。 > - 此接口为幂等接口:创建时,如果创建的标签已经存在(key/value均相同视为重复),默认处理成功;key相同,value不同时会覆盖原有标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) BatchCreateClusterTagsInvoker added in v0.1.57

func (c *CceClient) BatchCreateClusterTagsInvoker(request *model.BatchCreateClusterTagsRequest) *BatchCreateClusterTagsInvoker

BatchCreateClusterTagsInvoker 批量添加指定集群的资源标签

func (*CceClient) BatchDeleteClusterTags added in v0.1.57

BatchDeleteClusterTags 批量删除指定集群的资源标签

该API用于批量删除指定集群的资源标签。 > - 此接口为幂等接口:删除时,如果删除的标签key不存在,默认处理成功。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) BatchDeleteClusterTagsInvoker added in v0.1.57

func (c *CceClient) BatchDeleteClusterTagsInvoker(request *model.BatchDeleteClusterTagsRequest) *BatchDeleteClusterTagsInvoker

BatchDeleteClusterTagsInvoker 批量删除指定集群的资源标签

func (*CceClient) ContinueUpgradeClusterTask added in v0.1.17

ContinueUpgradeClusterTask 继续执行集群升级任务

继续执行被暂停的集群升级任务。 > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; > - 当前集群升级相关接口受限开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ContinueUpgradeClusterTaskInvoker added in v0.1.17

func (c *CceClient) ContinueUpgradeClusterTaskInvoker(request *model.ContinueUpgradeClusterTaskRequest) *ContinueUpgradeClusterTaskInvoker

ContinueUpgradeClusterTaskInvoker 继续执行集群升级任务

func (*CceClient) CreateAddonInstance

CreateAddonInstance 创建AddonInstance

根据提供的插件模板,安装插件实例。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateAddonInstanceInvoker added in v0.0.90

func (c *CceClient) CreateAddonInstanceInvoker(request *model.CreateAddonInstanceRequest) *CreateAddonInstanceInvoker

CreateAddonInstanceInvoker 创建AddonInstance

func (*CceClient) CreateCloudPersistentVolumeClaims

CreateCloudPersistentVolumeClaims 创建PVC(待废弃)

该API用于在指定的Namespace下通过云存储服务中的云存储(EVS、SFS、OBS)去创建PVC(PersistentVolumeClaim)。该API待废弃,请使用Kubernetes PVC相关接口。

>存储管理的URL格式为:https://{clusterid}.Endpoint/uri。其中{clusterid}为集群ID,uri为资源路径,也即API访问的路径。如果使用https://Endpoint/uri,则必须指定请求header中的X-Cluster-ID参数。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateCloudPersistentVolumeClaimsInvoker added in v0.0.90

func (c *CceClient) CreateCloudPersistentVolumeClaimsInvoker(request *model.CreateCloudPersistentVolumeClaimsRequest) *CreateCloudPersistentVolumeClaimsInvoker

CreateCloudPersistentVolumeClaimsInvoker 创建PVC(待废弃)

func (*CceClient) CreateCluster

func (c *CceClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)

CreateCluster 创建集群

该API用于创建一个空集群(即只有控制节点Master,没有工作节点Node)。请在调用本接口完成集群创建之后,通过[创建节点](cce_02_0242.xml)添加节点。

> - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。 > - 调用该接口创建集群时,默认不安装ICAgent,若需安装ICAgent,可在请求Body参数的annotations中加入\"cluster.install.addons.external/install\":\"[{\"addonTemplateName\":\"icagent\"}]\"的集群注解,将在创建集群时自动安装ICAgent。ICAgent是应用性能管理APM的采集代理,运行在应用所在的服务器上,用于实时采集探针所获取的数据,安装ICAgent是使用应用性能管理APM的前提。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateClusterInvoker added in v0.0.90

func (c *CceClient) CreateClusterInvoker(request *model.CreateClusterRequest) *CreateClusterInvoker

CreateClusterInvoker 创建集群

func (*CceClient) CreateKubernetesClusterCert

CreateKubernetesClusterCert 获取集群证书

该API用于获取指定集群的证书信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateKubernetesClusterCertInvoker added in v0.0.90

func (c *CceClient) CreateKubernetesClusterCertInvoker(request *model.CreateKubernetesClusterCertRequest) *CreateKubernetesClusterCertInvoker

CreateKubernetesClusterCertInvoker 获取集群证书

func (*CceClient) CreateNode

func (c *CceClient) CreateNode(request *model.CreateNodeRequest) (*model.CreateNodeResponse, error)

CreateNode 创建节点

该API用于在指定集群下创建节点。 > - 若无集群,请先[创建集群](cce_02_0236.xml)。 > - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateNodeInvoker added in v0.0.90

func (c *CceClient) CreateNodeInvoker(request *model.CreateNodeRequest) *CreateNodeInvoker

CreateNodeInvoker 创建节点

func (*CceClient) CreateNodePool

func (c *CceClient) CreateNodePool(request *model.CreateNodePoolRequest) (*model.CreateNodePoolResponse, error)

CreateNodePool 创建节点池

该API用于在指定集群下创建节点池。仅支持集群在处于可用、扩容、缩容状态时调用。

1.21版本的集群创建节点池时支持绑定安全组,每个节点池最多绑定五个安全组。

更新节点池的安全组后,只针对新创的pod生效,建议驱逐节点上原有的pod。

> 若无集群,请先[创建集群](cce_02_0236.xml)。 > 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) CreateNodePoolInvoker added in v0.0.90

func (c *CceClient) CreateNodePoolInvoker(request *model.CreateNodePoolRequest) *CreateNodePoolInvoker

CreateNodePoolInvoker 创建节点池

func (*CceClient) DeleteAddonInstance

DeleteAddonInstance 删除AddonInstance

删除插件实例的功能。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) DeleteAddonInstanceInvoker added in v0.0.90

func (c *CceClient) DeleteAddonInstanceInvoker(request *model.DeleteAddonInstanceRequest) *DeleteAddonInstanceInvoker

DeleteAddonInstanceInvoker 删除AddonInstance

func (*CceClient) DeleteCloudPersistentVolumeClaims

DeleteCloudPersistentVolumeClaims 删除PVC(待废弃)

该API用于删除指定Namespace下的PVC(PersistentVolumeClaim)对象,并可以选择保留后端的云存储。该API待废弃,请使用Kubernetes PVC相关接口。 >存储管理的URL格式为:https://{clusterid}.Endpoint/uri。其中{clusterid}为集群ID,uri为资源路径,也即API访问的路径。如果使用https://Endpoint/uri,则必须指定请求header中的X-Cluster-ID参数。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) DeleteCloudPersistentVolumeClaimsInvoker added in v0.0.90

func (c *CceClient) DeleteCloudPersistentVolumeClaimsInvoker(request *model.DeleteCloudPersistentVolumeClaimsRequest) *DeleteCloudPersistentVolumeClaimsInvoker

DeleteCloudPersistentVolumeClaimsInvoker 删除PVC(待废弃)

func (*CceClient) DeleteCluster

func (c *CceClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error)

DeleteCluster 删除集群

该API用于删除一个指定的集群。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) DeleteClusterInvoker added in v0.0.90

func (c *CceClient) DeleteClusterInvoker(request *model.DeleteClusterRequest) *DeleteClusterInvoker

DeleteClusterInvoker 删除集群

func (*CceClient) DeleteNode

func (c *CceClient) DeleteNode(request *model.DeleteNodeRequest) (*model.DeleteNodeResponse, error)

DeleteNode 删除节点

该API用于删除指定的节点。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) DeleteNodeInvoker added in v0.0.90

func (c *CceClient) DeleteNodeInvoker(request *model.DeleteNodeRequest) *DeleteNodeInvoker

DeleteNodeInvoker 删除节点

func (*CceClient) DeleteNodePool

func (c *CceClient) DeleteNodePool(request *model.DeleteNodePoolRequest) (*model.DeleteNodePoolResponse, error)

DeleteNodePool 删除节点池

该API用于删除指定的节点池。 > 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) DeleteNodePoolInvoker added in v0.0.90

func (c *CceClient) DeleteNodePoolInvoker(request *model.DeleteNodePoolRequest) *DeleteNodePoolInvoker

DeleteNodePoolInvoker 删除节点池

func (*CceClient) HibernateCluster

func (c *CceClient) HibernateCluster(request *model.HibernateClusterRequest) (*model.HibernateClusterResponse, error)

HibernateCluster 集群休眠

集群休眠用于将运行中的集群置于休眠状态,休眠后,将不再收取控制节点资源费用。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) HibernateClusterInvoker added in v0.0.90

func (c *CceClient) HibernateClusterInvoker(request *model.HibernateClusterRequest) *HibernateClusterInvoker

HibernateClusterInvoker 集群休眠

func (*CceClient) ListAddonInstances

func (c *CceClient) ListAddonInstances(request *model.ListAddonInstancesRequest) (*model.ListAddonInstancesResponse, error)

ListAddonInstances 获取AddonInstance列表

获取集群所有已安装插件实例

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ListAddonInstancesInvoker added in v0.0.90

func (c *CceClient) ListAddonInstancesInvoker(request *model.ListAddonInstancesRequest) *ListAddonInstancesInvoker

ListAddonInstancesInvoker 获取AddonInstance列表

func (*CceClient) ListAddonTemplates

func (c *CceClient) ListAddonTemplates(request *model.ListAddonTemplatesRequest) (*model.ListAddonTemplatesResponse, error)

ListAddonTemplates 查询AddonTemplates列表

插件模板查询接口,查询插件信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ListAddonTemplatesInvoker added in v0.0.90

func (c *CceClient) ListAddonTemplatesInvoker(request *model.ListAddonTemplatesRequest) *ListAddonTemplatesInvoker

ListAddonTemplatesInvoker 查询AddonTemplates列表

func (*CceClient) ListClusters

func (c *CceClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error)

ListClusters 获取指定项目下的集群

该API用于获取指定项目下所有集群的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ListClustersInvoker added in v0.0.90

func (c *CceClient) ListClustersInvoker(request *model.ListClustersRequest) *ListClustersInvoker

ListClustersInvoker 获取指定项目下的集群

func (*CceClient) ListNodePools

func (c *CceClient) ListNodePools(request *model.ListNodePoolsRequest) (*model.ListNodePoolsResponse, error)

ListNodePools 获取集群下所有节点池

该API用于获取集群下所有节点池。 > - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径 > - nodepool是集群中具有相同配置的节点实例的子集。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ListNodePoolsInvoker added in v0.0.90

func (c *CceClient) ListNodePoolsInvoker(request *model.ListNodePoolsRequest) *ListNodePoolsInvoker

ListNodePoolsInvoker 获取集群下所有节点池

func (*CceClient) ListNodes

func (c *CceClient) ListNodes(request *model.ListNodesRequest) (*model.ListNodesResponse, error)

ListNodes 获取集群下所有节点

该API用于通过集群ID获取指定集群下所有节点的详细信息。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ListNodesInvoker added in v0.0.90

func (c *CceClient) ListNodesInvoker(request *model.ListNodesRequest) *ListNodesInvoker

ListNodesInvoker 获取集群下所有节点

func (*CceClient) MigrateNode added in v0.0.51

func (c *CceClient) MigrateNode(request *model.MigrateNodeRequest) (*model.MigrateNodeResponse, error)

MigrateNode 节点迁移

该API用于在指定集群下迁移节点到另一集群(仅支持在同一VPC、同一项目下的不同集群之间进行迁移,且迁移前后的集群类型需相同)。 [CCE Turbo集群下弹性云服务-物理机类型节点不支持迁移。](tag:hws,hws_hk,dt)

>集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) MigrateNodeInvoker added in v0.0.90

func (c *CceClient) MigrateNodeInvoker(request *model.MigrateNodeRequest) *MigrateNodeInvoker

MigrateNodeInvoker 节点迁移

func (*CceClient) PauseUpgradeClusterTask added in v0.1.17

PauseUpgradeClusterTask 暂停集群升级任务

暂停集群升级任务。 > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; > - 当前集群升级相关接口受限开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) PauseUpgradeClusterTaskInvoker added in v0.1.17

func (c *CceClient) PauseUpgradeClusterTaskInvoker(request *model.PauseUpgradeClusterTaskRequest) *PauseUpgradeClusterTaskInvoker

PauseUpgradeClusterTaskInvoker 暂停集群升级任务

func (*CceClient) RemoveNode added in v0.0.51

func (c *CceClient) RemoveNode(request *model.RemoveNodeRequest) (*model.RemoveNodeResponse, error)

RemoveNode 节点移除

该API用于在指定集群下移除节点。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) RemoveNodeInvoker added in v0.0.90

func (c *CceClient) RemoveNodeInvoker(request *model.RemoveNodeRequest) *RemoveNodeInvoker

RemoveNodeInvoker 节点移除

func (*CceClient) ResetNode added in v0.0.59

func (c *CceClient) ResetNode(request *model.ResetNodeRequest) (*model.ResetNodeResponse, error)

ResetNode 重置节点

该API用于在指定集群下重置节点。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ResetNodeInvoker added in v0.0.90

func (c *CceClient) ResetNodeInvoker(request *model.ResetNodeRequest) *ResetNodeInvoker

ResetNodeInvoker 重置节点

func (*CceClient) ResizeCluster added in v0.1.57

func (c *CceClient) ResizeCluster(request *model.ResizeClusterRequest) (*model.ResizeClusterResponse, error)

ResizeCluster 变更集群规格

该API用于变更一个指定集群的规格。

> - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。 > - 使用限制请参考:[[变更集群规格](https://support.huaweicloud.com/usermanual-cce/cce_10_0403.html)。](tag:hws)[[变更集群规格](https://support.huaweicloud.com/intl/zh-cn/usermanual-cce/cce_10_0403.html)](tag:hws_hk)

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ResizeClusterInvoker added in v0.1.57

func (c *CceClient) ResizeClusterInvoker(request *model.ResizeClusterRequest) *ResizeClusterInvoker

ResizeClusterInvoker 变更集群规格

func (*CceClient) RetryUpgradeClusterTask added in v0.1.17

RetryUpgradeClusterTask 重试集群升级任务

重新执行失败的集群升级任务。 > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; > - 当前集群升级相关接口受限开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) RetryUpgradeClusterTaskInvoker added in v0.1.17

func (c *CceClient) RetryUpgradeClusterTaskInvoker(request *model.RetryUpgradeClusterTaskRequest) *RetryUpgradeClusterTaskInvoker

RetryUpgradeClusterTaskInvoker 重试集群升级任务

func (*CceClient) RollbackAddonInstance added in v0.1.57

RollbackAddonInstance 回滚AddonInstance

将插件实例回滚到升级前的版本。只有在当前插件实例版本支持回滚到升级前的版本(status.isRollbackable为true),且插件实例状态为running(运行中)、available(可用)、abnormal(不可用)、upgradeFailed(升级失败)、rollbackFailed(回滚失败)时支持回滚。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) RollbackAddonInstanceInvoker added in v0.1.57

func (c *CceClient) RollbackAddonInstanceInvoker(request *model.RollbackAddonInstanceRequest) *RollbackAddonInstanceInvoker

RollbackAddonInstanceInvoker 回滚AddonInstance

func (*CceClient) ShowAddonInstance

func (c *CceClient) ShowAddonInstance(request *model.ShowAddonInstanceRequest) (*model.ShowAddonInstanceResponse, error)

ShowAddonInstance 获取AddonInstance详情

获取插件实例详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowAddonInstanceInvoker added in v0.0.90

func (c *CceClient) ShowAddonInstanceInvoker(request *model.ShowAddonInstanceRequest) *ShowAddonInstanceInvoker

ShowAddonInstanceInvoker 获取AddonInstance详情

func (*CceClient) ShowCluster

func (c *CceClient) ShowCluster(request *model.ShowClusterRequest) (*model.ShowClusterResponse, error)

ShowCluster 获取指定的集群

该API用于获取指定集群的详细信息。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowClusterEndpoints added in v0.0.97

ShowClusterEndpoints 获取集群访问的地址

该API用于通过集群ID获取集群访问的地址,包括PrivateIP(HA集群返回VIP)与PublicIP >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowClusterEndpointsInvoker added in v0.0.97

func (c *CceClient) ShowClusterEndpointsInvoker(request *model.ShowClusterEndpointsRequest) *ShowClusterEndpointsInvoker

ShowClusterEndpointsInvoker 获取集群访问的地址

func (*CceClient) ShowClusterInvoker added in v0.0.90

func (c *CceClient) ShowClusterInvoker(request *model.ShowClusterRequest) *ShowClusterInvoker

ShowClusterInvoker 获取指定的集群

func (*CceClient) ShowJob

func (c *CceClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error)

ShowJob 获取任务信息

该API用于获取任务信息。通过某一任务请求下发后返回的jobID来查询指定任务的进度。 > - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径 > - 该接口通常使用场景为: > - 创建、删除集群时,查询相应任务的进度。 > - 创建、删除节点时,查询相应任务的进度。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowJobInvoker added in v0.0.90

func (c *CceClient) ShowJobInvoker(request *model.ShowJobRequest) *ShowJobInvoker

ShowJobInvoker 获取任务信息

func (*CceClient) ShowNode

func (c *CceClient) ShowNode(request *model.ShowNodeRequest) (*model.ShowNodeResponse, error)

ShowNode 获取指定的节点

该API用于通过节点ID获取指定节点的详细信息。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowNodeInvoker added in v0.0.90

func (c *CceClient) ShowNodeInvoker(request *model.ShowNodeRequest) *ShowNodeInvoker

ShowNodeInvoker 获取指定的节点

func (*CceClient) ShowNodePool

func (c *CceClient) ShowNodePool(request *model.ShowNodePoolRequest) (*model.ShowNodePoolResponse, error)

ShowNodePool 获取指定的节点池

该API用于获取指定节点池的详细信息。 > 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowNodePoolInvoker added in v0.0.90

func (c *CceClient) ShowNodePoolInvoker(request *model.ShowNodePoolRequest) *ShowNodePoolInvoker

ShowNodePoolInvoker 获取指定的节点池

func (*CceClient) ShowQuotas added in v0.0.74

func (c *CceClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error)

ShowQuotas 查询CCE服务下的资源配额

该API用于查询CCE服务下的资源配额。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowQuotasInvoker added in v0.0.90

func (c *CceClient) ShowQuotasInvoker(request *model.ShowQuotasRequest) *ShowQuotasInvoker

ShowQuotasInvoker 查询CCE服务下的资源配额

func (*CceClient) ShowUpgradeClusterTask added in v0.1.17

ShowUpgradeClusterTask 获取集群升级任务详情

获取集群升级任务详情,任务ID由调用集群升级API后从响应体中uid字段获取。 > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; > - 当前集群升级相关接口受限开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowUpgradeClusterTaskInvoker added in v0.1.17

func (c *CceClient) ShowUpgradeClusterTaskInvoker(request *model.ShowUpgradeClusterTaskRequest) *ShowUpgradeClusterTaskInvoker

ShowUpgradeClusterTaskInvoker 获取集群升级任务详情

func (*CceClient) ShowVersion added in v0.0.97

func (c *CceClient) ShowVersion(request *model.ShowVersionRequest) (*model.ShowVersionResponse, error)

ShowVersion 查询API版本信息列表。

该API用于查询CCE服务当前支持的API版本信息列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) ShowVersionInvoker added in v0.0.97

func (c *CceClient) ShowVersionInvoker(request *model.ShowVersionRequest) *ShowVersionInvoker

ShowVersionInvoker 查询API版本信息列表。

func (*CceClient) UpdateAddonInstance

UpdateAddonInstance 更新AddonInstance

更新插件实例的功能。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpdateAddonInstanceInvoker added in v0.0.90

func (c *CceClient) UpdateAddonInstanceInvoker(request *model.UpdateAddonInstanceRequest) *UpdateAddonInstanceInvoker

UpdateAddonInstanceInvoker 更新AddonInstance

func (*CceClient) UpdateCluster

func (c *CceClient) UpdateCluster(request *model.UpdateClusterRequest) (*model.UpdateClusterResponse, error)

UpdateCluster 更新指定的集群

该API用于更新指定的集群。 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpdateClusterEip added in v0.0.97

func (c *CceClient) UpdateClusterEip(request *model.UpdateClusterEipRequest) (*model.UpdateClusterEipResponse, error)

UpdateClusterEip 绑定、解绑集群公网apiserver地址

该API用于通过集群ID绑定、解绑集群公网apiserver地址 >集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpdateClusterEipInvoker added in v0.0.97

func (c *CceClient) UpdateClusterEipInvoker(request *model.UpdateClusterEipRequest) *UpdateClusterEipInvoker

UpdateClusterEipInvoker 绑定、解绑集群公网apiserver地址

func (*CceClient) UpdateClusterInvoker added in v0.0.90

func (c *CceClient) UpdateClusterInvoker(request *model.UpdateClusterRequest) *UpdateClusterInvoker

UpdateClusterInvoker 更新指定的集群

func (*CceClient) UpdateNode

func (c *CceClient) UpdateNode(request *model.UpdateNodeRequest) (*model.UpdateNodeResponse, error)

UpdateNode 更新指定的节点

该API用于更新指定的节点。 > - 当前仅支持更新metadata下的name字段,即节点的名字。 > - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpdateNodeInvoker added in v0.0.90

func (c *CceClient) UpdateNodeInvoker(request *model.UpdateNodeRequest) *UpdateNodeInvoker

UpdateNodeInvoker 更新指定的节点

func (*CceClient) UpdateNodePool

func (c *CceClient) UpdateNodePool(request *model.UpdateNodePoolRequest) (*model.UpdateNodePoolResponse, error)

UpdateNodePool 更新指定节点池

该API用于更新指定的节点池。仅支持集群在处于可用、扩容、缩容状态时调用。

> - 集群管理的URL格式为:https://Endpoint/uri。其中uri为资源路径,也即API访问的路径

> - 当前仅支持更新节点池名称,spec下的initialNodeCount,k8sTags,taints,login,userTags与节点池的扩缩容配置相关字段。若此次更新未设置相关值,默认更新为初始值。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpdateNodePoolInvoker added in v0.0.90

func (c *CceClient) UpdateNodePoolInvoker(request *model.UpdateNodePoolRequest) *UpdateNodePoolInvoker

UpdateNodePoolInvoker 更新指定节点池

func (*CceClient) UpgradeCluster added in v0.1.17

func (c *CceClient) UpgradeCluster(request *model.UpgradeClusterRequest) (*model.UpgradeClusterResponse, error)

UpgradeCluster 集群升级

集群升级。 > - 集群升级涉及多维度的组件升级操作,强烈建议统一通过CCE控制台执行交互式升级,降低集群升级过程的业务意外受损风险; > - 当前集群升级相关接口受限开放。

Please refer to HUAWEI cloud API Explorer for details.

func (*CceClient) UpgradeClusterInvoker added in v0.1.17

func (c *CceClient) UpgradeClusterInvoker(request *model.UpgradeClusterRequest) *UpgradeClusterInvoker

UpgradeClusterInvoker 集群升级

type ContinueUpgradeClusterTaskInvoker added in v0.1.17

type ContinueUpgradeClusterTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ContinueUpgradeClusterTaskInvoker) Invoke added in v0.1.17

type CreateAddonInstanceInvoker added in v0.0.90

type CreateAddonInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateAddonInstanceInvoker) Invoke added in v0.0.90

type CreateCloudPersistentVolumeClaimsInvoker added in v0.0.90

type CreateCloudPersistentVolumeClaimsInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCloudPersistentVolumeClaimsInvoker) Invoke added in v0.0.90

type CreateClusterInvoker added in v0.0.90

type CreateClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateClusterInvoker) Invoke added in v0.0.90

type CreateKubernetesClusterCertInvoker added in v0.0.90

type CreateKubernetesClusterCertInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateKubernetesClusterCertInvoker) Invoke added in v0.0.90

type CreateNodeInvoker added in v0.0.90

type CreateNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateNodeInvoker) Invoke added in v0.0.90

type CreateNodePoolInvoker added in v0.0.90

type CreateNodePoolInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateNodePoolInvoker) Invoke added in v0.0.90

type DeleteAddonInstanceInvoker added in v0.0.90

type DeleteAddonInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteAddonInstanceInvoker) Invoke added in v0.0.90

type DeleteCloudPersistentVolumeClaimsInvoker added in v0.0.90

type DeleteCloudPersistentVolumeClaimsInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCloudPersistentVolumeClaimsInvoker) Invoke added in v0.0.90

type DeleteClusterInvoker added in v0.0.90

type DeleteClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteClusterInvoker) Invoke added in v0.0.90

type DeleteNodeInvoker added in v0.0.90

type DeleteNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteNodeInvoker) Invoke added in v0.0.90

type DeleteNodePoolInvoker added in v0.0.90

type DeleteNodePoolInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteNodePoolInvoker) Invoke added in v0.0.90

type HibernateClusterInvoker added in v0.0.90

type HibernateClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*HibernateClusterInvoker) Invoke added in v0.0.90

type ListAddonInstancesInvoker added in v0.0.90

type ListAddonInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAddonInstancesInvoker) Invoke added in v0.0.90

type ListAddonTemplatesInvoker added in v0.0.90

type ListAddonTemplatesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListAddonTemplatesInvoker) Invoke added in v0.0.90

type ListClustersInvoker added in v0.0.90

type ListClustersInvoker struct {
	*invoker.BaseInvoker
}

func (*ListClustersInvoker) Invoke added in v0.0.90

type ListNodePoolsInvoker added in v0.0.90

type ListNodePoolsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListNodePoolsInvoker) Invoke added in v0.0.90

type ListNodesInvoker added in v0.0.90

type ListNodesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListNodesInvoker) Invoke added in v0.0.90

type MigrateNodeInvoker added in v0.0.90

type MigrateNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*MigrateNodeInvoker) Invoke added in v0.0.90

type PauseUpgradeClusterTaskInvoker added in v0.1.17

type PauseUpgradeClusterTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*PauseUpgradeClusterTaskInvoker) Invoke added in v0.1.17

type RemoveNodeInvoker added in v0.0.90

type RemoveNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*RemoveNodeInvoker) Invoke added in v0.0.90

type ResetNodeInvoker added in v0.0.90

type ResetNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*ResetNodeInvoker) Invoke added in v0.0.90

type ResizeClusterInvoker added in v0.1.57

type ResizeClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*ResizeClusterInvoker) Invoke added in v0.1.57

type RetryUpgradeClusterTaskInvoker added in v0.1.17

type RetryUpgradeClusterTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*RetryUpgradeClusterTaskInvoker) Invoke added in v0.1.17

type RollbackAddonInstanceInvoker added in v0.1.57

type RollbackAddonInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*RollbackAddonInstanceInvoker) Invoke added in v0.1.57

type ShowAddonInstanceInvoker added in v0.0.90

type ShowAddonInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAddonInstanceInvoker) Invoke added in v0.0.90

type ShowClusterEndpointsInvoker added in v0.0.97

type ShowClusterEndpointsInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowClusterEndpointsInvoker) Invoke added in v0.0.97

type ShowClusterInvoker added in v0.0.90

type ShowClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowClusterInvoker) Invoke added in v0.0.90

type ShowJobInvoker added in v0.0.90

type ShowJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobInvoker) Invoke added in v0.0.90

func (i *ShowJobInvoker) Invoke() (*model.ShowJobResponse, error)

type ShowNodeInvoker added in v0.0.90

type ShowNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowNodeInvoker) Invoke added in v0.0.90

func (i *ShowNodeInvoker) Invoke() (*model.ShowNodeResponse, error)

type ShowNodePoolInvoker added in v0.0.90

type ShowNodePoolInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowNodePoolInvoker) Invoke added in v0.0.90

type ShowQuotasInvoker added in v0.0.90

type ShowQuotasInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowQuotasInvoker) Invoke added in v0.0.90

type ShowUpgradeClusterTaskInvoker added in v0.1.17

type ShowUpgradeClusterTaskInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowUpgradeClusterTaskInvoker) Invoke added in v0.1.17

type ShowVersionInvoker added in v0.0.97

type ShowVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowVersionInvoker) Invoke added in v0.0.97

type UpdateAddonInstanceInvoker added in v0.0.90

type UpdateAddonInstanceInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAddonInstanceInvoker) Invoke added in v0.0.90

type UpdateClusterEipInvoker added in v0.0.97

type UpdateClusterEipInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateClusterEipInvoker) Invoke added in v0.0.97

type UpdateClusterInvoker added in v0.0.90

type UpdateClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateClusterInvoker) Invoke added in v0.0.90

type UpdateNodeInvoker added in v0.0.90

type UpdateNodeInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateNodeInvoker) Invoke added in v0.0.90

type UpdateNodePoolInvoker added in v0.0.90

type UpdateNodePoolInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateNodePoolInvoker) Invoke added in v0.0.90

type UpgradeClusterInvoker added in v0.1.17

type UpgradeClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*UpgradeClusterInvoker) Invoke added in v0.1.17

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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