container

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(_ context.Context, name string, cfg Config) (types.Harness, error)

Types

type Config

type Config struct {
	Env        map[string]string
	Image      string
	Mounts     []ConfigMount
	Networks   []string
	Privileged bool
}

type ConfigMount

type ConfigMount struct {
	Source      string
	Destination string
}

ConfigMount is a simplified wrapper around mount.Mount, intended to only support BindMounts.

Jump to

Keyboard shortcuts

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