container

package
v0.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, cli *provider.DockerClient, cfg Config) (types.Harness, error)

Types

type Config

type Config struct {
	Env            map[string]string
	Ref            name.Reference
	Mounts         []ConfigMount
	ManagedVolumes []ConfigMount
	Networks       []string
	Privileged     bool
}

type ConfigMount

type ConfigMount struct {
	Type        mount.Type
	Source      string
	Destination string
}

ConfigMount is a simplified wrapper around mount.Mount.

Jump to

Keyboard shortcuts

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