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 GetClusterCert(client *cce.CceClient, clusterID string, duration int32) (*model.CreateKubernetesClusterCertResponse, error)
- func GetClusterClient(client *cce.CceClient, clusterID string, duration int32) (kubernetes.Interface, error)
- func GetClusterRestConfig(client *cce.CceClient, clusterID string, duration int32) (*rest.Config, error)
- func GetCreateClusterRequest(config *ccev1.CCEClusterConfig) *model.CreateClusterRequest
- func GetCreateNodePoolRequest(clusterID string, np *ccev1.CCENodePool) (*model.CreateNodePoolRequest, error)
- func GetUpdateClusterRequest(config *ccev1.CCEClusterConfig) *model.UpdateClusterRequest
- func GetUpdateNodePoolRequest(clusterID string, nodePool *ccev1.CCENodePool) *model.UpdateNodePoolRequest
- func GetUpgradeClusterRequest(config *ccev1.CCEClusterConfig) *model.UpgradeClusterRequest
- func ListAddonInstances(client *cce.CceClient, clusterID, addonName string) (*model.ListAddonInstancesResponse, error)
- func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
- func ListNodePools(client *cce.CceClient, clusterID string, showDefaultNP bool) (*model.ListNodePoolsResponse, error)
- func ListNodes(client *cce.CceClient, clusterID string) (*model.ListNodesResponse, error)
- func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
- func ShowCluster(client *cce.CceClient, ID string) (*model.ShowClusterResponse, error)
- func ShowNode(client *cce.CceClient, clusterID, nodeID string) (*model.ShowNodeResponse, error)
- func ShowNodePool(client *cce.CceClient, clusterID, npID string) (*model.ShowNodePoolResponse, error)
- 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)
TODO:
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 GetClusterCert ¶
func GetClusterClient ¶
func GetClusterRestConfig ¶
func GetCreateClusterRequest ¶
func GetCreateClusterRequest(config *ccev1.CCEClusterConfig) *model.CreateClusterRequest
func GetCreateNodePoolRequest ¶
func GetCreateNodePoolRequest( clusterID string, np *ccev1.CCENodePool, ) (*model.CreateNodePoolRequest, error)
func GetUpdateClusterRequest ¶
func GetUpdateClusterRequest(config *ccev1.CCEClusterConfig) *model.UpdateClusterRequest
func GetUpdateNodePoolRequest ¶
func GetUpdateNodePoolRequest( clusterID string, nodePool *ccev1.CCENodePool, ) *model.UpdateNodePoolRequest
func GetUpgradeClusterRequest ¶
func GetUpgradeClusterRequest(config *ccev1.CCEClusterConfig) *model.UpgradeClusterRequest
func ListAddonInstances ¶
func ListClusters ¶
func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)
func ListNodePools ¶
func NewCCEClient ¶
func NewCCEClient(auth *common.ClientAuth) *cce.CceClient
func ShowCluster ¶
func ShowNodePool ¶
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.