Documentation ¶
Index ¶
- type ChangeSetRecord
- type DeployParams
- type Deployer
- func (s *Deployer) CreateChangeSet(deployParams *DeployParams) *ChangeSetRecord
- func (s *Deployer) DescribeStackUnsafe(stackName *string) *cloudformation.Stack
- func (s *Deployer) ExecuteChangeset(stackName *string, changeSetID *string) error
- func (s *Deployer) WaitForChangeSet(stackName *string, changeSetID *string) (res *ChangeSetRecord)
- func (s *Deployer) WaitForExecute(stackName *string, changeSet *ChangeSetRecord, stmr streamer.Streameriface) (res *StackRecord)
- type Deployeriface
- type StackRecord
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 New ¶
func New(svc cloudformationiface.CloudFormationAPI, logger *logrus.Logger) *Deployer
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 (*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 }
Click to show internal directories.
Click to hide internal directories.