launch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(repo config.Repo, home string, cfg config.SaneConfig, mode string)

Do apply/remove a config or a list of aliases

func Start

func Start(repo config.Repo, home string)

Start start a container or a docker compose file

func Stop

func Stop(repo config.Repo, home string)

Stop stop a container

Types

type DockerConfig

type DockerConfig struct {
	Name        string
	Deamon      bool
	Net         string
	Ipc         string
	Pid         string
	Ports       []PortMapping
	Environment []EnvironmentPair
	Image       string
	Start       int
	Stop        int
}

DockerConfig the docker run configuration

type EnvironmentPair

type EnvironmentPair struct {
	Key   string
	Value string
}

EnvironmentPair a k-v pair for an environment variable

type PortMapping

type PortMapping struct {
	Source int
	Target int
}

PortMapping a k-v pair for an docker port mapping

Jump to

Keyboard shortcuts

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