cce

package
v0.0.0-...-5bfa45b Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(baseClient *common.Client) *Client

func (*Client) AddNode

func (c *Client) AddNode(ctx context.Context, clusterid string, info *common.NodeInfo) (*common.NodeInfo, error)

func (*Client) CreateCluster

func (c *Client) CreateCluster(ctx context.Context, cluster *common.ClusterInfo) (*common.ClusterInfo, error)

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(ctx context.Context, id string) error

func (*Client) DeleteClusterWithTimeout

func (c *Client) DeleteClusterWithTimeout(ctx context.Context, id string, during, timeout time.Duration) error

func (*Client) DeleteNode

func (c *Client) DeleteNode(ctx context.Context, clusterid, id string) error

func (*Client) DeleteNodes

func (c *Client) DeleteNodes(ctx context.Context, clusterid string, count int) (int64, error)

func (*Client) GetCluster

func (c *Client) GetCluster(ctx context.Context, id string) (*common.ClusterInfo, error)

func (*Client) GetClusterCert

func (c *Client) GetClusterCert(ctx context.Context, clusterid string) (*common.ClusterCert, error)

func (*Client) GetClusters

func (c *Client) GetClusters(ctx context.Context) (*common.ClusterListInfo, error)

func (*Client) GetNode

func (c *Client) GetNode(ctx context.Context, clusterid, id string) (*common.NodeInfo, error)

func (*Client) GetNodes

func (c *Client) GetNodes(ctx context.Context, clusterid string) (*common.NodeListInfo, error)

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)

Jump to

Keyboard shortcuts

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