config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMount

func DecodeMount(mounts []string, step *docker.Step) error

DecodeMount parses mount format for directories to be mounted as bind volumes

Types

type Configs

type Configs struct {
	Tasks map[string][]Task
}

Configs describes the parsed information from the dunner file

func GetConfigs

func GetConfigs(filename string) (*Configs, error)

GetConfigs reads and parses tasks from the dunner file

type DirMount

type DirMount struct {
	Src      string `yaml:"src"`
	Dest     string `yaml:"dest"`
	ReadOnly bool   `yaml:"read-only"`
}

type Task

type Task struct {
	Name    string   `yaml:"name"`
	Image   string   `yaml:"image"`
	SubDir  string   `yaml:"dir"`
	Command []string `yaml:"command"`
	Envs    []string `yaml:"envs"`
	Mounts  []string `yaml:"mounts"`
	Args    []string `yaml:"args"`
}

Task describes a single task to be run in a docker container

Jump to

Keyboard shortcuts

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