docker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps the Docker client library for image operations.

func NewClient

func NewClient() (*Client, error)

NewClient creates a new Docker client configured from environment variables.

func (*Client) Close

func (c *Client) Close() error

Close releases the underlying Docker client connection.

func (*Client) HasImage

func (c *Client) HasImage(ctx context.Context, imageRef string) bool

HasImage checks whether the Docker daemon already has the given image.

func (*Client) LoadImageFromTar

func (c *Client) LoadImageFromTar(_ context.Context, tarPath string) (string, error)

LoadImageFromTar loads an OCI image from a tar archive into the local Docker daemon.

func (*Client) PullImage

func (c *Client) PullImage(_ context.Context, imageRef string) (string, error)

PullImage pulls an image from a remote registry into the local Docker daemon.

Jump to

Keyboard shortcuts

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