deployer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTaskFunctinons

func CreateTaskFunctinons(awsc aws.Clients) *handler.TaskHandlers

CreateTaskFunctinons returns

func StateMachine

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

StateMachine returns

func TaskHandlers

func TaskHandlers() *handler.TaskHandlers

TaskHandlers returns

Types

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 DetachForFailure

func DetachForFailure(awsc aws.Clients) DeployHandler

DetachForFailure detach ASGs

func DetachForSuccess

func DetachForSuccess(awsc aws.Clients) DeployHandler

DetachForSuccess detach ASGs

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 DetachError

type DetachError struct {
	Cause string
}

Errors

func (DetachError) Error

func (e DetachError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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