bee

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: BSD-3-Clause Imports: 16 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
}

Client manages communication with the Kubernetes

func NewClient

func NewClient(k8s *k8s.Client) (c *Client)

NewClient returns Kubernetes clientset

func (*Client) Create added in v0.4.3

func (c *Client) Create(ctx context.Context, o k8s.CreateOptions) (err error)

Create creates Bee node in the cluster

func (*Client) Delete added in v0.4.2

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

Delete deletes Bee node from the cluster

func (*Client) Ready added in v0.4.2

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

Ready gets Bee node's readiness

func (*Client) RunningNodes added in v0.4.7

func (c *Client) RunningNodes(ctx context.Context, namespace string) (running []string, err error)

RunningNodes returns list of running nodes TODO: filter by labels

func (*Client) Start added in v0.4.2

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

Start starts Bee node in the cluster

func (*Client) Stop added in v0.4.2

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

Stop stops Bee node in the cluster

func (*Client) StoppedNodes added in v0.4.2

func (c *Client) StoppedNodes(ctx context.Context, namespace string) (stopped []string, err error)

StoppedNodes returns list of stopped nodes TODO: filter by labels

type ClientOptions

type ClientOptions struct {
	KubeconfigPath string
}

ClientOptions holds optional parameters for the Client.

Jump to

Keyboard shortcuts

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