Documentation ¶
Index ¶
- type Client
- func (c *Client) AddNode(ctx context.Context, clusterid string, info *common.NodeInfo) (*common.NodeInfo, error)
- func (c *Client) CreateCluster(ctx context.Context, cluster *common.ClusterInfo) (*common.ClusterInfo, error)
- func (c *Client) DeleteCluster(ctx context.Context, id string) error
- func (c *Client) DeleteClusterWithTimeout(ctx context.Context, id string, during, timeout time.Duration) error
- func (c *Client) DeleteNode(ctx context.Context, clusterid, id string) error
- func (c *Client) DeleteNodes(ctx context.Context, clusterid string, count int) (int64, error)
- func (c *Client) GetCluster(ctx context.Context, id string) (*common.ClusterInfo, error)
- func (c *Client) GetClusterCert(ctx context.Context, clusterid string) (*common.ClusterCert, error)
- func (c *Client) GetClusters(ctx context.Context) (*common.ClusterListInfo, error)
- func (c *Client) GetNode(ctx context.Context, clusterid, id string) (*common.NodeInfo, error)
- func (c *Client) GetNodes(ctx context.Context, clusterid string) (*common.NodeListInfo, error)
- func (c *Client) UpdateCluster(ctx context.Context, id string, updateInfo *common.UpdateCluster) (*common.ClusterInfo, error)
- type K8sClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(ctx context.Context, cluster *common.ClusterInfo) (*common.ClusterInfo, error)
func (*Client) DeleteClusterWithTimeout ¶
func (*Client) DeleteNode ¶
func (*Client) DeleteNodes ¶
func (*Client) GetCluster ¶
func (*Client) GetClusterCert ¶
func (*Client) GetClusters ¶
func (*Client) UpdateCluster ¶
func (c *Client) UpdateCluster(ctx context.Context, id string, updateInfo *common.UpdateCluster) (*common.ClusterInfo, error)
type K8sClient ¶
type K8sClient struct { CoreV1Client *corev1.CoreV1Client AppsV1Client *appsv1.AppsV1Client // contains filtered or unexported fields }
func GetClusterClient ¶
func GetClusterClient(cluster *common.ClusterInfo, cceClient *Client) (*K8sClient, error)
Click to show internal directories.
Click to hide internal directories.