Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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{}.
func (*Builderfile) HandleDeprecatedStanzas ¶ added in v0.7.2
func (file *Builderfile) HandleDeprecatedStanzas() error
HandleDeprecatedStanzas returns an error if file contains any deprecated stanzas that would cause a failure. If no failure would be caused, the error will be nil, but a warning message will be printed out and file will be sanitized to effectively not include the deprecated stanza
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.