image

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	ID       string   `json:"id"`
	RepoTags []string `json:"repo_tags,omitempty"`
	Size     int64    `json:"size,omitempty"`
	Created  int64    `json:"created,omitempty"`
}

Image represents a Docker image Image represents a Docker image

type PullOptions

type PullOptions struct {
	// All attempts to pull all image metadata
	All bool `json:"all,omitempty"`
	// AuthConfig contains authentication credentials for the registry
	AuthConfig string `json:"registryauth,omitempty"`
	// Platform is the target platform of the image (e.g., "linux/amd64")
	Platform string `json:"platform,omitempty"`
}

PullOptions contains optional parameters for the ImagePull operation

type Service

type Service interface {
	// ImagePull pulls a Docker image and returns a ReadCloser for the pull progress
	ImagePull(ctx context.Context, refStr string, options PullOptions) (io.ReadCloser, error)
	// List retrieves all Docker images
	List(ctx context.Context) ([]Image, error)
	// Remove deletes a Docker image
	Remove(ctx context.Context, imageID string, force bool) error
}

Service defines the interface for Docker image operations

func NewService

func NewService(cli *client.Client) Service

NewService creates a new Docker image service instance

Jump to

Keyboard shortcuts

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