image

package
v0.0.0-...-ebe201a Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 9 Imported by: 0

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.

func NewService

func NewService(manager docker.Manager, logger logger.Logger) Service

NewService creates a new image service.

Jump to

Keyboard shortcuts

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