docker

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 12 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
}

func NewClient

func NewClient() (*Client, error)

func (Client) PullImage

func (c Client) PullImage(ctx context.Context, ref string) error

func (Client) Run

func (c Client) Run(ctx context.Context, conf Config) error

type Config

type Config struct {
	Image    string
	Env      []string
	Cmd      []string
	Mounts   []MountConfig
	Rootless bool
}

type MountConfig

type MountConfig struct {
	Source   string
	Target   string
	ReadOnly bool
}

Jump to

Keyboard shortcuts

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