docker

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDockerSocketPath = "/var/run/docker.sock"

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (harness.Harness, error)

Types

type Option

type Option func(*docker) error

func WithAuthFromKeychain

func WithAuthFromKeychain(registry string) Option

func WithAuthFromStatic

func WithAuthFromStatic(registry, username, password, auth string) Option

func WithEnvs

func WithEnvs(env ...string) Option

func WithImageRef

func WithImageRef(ref name.Reference) Option

func WithMounts

func WithMounts(mounts ...mount.Mount) Option

func WithName

func WithName(name string) Option

func WithNetworks

func WithNetworks(networks ...client.NetworkAttachment) Option

func WithResources

func WithResources(req client.ResourcesRequest) Option

func WithVolumes

func WithVolumes(volumes ...VolumeConfig) Option

type RegistryAuthConfig

type RegistryAuthConfig struct {
	Username string
	Password string
	Auth     string
}

type RegistryConfig

type RegistryConfig struct {
	Auth *RegistryAuthConfig
	Tls  *RegistryTlsConfig
}

type RegistryTlsConfig

type RegistryTlsConfig struct {
	CertFile string
	KeyFile  string
	CaFile   string
}

type VolumeConfig

type VolumeConfig struct {
	Name   string
	Target string
}

Jump to

Keyboard shortcuts

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