deploy

package
v0.0.0-...-3bd56f2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TypeAmazon = "amazon"
View Source
const TypeDistant = "distant"
View Source
const TypeLocal = "local"
View Source
const TypeNone = Type("none")

Variables

This section is empty.

Functions

func Start

func Start(model Model, consulClient tools.Consul) error

Types

type Deployer

type Deployer interface {
	RunBefore() error
	Deploy() error
	RunAfter() error
}

func NewAmazonFromJson

func NewAmazonFromJson(serialized json.RawMessage, consulClient tools.Consul) (Deployer, error)

func NewDistantFromJson

func NewDistantFromJson(serialized json.RawMessage, _ tools.Consul) (Deployer, error)

func NewLocalFromJson

func NewLocalFromJson(serialized json.RawMessage, consulClient tools.Consul) (Deployer, error)

func NewNone

func NewNone(_ json.RawMessage, _ tools.Consul) (Deployer, error)

type DistantRunError

type DistantRunError struct {
	Errors []error
}

func (DistantRunError) Error

func (distErr DistantRunError) Error() string

type LocalRunError

type LocalRunError struct {
	Errors []error
}

func (LocalRunError) Error

func (localErr LocalRunError) Error() string

type Model

type Model struct {
	Type                 Type
	SleepAfterDeployTime time.Duration
	Config               json.RawMessage
}

func (*Model) UnmarshalJSON

func (m *Model) UnmarshalJSON(b []byte) error

type Type

type Type string

Jump to

Keyboard shortcuts

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