Documentation ¶
Index ¶
- Constants
- func CreateAddonInstance(client *cce.CceClient) (*model.CreateAddonInstanceResponse, error)
- func CreateCluster(client *cce.CceClient, config *ccev1.CCEClusterConfig) (*model.CreateClusterResponse, error)
- func CreateNodePool(client *cce.CceClient, clusterID string, nodePool *ccev1.CCENodePool) (*model.CreateNodePoolResponse, error)
- func DeleteCluster(client *cce.CceClient, ID string) (*model.DeleteClusterResponse, error)
- func DeleteNode(client *cce.CceClient, clusterID string, nodeID string) (*model.DeleteNodeResponse, error)
- func DeleteNodePool(client *cce.CceClient, clusterID, npID string) (*model.DeleteNodePoolResponse, error)
- func GetCluster(client *cce.CceClient, ID string) (*model.ShowClusterResponse, error)
- func GetClusterCert(client *cce.CceClient, clusterID string, duration int32) (*model.CreateKubernetesClusterCertResponse, error)
- func GetClusterClient(client *cce.CceClient, clusterID string, duration int32) (kubernetes.Interface, error)
- func GetClusterNodePools(client *cce.CceClient, clusterID string, showDefaultNP bool) (*model.ListNodePoolsResponse, error)
- func GetClusterNodes(client *cce.CceClient, clusterID string) (*model.ListNodesResponse, error)
- func GetClusterRestConfig(client *cce.CceClient, clusterID string, duration int32) (*rest.Config, error)
- func GetNode(client *cce.CceClient, clusterID, nodeID string) (*model.ShowNodeResponse, error)
- func GetNodePool(client *cce.CceClient, clusterID, npID string) (*model.ShowNodePoolResponse, error)
- func ListAddonInstances(client *cce.CceClient, clusterID, addonName string) (*model.ListAddonInstancesResponse, error)
- func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
- func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
- func ShowUpgradeClusterTask(client *cce.CceClient, clusterID string, taskID string) (*model.ShowUpgradeClusterTaskResponse, error)
- func UpdateCluster(client *cce.CceClient, config *ccev1.CCEClusterConfig) (*model.UpdateClusterResponse, error)
- func UpdateNodePool(client *cce.CceClient, clusterID string, nodePool *ccev1.CCENodePool) (*model.UpdateNodePoolResponse, error)
- func UpgradeCluster(client *cce.CceClient, config *ccev1.CCEClusterConfig) (*model.UpgradeClusterResponse, error)
Constants ¶
View Source
const ( ClusterStatusAvailable = "Available" // 可用 ClusterStatusScalingUp = "ScalingUp" // 扩容中 ClusterStatusScalingDown = "ScalingDown" // 缩容中 ClusterStatusCreating = "Creating" // 创建中 ClusterStatusDeleting = "Deleting" // 删除中 ClusterStatusUpgrading = "Upgrading" // 升级中 ClusterStatusResizing = "Resizing" // 规格变更中 ClusterStatusRollingBack = "RollingBack" // 回滚中 ClusterStatusRollbackFailed = "RollbackFailed" // 回滚异常 ClusterStatusEmpty = "Empty" // 集群无任何资源 )
View Source
const (
NodePoolIDAnnotationKey = "kubernetes.io/node-pool.id"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAddonInstance ¶
func CreateAddonInstance( client *cce.CceClient, ) (*model.CreateAddonInstanceResponse, error)
func CreateCluster ¶
func CreateCluster( client *cce.CceClient, config *ccev1.CCEClusterConfig, ) (*model.CreateClusterResponse, error)
func CreateNodePool ¶
func CreateNodePool( client *cce.CceClient, clusterID string, nodePool *ccev1.CCENodePool, ) (*model.CreateNodePoolResponse, error)
func DeleteCluster ¶
func DeleteNode ¶
func DeleteNodePool ¶
func GetCluster ¶
func GetClusterCert ¶
func GetClusterClient ¶
func GetClusterNodePools ¶
func GetClusterNodes ¶
func GetClusterRestConfig ¶
func GetNodePool ¶
func ListAddonInstances ¶
func ListClusters ¶
func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
func NewCCEClient ¶
func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
func ShowUpgradeClusterTask ¶
func UpdateCluster ¶
func UpdateCluster( client *cce.CceClient, config *ccev1.CCEClusterConfig, ) (*model.UpdateClusterResponse, error)
func UpdateNodePool ¶
func UpdateNodePool( client *cce.CceClient, clusterID string, nodePool *ccev1.CCENodePool, ) (*model.UpdateNodePoolResponse, error)
func UpgradeCluster ¶
func UpgradeCluster( client *cce.CceClient, config *ccev1.CCEClusterConfig, ) (*model.UpgradeClusterResponse, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.