builder

package
v0.0.0-...-1b7c243 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBuilder = defaultDockerBuilder

Functions

func PlatformAdd

func PlatformAdd(opts PlatformOptions) error

func PlatformRemove

func PlatformRemove(name string) error

func PlatformUpdate

func PlatformUpdate(opts PlatformOptions) error

func Register

func Register(name string, builder Builder)

Register registers a new builder in the Builder registry.

Types

type BuildOpts

type BuildOpts struct {
	BuildFromFile  bool
	Rebuild        bool
	Redeploy       bool
	ArchiveURL     string
	ArchiveFile    io.Reader
	ArchiveTarFile io.ReadCloser
	ArchiveSize    int64
	ImageID        string
	Tag            string
}

type Builder

type Builder interface {
	Build(p provision.BuilderDeploy, app provision.App, evt *event.Event, opts BuildOpts) (string, error)
}

Builder is the basic interface of this package.

func Get

func Get(name string) (Builder, error)

Get gets the named builder from the registry.

func GetDefault

func GetDefault() (Builder, error)

func Registry

func Registry() ([]Builder, error)

Registry returns the list of registered builders.

type PlatformBuilder

type PlatformBuilder interface {
	PlatformAdd(PlatformOptions) error
	PlatformUpdate(PlatformOptions) error
	PlatformRemove(name string) error
}

PlatformBuilder is a builder where administrators can manage platforms (automatically adding, removing and updating platforms).

type PlatformOptions

type PlatformOptions struct {
	Name   string
	Args   map[string]string
	Input  io.Reader
	Output io.Writer
}

PlatformOptions is the set of options provided to PlatformAdd and PlatformUpdate, in PlatformBuilder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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