api

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(ceHandler handler.ContainerEngineHandler, jobHandler job_hdl.JobHandler, srvInfoHandler srv_info_hdl.SrvInfoHandler) *Api

func (*Api) AddImage

func (a *Api) AddImage(ctx context.Context, img string) (string, error)

func (*Api) CancelJob

func (a *Api) CancelJob(ctx context.Context, id string) error

func (*Api) ContainerExec added in v0.7.0

func (a *Api) ContainerExec(ctx context.Context, id string, exeConf model.ExecConfig) (string, error)

func (*Api) CreateContainer

func (a *Api) CreateContainer(ctx context.Context, container model.Container) (string, error)

func (*Api) CreateNetwork

func (a *Api) CreateNetwork(ctx context.Context, net model.Network) (string, error)

func (*Api) CreateVolume

func (a *Api) CreateVolume(ctx context.Context, vol model.Volume) (string, error)

func (*Api) GetContainer

func (a *Api) GetContainer(ctx context.Context, id string) (model.Container, error)

func (*Api) GetContainerLog

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

func (*Api) GetContainers

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

func (*Api) GetImage

func (a *Api) GetImage(ctx context.Context, id string) (model.Image, error)

func (*Api) GetImages

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

func (*Api) GetJob

func (a *Api) GetJob(ctx context.Context, id string) (job_hdl_lib.Job, error)

func (*Api) GetJobs

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

func (*Api) GetNetwork

func (a *Api) GetNetwork(ctx context.Context, id string) (model.Network, error)

func (*Api) GetNetworks

func (a *Api) GetNetworks(ctx context.Context) ([]model.Network, error)

func (*Api) GetSrvInfo added in v0.8.0

func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo

func (*Api) GetVolume

func (a *Api) GetVolume(ctx context.Context, id string) (model.Volume, error)

func (*Api) GetVolumes

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

func (*Api) RemoveContainer

func (a *Api) RemoveContainer(ctx context.Context, id string, force bool) error

func (*Api) RemoveImage

func (a *Api) RemoveImage(ctx context.Context, id string) error

func (*Api) RemoveNetwork

func (a *Api) RemoveNetwork(ctx context.Context, id string) error

func (*Api) RemoveVolume

func (a *Api) RemoveVolume(ctx context.Context, id string, force bool) error

func (*Api) RestartContainer

func (a *Api) RestartContainer(ctx context.Context, id string) (string, error)

func (*Api) StartContainer

func (a *Api) StartContainer(ctx context.Context, id string) error

func (*Api) StopContainer

func (a *Api) StopContainer(ctx context.Context, id string) (string, error)

Jump to

Keyboard shortcuts

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