Documentation ¶
Index ¶
- Constants
- 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 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 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 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.