builderfile

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger added in v0.6.0

func Logger(l *logrus.Logger)

Logger sets the (global) logger for the builderfile package

Types

type Builderfile

type Builderfile struct {
	Version          int                         `toml:"version"`
	Docker           Docker                      `toml:"docker"`
	Containers       map[string]ContainerSection `toml:"containers"`
	ContainerArr     []*ContainerSection         `toml:"container"`
	ContainerGlobals *ContainerSection           `toml:"container_globals"`
}

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

func Convert0to1 added in v0.6.0

func Convert0to1(zero *Builderfile) (*Builderfile, error)

Convert0to1 converts the deprecated builderfile version 0 to version 1. It also prints out a deprecation warning message.

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:"name"`
	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"`
	CfgUn      string   `toml:"dockercfg_un"`
	CfgPass    string   `toml:"dockercfg_pass"`
	CfgEmail   string   `toml:"dockercfg_email"`
}

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