dockerbuilder

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBuilderTypeName = "default"

Variables

This section is empty.

Functions

func AssetRootCmd

func AssetRootCmd(creator Creator, short string) *cobra.Command

func NewDefaultDockerBuilder

func NewDefaultDockerBuilder(buildArgs []string) distgo.DockerBuilder

func NewDefaultDockerBuilderFromConfig

func NewDefaultDockerBuilderFromConfig(cfgYML []byte) (distgo.DockerBuilder, error)

func NewDockerBuilderFactory

func NewDockerBuilderFactory(providedDockerBuilderCreators ...Creator) (distgo.DockerBuilderFactory, error)

Types

type Creator

type Creator interface {
	TypeName() string
	Creator() CreatorFunction
}

func AssetDockerBuilderCreators

func AssetDockerBuilderCreators(assetPaths ...string) ([]Creator, error)

func NewCreator

func NewCreator(typeName string, creatorFn CreatorFunction) Creator

type CreatorFunction

type CreatorFunction func(cfgYML []byte) (distgo.DockerBuilder, error)

type DefaultDockerBuilderConfig

type DefaultDockerBuilderConfig struct {
	BuildArgs []string `yaml:"build-args"`
}

func (*DefaultDockerBuilderConfig) ToDockerBuilder

func (cfg *DefaultDockerBuilderConfig) ToDockerBuilder() distgo.DockerBuilder

Jump to

Keyboard shortcuts

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