Documentation ¶
Index ¶
- Constants
- func CreateCluster(client *cce.CceClient, config *ccev1.CCEClusterConfig) (*model.CreateClusterResponse, error)
- func CreateNodePool(client *cce.CceClient, clusterID string, nodePool *ccev1.NodePool) (*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, cluster *model.ShowClusterResponse) (*model.CreateKubernetesClusterCertResponse, error)
- func GetClusterClient(client *cce.CceClient, cluster *model.ShowClusterResponse) (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 GetNode(client *cce.CceClient, clusterID, nodeID string) (*model.ShowNodeResponse, error)
- func GetNodePool(client *cce.CceClient, clusterID, npID string) (*model.ShowNodePoolResponse, error)
- func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
- func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
Constants ¶
View Source
const ( ClusterStatusAvailable = "Available" // 可用 ClusterStatusScalingUp = "ScalingUp" // 扩容中 ClusterStatusScalingDown = "ScalingDown" // 缩容中 ClusterStatusCreating = "Creating" // 创建中 ClusterStatusDeleting = "Deleting" // 删除中 ClusterStatusUpgrading = "Upgrading" // 升级中 ClusterStatusResizing = "Resizing" // 规格变更中 ClusterStatusRollingBack = "RollingBack" // 回滚中 ClusterStatusRollbackFailed = "RollbackFailed" // 回滚异常 ClusterStatusEmpty = "Empty" // 集群无任何资源 )
Variables ¶
This section is empty.
Functions ¶
func CreateCluster ¶
func CreateCluster( client *cce.CceClient, config *ccev1.CCEClusterConfig, ) (*model.CreateClusterResponse, error)
func CreateNodePool ¶
func DeleteCluster ¶
func DeleteNode ¶
func DeleteNodePool ¶
func GetCluster ¶
func GetClusterCert ¶
func GetClusterCert( client *cce.CceClient, cluster *model.ShowClusterResponse, ) (*model.CreateKubernetesClusterCertResponse, error)
func GetClusterClient ¶
func GetClusterClient(client *cce.CceClient, cluster *model.ShowClusterResponse) (kubernetes.Interface, error)
func GetClusterNodePools ¶
func GetClusterNodes ¶
func GetNodePool ¶
func ListClusters ¶
func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
func NewCCEClient ¶
func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.