cce

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterStatusAvailable      = "Available"      // 可用
	ClusterStatusUnavailable    = "Unavailable"    // 不可用,集群异常,需手动删除
	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.NodePool,
) (*model.CreateNodePoolResponse, error)

func DeleteCluster

func DeleteCluster(client *cce.CceClient, ID string) (*model.DeleteClusterResponse, error)

func DeleteNode

func DeleteNode(
	client *cce.CceClient, clusterID string, nodeID string,
) (*model.DeleteNodeResponse, error)

func DeleteNodePool

func DeleteNodePool(
	client *cce.CceClient, clusterID, npID string,
) (*model.DeleteNodePoolResponse, error)

func GetCluster

func GetCluster(client *cce.CceClient, ID string) (*model.ShowClusterResponse, error)

func GetClusterClient

func GetClusterClient(client *cce.CceClient, cluster *model.ShowClusterResponse) (kubernetes.Interface, error)

func GetClusterNodePools

func GetClusterNodePools(
	client *cce.CceClient, clusterID string, showDefaultNP bool,
) (*model.ListNodePoolsResponse, error)

func GetClusterNodes

func GetClusterNodes(client *cce.CceClient, clusterID string) (*model.ListNodesResponse, error)

func GetNode

func GetNode(
	client *cce.CceClient, clusterID, nodeID string,
) (*model.ShowNodeResponse, error)

func GetNodePool

func GetNodePool(
	client *cce.CceClient, clusterID, npID string,
) (*model.ShowNodePoolResponse, error)

func ListClusters

func ListClusters(client *cce.CceClient) (*model.ListClustersResponse, error)

func NewCCEClient

func NewCCEClient(auth *common.ClientAuth) *cce.CceClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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