|
@@ -61,6 +61,7 @@ type ContainerAPIClient interface {
|
|
ContainerWait(ctx context.Context, container string) (int, error)
|
|
ContainerWait(ctx context.Context, container string) (int, error)
|
|
CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
|
|
CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
|
|
CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error
|
|
CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error
|
|
|
|
+ ContainersPrune(ctx context.Context, cfg types.ContainersPruneConfig) (types.ContainersPruneReport, error)
|
|
}
|
|
}
|
|
|
|
|
|
// ImageAPIClient defines API client methods for the images
|
|
// ImageAPIClient defines API client methods for the images
|
|
@@ -78,6 +79,7 @@ type ImageAPIClient interface {
|
|
ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error)
|
|
ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error)
|
|
ImageSave(ctx context.Context, images []string) (io.ReadCloser, error)
|
|
ImageSave(ctx context.Context, images []string) (io.ReadCloser, error)
|
|
ImageTag(ctx context.Context, image, ref string) error
|
|
ImageTag(ctx context.Context, image, ref string) error
|
|
|
|
+ ImagesPrune(ctx context.Context, cfg types.ImagesPruneConfig) (types.ImagesPruneReport, error)
|
|
}
|
|
}
|
|
|
|
|
|
// NetworkAPIClient defines API client methods for the networks
|
|
// NetworkAPIClient defines API client methods for the networks
|
|
@@ -124,6 +126,7 @@ type SystemAPIClient interface {
|
|
Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error)
|
|
Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error)
|
|
Info(ctx context.Context) (types.Info, error)
|
|
Info(ctx context.Context) (types.Info, error)
|
|
RegistryLogin(ctx context.Context, auth types.AuthConfig) (types.AuthResponse, error)
|
|
RegistryLogin(ctx context.Context, auth types.AuthConfig) (types.AuthResponse, error)
|
|
|
|
+ DiskUsage(ctx context.Context) (types.DiskUsage, error)
|
|
}
|
|
}
|
|
|
|
|
|
// VolumeAPIClient defines API client methods for the volumes
|
|
// VolumeAPIClient defines API client methods for the volumes
|
|
@@ -133,4 +136,5 @@ type VolumeAPIClient interface {
|
|
VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error)
|
|
VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error)
|
|
VolumeList(ctx context.Context, filter filters.Args) (types.VolumesListResponse, error)
|
|
VolumeList(ctx context.Context, filter filters.Args) (types.VolumesListResponse, error)
|
|
VolumeRemove(ctx context.Context, volumeID string, force bool) error
|
|
VolumeRemove(ctx context.Context, volumeID string, force bool) error
|
|
|
|
+ VolumesPrune(ctx context.Context, cfg types.VolumesPruneConfig) (types.VolumesPruneReport, error)
|
|
}
|
|
}
|