deployer

package
v0.0.0-...-4665912 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSetRecord

type ChangeSetRecord struct {
	ChangeSet     *cloudformation.DescribeChangeSetOutput
	StackEvents   streamer.StackEvents
	ChangeSetType *string
	Err           error
}

type DeployParams

type DeployParams struct {
	S3Uploader           uploader.Uploaderiface
	StackName            string
	TemplateFile         string
	Parameters           []*cloudformation.Parameter
	Capabilities         []string
	NoExecuteChangeset   bool
	RoleArn              string
	NotificationArns     []string
	FailOnEmptyChangeset bool
	Tags                 []*cloudformation.Tag
	ForceDeploy          bool
}

DeployParams parameters required for deploy command

type Deployer

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

func (*Deployer) CreateChangeSet

func (s *Deployer) CreateChangeSet(deployParams *DeployParams) *ChangeSetRecord

func (*Deployer) DescribeStackUnsafe

func (s *Deployer) DescribeStackUnsafe(stackName *string) *cloudformation.Stack

Use following function ONLY when you are 100% confident that the stack exists

func (*Deployer) ExecuteChangeset

func (s *Deployer) ExecuteChangeset(stackName *string, changeSetID *string) error

func (*Deployer) WaitForChangeSet

func (s *Deployer) WaitForChangeSet(stackName *string, changeSetID *string) (res *ChangeSetRecord)

func (*Deployer) WaitForExecute

func (s *Deployer) WaitForExecute(stackName *string, changeSet *ChangeSetRecord, stmr streamer.Streameriface) (res *StackRecord)

type Deployeriface

type Deployeriface interface {
	WaitForChangeSet(*string, *string) *ChangeSetRecord
	WaitForExecute(*string, *ChangeSetRecord, streamer.Streameriface) *StackRecord
	ExecuteChangeset(*string, *string) error
	CreateChangeSet(deployParams *DeployParams) *ChangeSetRecord
	DescribeStackUnsafe(stackName *string) *cloudformation.Stack
}

type StackRecord

type StackRecord struct {
	Stack *cloudformation.Stack
	Err   error
}

Jump to

Keyboard shortcuts

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