k8s

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 38 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 New

func New(logger *zap.Logger) (*Client, error)

func (*Client) CreateVolume

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

CreateVolume implements cluster.Gateway.

func (*Client) DeleteCapsule

func (c *Client) DeleteCapsule(ctx context.Context, capsuleName string) error

DeleteCapsule implements cluster.Gateway.

func (*Client) ListCapsuleMetrics

func (c *Client) ListCapsuleMetrics(ctx context.Context) (iterator.Iterator[*capsule.InstanceMetrics], error)

func (*Client) ListInstances

func (c *Client) ListInstances(
	ctx context.Context,
	capsuleName string,
) (iterator.Iterator[*capsule.Instance], uint64, error)

ListInstances implements cluster.Gateway.

func (*Client) Logs

func (c *Client) Logs(ctx context.Context, capsuleName string, instanceID string, follow bool) (iterator.Iterator[*capsule.Log], error)

Logs implements cluster.Gateway.

func (*Client) RestartInstance

func (c *Client) RestartInstance(ctx context.Context, capsuleName string, instanceID string) error

RestartInstance implements cluster.Gateway.

func (*Client) UpsertCapsule

func (c *Client) UpsertCapsule(ctx context.Context, capsuleName string, cc *cluster.Capsule) error

UpsertCapsule implements cluster.Gateway.

Jump to

Keyboard shortcuts

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