kube

package
v0.1.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(kubeconfig string) (*Client, error)

func (*Client) Apply

func (c *Client) Apply(manifests []byte) error

func (*Client) DeleteCluster

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

func (*Client) DeleteEtcdCluster

func (c *Client) DeleteEtcdCluster(ctx context.Context, name, namespace string) error

func (*Client) GetCluster

func (c *Client) GetCluster(ctx context.Context, name, namespace string) (*greptimev1alpha1.GreptimeDBCluster, error)

func (*Client) IsStatefulSetReady

func (c *Client) IsStatefulSetReady(ctx context.Context, name, namespace string) (bool, error)

func (*Client) ListClusters

func (*Client) UpdateCluster

func (c *Client) UpdateCluster(ctx context.Context, namespace string, cluster *greptimev1alpha1.GreptimeDBCluster) error

func (*Client) WaitForClusterReady

func (c *Client) WaitForClusterReady(name, namespace string, timeout time.Duration) error

func (*Client) WaitForDeploymentReady

func (c *Client) WaitForDeploymentReady(name, namespace string, timeout time.Duration) error

func (*Client) WaitForEtcdReady

func (c *Client) WaitForEtcdReady(name, namespace string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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