builderfile

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2014 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builderfile

type Builderfile struct {
	Docker     `toml:"docker"`
	Containers map[string]ContainerSection `toml:"containers"`
}

Builderfile is a struct representation of what is expected to be inside a Builderfile.

func (*Builderfile) Clean

func (file *Builderfile) Clean()

Clean tidies up the structure of the Builderfile struct slightly by replacing some occurrences of nil arrays with empty arrays []string{}.

type ContainerSection

type ContainerSection struct {
	Name       string   `toml:"-"`
	Dockerfile string   `toml:"Dockerfile"`
	Included   []string `toml:"included"`
	Excluded   []string `toml:"excluded"`
	Registry   string   `toml:"registry"`
	Project    string   `toml:"project"`
	Tags       []string `toml:"tags"`
	SkipPush   bool     `toml:"skip_push"`
}

ContainerSection is a struct representation of an individual member of the "containers" section of a Builderfile. Each of these sections defines a docker container to be built and other related options.

type Docker

type Docker struct {
	BuildOpts []string `toml:"build_opts"`
	TagOpts   []string `toml:"tag_opts"`
}

Docker is a struct representation of the "docker" section of a Builderfile.

Jump to

Keyboard shortcuts

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