|
@@ -46,30 +46,30 @@ type CommonAPIClient interface {
|
|
|
|
|
|
// ContainerAPIClient defines API client methods for the containers
|
|
|
type ContainerAPIClient interface {
|
|
|
- ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error)
|
|
|
- ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error)
|
|
|
+ ContainerAttach(ctx context.Context, container string, options container.AttachOptions) (types.HijackedResponse, error)
|
|
|
+ ContainerCommit(ctx context.Context, container string, options container.CommitOptions) (types.IDResponse, error)
|
|
|
ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *ocispec.Platform, containerName string) (container.CreateResponse, error)
|
|
|
ContainerDiff(ctx context.Context, container string) ([]container.FilesystemChange, error)
|
|
|
ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)
|
|
|
ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error)
|
|
|
ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)
|
|
|
- ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error
|
|
|
+ ContainerExecResize(ctx context.Context, execID string, options container.ResizeOptions) error
|
|
|
ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error
|
|
|
ContainerExport(ctx context.Context, container string) (io.ReadCloser, error)
|
|
|
ContainerInspect(ctx context.Context, container string) (types.ContainerJSON, error)
|
|
|
ContainerInspectWithRaw(ctx context.Context, container string, getSize bool) (types.ContainerJSON, []byte, error)
|
|
|
ContainerKill(ctx context.Context, container, signal string) error
|
|
|
- ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
|
|
|
- ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
|
|
|
+ ContainerList(ctx context.Context, options container.ListOptions) ([]types.Container, error)
|
|
|
+ ContainerLogs(ctx context.Context, container string, options container.LogsOptions) (io.ReadCloser, error)
|
|
|
ContainerPause(ctx context.Context, container string) error
|
|
|
- ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error
|
|
|
+ ContainerRemove(ctx context.Context, container string, options container.RemoveOptions) error
|
|
|
ContainerRename(ctx context.Context, container, newContainerName string) error
|
|
|
- ContainerResize(ctx context.Context, container string, options types.ResizeOptions) error
|
|
|
+ ContainerResize(ctx context.Context, container string, options container.ResizeOptions) error
|
|
|
ContainerRestart(ctx context.Context, container string, options container.StopOptions) error
|
|
|
ContainerStatPath(ctx context.Context, container, path string) (types.ContainerPathStat, error)
|
|
|
ContainerStats(ctx context.Context, container string, stream bool) (types.ContainerStats, error)
|
|
|
ContainerStatsOneShot(ctx context.Context, container string) (types.ContainerStats, error)
|
|
|
- ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error
|
|
|
+ ContainerStart(ctx context.Context, container string, options container.StartOptions) error
|
|
|
ContainerStop(ctx context.Context, container string, options container.StopOptions) error
|
|
|
ContainerTop(ctx context.Context, container string, arguments []string) (container.ContainerTopOKBody, error)
|
|
|
ContainerUnpause(ctx context.Context, container string) error
|
|
@@ -94,11 +94,11 @@ type ImageAPIClient interface {
|
|
|
ImageHistory(ctx context.Context, image string) ([]image.HistoryResponseItem, error)
|
|
|
ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error)
|
|
|
ImageInspectWithRaw(ctx context.Context, image string) (types.ImageInspect, []byte, error)
|
|
|
- ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
|
|
|
+ ImageList(ctx context.Context, options types.ImageListOptions) ([]image.Summary, error)
|
|
|
ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error)
|
|
|
ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error)
|
|
|
ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)
|
|
|
- ImageRemove(ctx context.Context, image string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
|
|
|
+ ImageRemove(ctx context.Context, image string, options types.ImageRemoveOptions) ([]image.DeleteResponse, error)
|
|
|
ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error)
|
|
|
ImageSave(ctx context.Context, images []string) (io.ReadCloser, error)
|
|
|
ImageTag(ctx context.Context, image, ref string) error
|
|
@@ -141,13 +141,13 @@ type PluginAPIClient interface {
|
|
|
|
|
|
// ServiceAPIClient defines API client methods for the services
|
|
|
type ServiceAPIClient interface {
|
|
|
- ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options types.ServiceCreateOptions) (types.ServiceCreateResponse, error)
|
|
|
+ ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options types.ServiceCreateOptions) (swarm.ServiceCreateResponse, error)
|
|
|
ServiceInspectWithRaw(ctx context.Context, serviceID string, options types.ServiceInspectOptions) (swarm.Service, []byte, error)
|
|
|
ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error)
|
|
|
ServiceRemove(ctx context.Context, serviceID string) error
|
|
|
- ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error)
|
|
|
- ServiceLogs(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error)
|
|
|
- TaskLogs(ctx context.Context, taskID string, options types.ContainerLogsOptions) (io.ReadCloser, error)
|
|
|
+ ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (swarm.ServiceUpdateResponse, error)
|
|
|
+ ServiceLogs(ctx context.Context, serviceID string, options container.LogsOptions) (io.ReadCloser, error)
|
|
|
+ TaskLogs(ctx context.Context, taskID string, options container.LogsOptions) (io.ReadCloser, error)
|
|
|
TaskInspectWithRaw(ctx context.Context, taskID string) (swarm.Task, []byte, error)
|
|
|
TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error)
|
|
|
}
|