docker

package
v0.0.0-...-cc081fa Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Containers map[string]ContainerConfig `toml:"service"`
	Networks   map[string]NetworkConfig   `toml:"network"`
	Volumes    map[string]VolumeConfig    `toml:"volume"`
}

type ContainerConfig

type ContainerConfig struct {
	Image    string
	Restart  string
	Ports    []Port
	Networks []string
	EnvVars  []KeyValue
	Mounts   []Mount
}

type KeyValue

type KeyValue struct {
	Name  string
	Value string
}

type Mount

type Mount struct {
	Host      string
	Container string
	Type      string
}

type NetworkConfig

type NetworkConfig struct{}

type Port

type Port struct {
	Host      string
	Container string
	Protocol  string
}

type ProviderImpl

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

func NewProvider

func NewProvider(config Config) (ProviderImpl, error)

func (ProviderImpl) Close

func (provider ProviderImpl) Close()

func (ProviderImpl) Up

func (provider ProviderImpl) Up(ctx context.Context) error

type VolumeConfig

type VolumeConfig struct {
	Labels []KeyValue
}

Jump to

Keyboard shortcuts

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