repo

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applet

type Applet struct {
	Name       string `yaml:"name" flag:"name" desc:"Assign a name to the container"`
	WorkDir    string `yaml:"work_dir" flag:"workdir w" desc:"Working directory inside the container"`
	Entrypoint string `yaml:"entrypoint" flag:"entrypoint" desc:"Overwrite the default ENTRYPOINT of the image"`
	Restart    string `yaml:"restart" flag:"restart" desc:"Restart policy to apply when a container exits (default \no\")"`
	Network    string `yaml:"network" flag:"network" desc:"Connect a container to a network"`
	EnvFilter  string `yaml:"env_filter" flag:"env-filter" desc:"Filter env vars passed to container from --all-envs"`
	Hostname   string `yaml:"hostname" flag:"hostname" desc:"Container host name"`
	Image      string `yaml:"image" flag:"image" desc:"Container image"`
	Tag        string `yaml:"image_tag" flag:"tag" desc:"Container image tag"`

	RM               bool `yaml:"rm" flag:"rm" desc:"Automatically remove the container when it exits"`
	TTY              bool `yaml:"tty" flag:"tty t" desc:"Allocate a pseudo-TTY"`
	Interactive      bool `yaml:"interactive" flag:"interactive i" desc:"Keep STDIN open even if not attached"`
	Privileged       bool `yaml:"privileged" flag:"privileged" desc:"Give extended privileges to this container"`
	Detach           bool `yaml:"detach" flag:"detach d" desc:"Run container in background and print container ID"`
	Kill             bool `yaml:"kill" flag:"kill" desc:"Kill previous run on container with same name"`
	AllEnvs          bool `yaml:"all_envs" flag:"all-envs" desc:"Pass all envars to container"`
	Pull             bool `yaml:"pull" flag:"pull" desc:"Pull image before running it"`
	InverseEnvFilter bool `yaml:"inverse" flag:"inverse" desc:"Inverse env-filter"`

	DNS          []string `yaml:"dns" flag:"dns" desc:"Set custom DNS servers"`
	DNSSearch    []string `yaml:"dns_search" flag:"dns-search" desc:"Set custom DNS search domains"`
	DNSOption    []string `yaml:"dns_option" flag:"dns-option" desc:"Set DNS options"`
	Env          []string `yaml:"environment" flag:"environment e" desc:"Set environment variables"`
	Volumes      []string `yaml:"volumes" flag:"volume v" desc:"Bind mount a volume"`
	Ports        []string `yaml:"ports" flag:"publish p" desc:"Publish a container's port(s) to the host"`
	EnvFile      []string `yaml:"env_file" flag:"env-file" desc:"Read in a file of environment variables"`
	Dependencies []string `yaml:"dependencies" flag:"dependency" desc:"Run container before"`
	BeforeHooks  []string `yaml:"before_hooks" flag:"before-hook" desc:"Run container before."`
	AfterHooks   []string `yaml:"after_hooks" flag:"after-hook" desc:"Run container after"`
	Links        []string `yaml:"links" flag:"link" desc:"Add link to another container"`
	Command      []string `yaml:"command" flag:"command" desc:"Command to run in container"`
}

func (*Applet) Exec

func (a *Applet) Exec(extra ...string) error

func (*Applet) KillCmd

func (a *Applet) KillCmd() *exec.Cmd

func (*Applet) PreExec

func (a *Applet) PreExec()

func (*Applet) PullCmd added in v1.2.6

func (a *Applet) PullCmd() *exec.Cmd

func (*Applet) RunCmd

func (a *Applet) RunCmd(extra []string) *exec.Cmd

func (*Applet) UnmarshalYAML

func (a *Applet) UnmarshalYAML(unmarshal func(interface{}) error) error

type Repo

type Repo struct {
	Applets map[string]Applet `yaml:"applets"`
	// contains filtered or unexported fields
}

func New

func New(rootDir string) *Repo

func (*Repo) Init

func (r *Repo) Init() error

func (*Repo) Update

func (r *Repo) Update(reg *registry.Registry) error

Jump to

Keyboard shortcuts

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