Documentation
¶
Index ¶
- Variables
- type ChSetDiff
- type Change
- type ChangeSet
- func (cs *ChangeSet) Close() error
- func (cs *ChangeSet) Register() (_ *ChangeSetHandle, err error)
- func (cs *ChangeSet) Stack() *Stack
- func (cs *ChangeSet) WithCapabilities(capabilities []string) *ChangeSet
- func (cs *ChangeSet) WithClientToken(token string) *ChangeSet
- func (cs *ChangeSet) WithNotificationARNs(arns []string) *ChangeSet
- func (cs *ChangeSet) WithParameter(k, v string) *ChangeSet
- func (cs *ChangeSet) WithParameters(parameters map[string]string) *ChangeSet
- func (cs *ChangeSet) WithResourceTypes(types []string) *ChangeSet
- func (cs *ChangeSet) WithRoleARN(arn string) *ChangeSet
- func (cs *ChangeSet) WithRollback(rollbackCfg *cloudformation.RollbackConfiguration) *ChangeSet
- func (cs *ChangeSet) WithTags(tags map[string]string) *ChangeSet
- func (cs *ChangeSet) WithTemplateURL(url string) *ChangeSet
- func (cs *ChangeSet) WithUsePrevTpl(usePrevTpl bool) *ChangeSet
- type ChangeSetHandle
- type EventsTrack
- type KeyVal
- type ParametersMissingError
- type Stack
- func (s *Stack) AlreadyDeployed() (_ bool, err error)
- func (s *Stack) BlockResource(resource string) error
- func (s *Stack) Body() (string, error)
- func (s *Stack) ChangeSet(body string) *ChangeSet
- func (s *Stack) Delete() error
- func (s *Stack) Events() ([]StackEvent, error)
- func (s *Stack) EventsTrack() *EventsTrack
- func (s *Stack) Exists() (_ bool, err error)
- func (s *Stack) Info() (_ StackInfo, err error)
- func (s *Stack) Refresh()
- func (s *Stack) Resources() ([]StackResource, error)
- func (s *Stack) UnblockResource(resource string) error
- func (s *Stack) Wait() (err error)
- type StackEvent
- type StackEvents
- type StackInfo
- func (si StackInfo) AlreadyDeployed() bool
- func (si StackInfo) HasParameter(k string) bool
- func (si StackInfo) ID() string
- func (si StackInfo) InReviewState() bool
- func (si StackInfo) Outputs() []StackOutput
- func (si StackInfo) Parameters() []KeyVal
- func (si StackInfo) Status() string
- func (si StackInfo) StatusDescription() string
- func (si StackInfo) Tags() []KeyVal
- type StackOutput
- type StackResource
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoChange = errors.New("no changes")
ErrNoChange is error that indicate that there are no changes to apply.
View Source
var ErrStackAlreadyInProgress = errors.New("stack is already in progress")
View Source
var ErrStackDoesntExist = errors.New("stack doesn't exist")
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct { Action string ResourceType string LogicalResourceID string ReplacementNeeded bool }
Change is a change that is applied to the stack.
type ChangeSet ¶
type ChangeSet struct {
// contains filtered or unexported fields
}
func (*ChangeSet) Register ¶
func (cs *ChangeSet) Register() (_ *ChangeSetHandle, err error)
func (*ChangeSet) WithCapabilities ¶
func (*ChangeSet) WithClientToken ¶ added in v0.4.0
func (*ChangeSet) WithNotificationARNs ¶ added in v0.4.0
func (*ChangeSet) WithParameter ¶
func (*ChangeSet) WithParameters ¶
func (*ChangeSet) WithResourceTypes ¶ added in v0.4.0
func (*ChangeSet) WithRoleARN ¶ added in v0.4.0
func (*ChangeSet) WithRollback ¶
func (cs *ChangeSet) WithRollback(rollbackCfg *cloudformation.RollbackConfiguration) *ChangeSet
func (*ChangeSet) WithTemplateURL ¶ added in v0.4.0
func (*ChangeSet) WithUsePrevTpl ¶ added in v0.4.0
type ChangeSetHandle ¶
type ChangeSetHandle struct { ID string Changes []Change IsUpdate bool // contains filtered or unexported fields }
func (ChangeSetHandle) Exec ¶
func (csh ChangeSetHandle) Exec() error
type EventsTrack ¶
type EventsTrack struct {
// contains filtered or unexported fields
}
func (*EventsTrack) FreshEvents ¶
func (et *EventsTrack) FreshEvents() (StackEvents, error)
type ParametersMissingError ¶
type ParametersMissingError struct {
MissingParameters []string
}
func (*ParametersMissingError) Error ¶
func (e *ParametersMissingError) Error() string
type Stack ¶
type Stack struct { Name string // contains filtered or unexported fields }
func NewStack ¶
func NewStack(name string, cf cloudformationiface.CloudFormationAPI, uploader *saAws.S3Uploader) *Stack
func (*Stack) AlreadyDeployed ¶
func (*Stack) BlockResource ¶
BlockResource prevents a stack resource from deletion and replacement.
func (*Stack) Events ¶
func (s *Stack) Events() ([]StackEvent, error)
func (*Stack) EventsTrack ¶
func (s *Stack) EventsTrack() *EventsTrack
func (*Stack) Resources ¶
func (s *Stack) Resources() ([]StackResource, error)
Resources returns info about stack resources.
func (*Stack) UnblockResource ¶
UnblockResource discards the blocking from the resource.
type StackEvent ¶
type StackEvent struct { ID string ResourceType string Status string LogicalResourceID string StatusReason string Timestamp time.Time }
StackEvent is a stack event.
type StackEvents ¶
type StackEvents []StackEvent
func (StackEvents) Reversed ¶
func (se StackEvents) Reversed() StackEvents
type StackInfo ¶
type StackInfo struct {
// contains filtered or unexported fields
}
func (StackInfo) AlreadyDeployed ¶
func (StackInfo) HasParameter ¶
func (StackInfo) InReviewState ¶
func (StackInfo) Outputs ¶
func (si StackInfo) Outputs() []StackOutput
Outputs returns the "outputs" of a stack.
func (StackInfo) Parameters ¶
func (StackInfo) StatusDescription ¶
type StackOutput ¶
StackOutput contains info about stack output variables.
Click to show internal directories.
Click to hide internal directories.