docker

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 31 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(cfg config.Config, logger *zap.Logger) (*Client, error)

func (*Client) CreateVolume

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

func (*Client) DeleteCapsule

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

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)

func (*Client) Logs

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

func (*Client) RestartInstance

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

func (*Client) UpsertCapsule

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

Jump to

Keyboard shortcuts

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