client

package module
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 7

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(httpClient base_client.HTTPClient, baseUrl string) *Client

func (*Client) AddImage

func (c *Client) AddImage(ctx context.Context, img string) (jobId string, err error)

func (*Client) CancelJob

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

func (*Client) ContainerExec added in v0.12.0

func (c *Client) ContainerExec(ctx context.Context, id string, exeConf model.ExecConfig) (jobId string, err error)

func (*Client) CreateContainer

func (c *Client) CreateContainer(ctx context.Context, container model.Container) (id string, err error)

func (*Client) CreateNetwork

func (c *Client) CreateNetwork(ctx context.Context, net model.Network) (string, error)

func (*Client) CreateVolume

func (c *Client) CreateVolume(ctx context.Context, vol model.Volume) (string, error)

func (*Client) GetContainer

func (c *Client) GetContainer(ctx context.Context, id string) (model.Container, error)

func (*Client) GetContainerLog

func (c *Client) GetContainerLog(ctx context.Context, id string, logOptions model.LogFilter) (io.ReadCloser, error)

func (*Client) GetContainers

func (c *Client) GetContainers(ctx context.Context, filter model.ContainerFilter) ([]model.Container, error)

func (*Client) GetImage

func (c *Client) GetImage(ctx context.Context, id string) (model.Image, error)

func (*Client) GetImages

func (c *Client) GetImages(ctx context.Context, filter model.ImageFilter) ([]model.Image, error)

func (*Client) GetJob

func (c *Client) GetJob(ctx context.Context, id string) (job_hdl_lib.Job, error)

func (*Client) GetJobs

func (c *Client) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)

func (*Client) GetNetwork

func (c *Client) GetNetwork(ctx context.Context, id string) (model.Network, error)

func (*Client) GetNetworks

func (c *Client) GetNetworks(ctx context.Context) ([]model.Network, error)

func (*Client) GetSrvInfo added in v0.13.0

func (c *Client) GetSrvInfo(ctx context.Context) srv_info_lib.SrvInfo

func (*Client) GetVolume

func (c *Client) GetVolume(ctx context.Context, id string) (model.Volume, error)

func (*Client) GetVolumes

func (c *Client) GetVolumes(ctx context.Context, filter model.VolumeFilter) ([]model.Volume, error)

func (*Client) RemoveContainer

func (c *Client) RemoveContainer(ctx context.Context, id string, force bool) error

func (*Client) RemoveImage

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

func (*Client) RemoveNetwork

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

func (*Client) RemoveVolume

func (c *Client) RemoveVolume(ctx context.Context, id string, force bool) error

func (*Client) RestartContainer

func (c *Client) RestartContainer(ctx context.Context, id string) (jobId string, err error)

func (*Client) StartContainer

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

func (*Client) StopContainer

func (c *Client) StopContainer(ctx context.Context, id string) (jobId string, err error)

Jump to

Keyboard shortcuts

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