Documentation ¶
Index ¶
- type Api
- func (a *Api) AddImage(ctx context.Context, img string) (string, error)
- func (a *Api) CancelJob(ctx context.Context, id string) error
- func (a *Api) ContainerExec(ctx context.Context, id string, exeConf model.ExecConfig) (string, error)
- func (a *Api) CreateContainer(ctx context.Context, container model.Container) (string, error)
- func (a *Api) CreateNetwork(ctx context.Context, net model.Network) (string, error)
- func (a *Api) CreateVolume(ctx context.Context, vol model.Volume) (string, error)
- func (a *Api) GetContainer(ctx context.Context, id string) (model.Container, error)
- func (a *Api) GetContainerLog(ctx context.Context, id string, logOptions model.LogFilter) (io.ReadCloser, error)
- func (a *Api) GetContainers(ctx context.Context, filter model.ContainerFilter) ([]model.Container, error)
- func (a *Api) GetImage(ctx context.Context, id string) (model.Image, error)
- func (a *Api) GetImages(ctx context.Context, filter model.ImageFilter) ([]model.Image, error)
- func (a *Api) GetJob(ctx context.Context, id string) (job_hdl_lib.Job, error)
- func (a *Api) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)
- func (a *Api) GetNetwork(ctx context.Context, id string) (model.Network, error)
- func (a *Api) GetNetworks(ctx context.Context) ([]model.Network, error)
- func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
- func (a *Api) GetVolume(ctx context.Context, id string) (model.Volume, error)
- func (a *Api) GetVolumes(ctx context.Context, filter model.VolumeFilter) ([]model.Volume, error)
- func (a *Api) RemoveContainer(ctx context.Context, id string, force bool) error
- func (a *Api) RemoveImage(ctx context.Context, id string) error
- func (a *Api) RemoveNetwork(ctx context.Context, id string) error
- func (a *Api) RemoveVolume(ctx context.Context, id string, force bool) error
- func (a *Api) RestartContainer(ctx context.Context, id string) (string, error)
- func (a *Api) StartContainer(ctx context.Context, id string) error
- func (a *Api) StopContainer(ctx context.Context, id string) (string, error)
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) ContainerExec ¶ added in v0.7.0
func (*Api) CreateContainer ¶
func (*Api) CreateNetwork ¶
func (*Api) CreateVolume ¶
func (*Api) GetContainer ¶
func (*Api) GetContainerLog ¶
func (*Api) GetContainers ¶
func (*Api) GetJobs ¶
func (a *Api) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)
func (*Api) GetNetwork ¶
func (*Api) GetSrvInfo ¶ added in v0.8.0
func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
func (*Api) GetVolumes ¶
func (*Api) RemoveContainer ¶
func (*Api) RemoveVolume ¶
func (*Api) RestartContainer ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.