docker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRequest

type BuildRequest struct {
	Dockerfile string
	BuildArgs  map[string]string
	Output     io.Writer
	Tag        string
}

type Client

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

func NewClient

func NewClient() (*Client, error)

func (*Client) Build

func (c *Client) Build(ctx context.Context, request BuildRequest) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) HasImage

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

func (*Client) ListImages

func (c *Client) ListImages(ctx context.Context) ([]Image, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) Run

func (c *Client) Run(ctx context.Context, request RunRequest) (runErr error)

func (*Client) SearchImages

func (c *Client) SearchImages(ctx context.Context, term string) ([]SearchResult, error)

type Image

type Image struct {
	Name   string
	Tag    string
	Digest string
}

type Mount

type Mount struct {
	Source   string
	Target   string
	ReadOnly bool
}

type RunRequest

type RunRequest struct {
	Input            io.Reader
	Output           io.Writer
	Image            string
	Mounts           []Mount
	StateDirectory   string
	User             string
	WorkingDirectory string
	Command          []string
	PullImage        bool
}

type SearchResult

type SearchResult struct {
	Name        string
	Description string
}

Jump to

Keyboard shortcuts

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