deployer

package
v0.0.0-...-e131cc6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTaskFunctinons

func CreateTaskFunctinons(awsClients aws.Clients) *handler.TaskFunctions

CreateTaskFunctinons returns

func StateMachine

func StateMachine() (*machine.StateMachine, error)

StateMachine returns

func StateMachineWithTaskHandlers

func StateMachineWithTaskHandlers(tfs *handler.TaskFunctions) (*machine.StateMachine, error)

StateMachineWithTaskHandlers returns

func TaskFunctions

func TaskFunctions() *handler.TaskFunctions

TaskFunctions returns

Types

type BadReleaseError

type BadReleaseError struct {
	*ErrorWrapper
}

BadReleaseError error

type CleanUpError

type CleanUpError struct {
	*ErrorWrapper
}

CleanUpError error

type DeployError

type DeployError struct {
	*ErrorWrapper
}

DeployError error

type DeployHandler

type DeployHandler func(context.Context, *models.Release) (*models.Release, error)

DeployHandler function type

func CheckHealthy

func CheckHealthy(awsc aws.Clients) DeployHandler

CheckHealthy checks all the instances are healthy

func CleanUpFailure

func CleanUpFailure(awsc aws.Clients) DeployHandler

CleanUpFailure deletes newly deployed resources

func CleanUpSuccess

func CleanUpSuccess(awsc aws.Clients) DeployHandler

CleanUpSuccess deleted the old resources

func Deploy

func Deploy(awsc aws.Clients) DeployHandler

Deploy receives release, fetches AWS cloud resources, and creates New resources It returns the release with additional information including

func Lock

func Lock(awsc aws.Clients) DeployHandler

Lock Tries to Grab the Lock, if it fails for any reason, no cleanup is necessary

func ReleaseLockFailure

func ReleaseLockFailure(awsc aws.Clients) DeployHandler

ReleaseLockFailure releases the lock then fails

func Validate

func Validate(awsc aws.Clients) DeployHandler

Validate checks the release for issues

func ValidateResources

func ValidateResources(awsc aws.Clients) DeployHandler

ValidateResources ensures resources exist, and are valid It also retrieves and saves necessary information about those resources

type ErrorWrapper

type ErrorWrapper struct {
	// contains filtered or unexported fields
}

ErrorWrapper error

func (*ErrorWrapper) Error

func (e *ErrorWrapper) Error() string

type HaltError

type HaltError struct {
	*ErrorWrapper
}

HaltError error

type HealthError

type HealthError struct {
	*ErrorWrapper
}

HealthError error

type LockError

type LockError struct {
	*ErrorWrapper
}

LockError error

type LockExistsError

type LockExistsError struct {
	*ErrorWrapper
}

LockExistsError error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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