Documentation
¶
Index ¶
- func CreateTaskFunctinons(awsClients aws.Clients) *handler.TaskFunctions
- func StateMachine() (*machine.StateMachine, error)
- func StateMachineWithTaskHandlers(tfs *handler.TaskFunctions) (*machine.StateMachine, error)
- func TaskFunctions() *handler.TaskFunctions
- type BadReleaseError
- type CleanUpError
- type DeployError
- type DeployHandler
- func CheckHealthy(awsc aws.Clients) DeployHandler
- func CleanUpFailure(awsc aws.Clients) DeployHandler
- func CleanUpSuccess(awsc aws.Clients) DeployHandler
- func Deploy(awsc aws.Clients) DeployHandler
- func Lock(awsc aws.Clients) DeployHandler
- func ReleaseLockFailure(awsc aws.Clients) DeployHandler
- func Validate(awsc aws.Clients) DeployHandler
- func ValidateResources(awsc aws.Clients) DeployHandler
- type ErrorWrapper
- type HaltError
- type HealthError
- type LockError
- type LockExistsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTaskFunctinons ¶
func CreateTaskFunctinons(awsClients aws.Clients) *handler.TaskFunctions
CreateTaskFunctinons returns
func StateMachineWithTaskHandlers ¶
func StateMachineWithTaskHandlers(tfs *handler.TaskFunctions) (*machine.StateMachine, error)
StateMachineWithTaskHandlers returns
Types ¶
type DeployHandler ¶
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