Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// Image operations
Pull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)
Push(ctx context.Context, refStr string, options image.PushOptions) (io.ReadCloser, error)
Build(ctx context.Context, buildContext io.Reader, options build.ImageBuildOptions) (build.ImageBuildResponse, error)
Tag(ctx context.Context, source, target string) error
Remove(ctx context.Context, imageID string, options image.RemoveOptions) ([]image.DeleteResponse, error)
// Image inspection
Inspect(ctx context.Context, imageID string) (*image.InspectResponse, error)
List(ctx context.Context, options image.ListOptions) ([]image.Summary, error)
History(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error)
// Image import/export
Import(ctx context.Context, source image.ImportSource, ref string, options image.ImportOptions) (io.ReadCloser, error)
Save(ctx context.Context, imageIDs []string) (io.ReadCloser, error)
Load(ctx context.Context, input io.Reader, options ...client.ImageLoadOption) (image.LoadResponse, error)
// Image search
Search(ctx context.Context, term string, options registry.SearchOptions) ([]registry.SearchResult, error)
// Image prune
Prune(ctx context.Context, pruneFilter filters.Args) (image.PruneReport, error)
// Utility methods
Exists(ctx context.Context, imageID string) (bool, error)
GetDigest(ctx context.Context, imageID string) (string, error)
}
Service provides Docker image management functionality.
Click to show internal directories.
Click to hide internal directories.