Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID string Resource string Status string Reason string Timestamp time.Time Token string }
Event is a cloudformation event.
type Handle ¶
Handle is a wrapper for service clients. Use it to get, list, delete stacks by name.
func NewHandle ¶
NewHandle returns a new Handle with service clients created from the supplied AWS config struct.
func (Handle) List ¶
List returns a slice of Stack structs and an error. The supplied glob filters stacks based on the stack name.
type Stack ¶
type Stack struct { NoRollback bool TermProc bool Name string Short string // ok, prog, err Status string Reason string Desc string Caps []string Topics []string Params map[string]string Outputs map[string]string Tags map[string]string Created time.Time Updated time.Time Handle Handle `json:"-" yaml:"-"` Template Template TemplateBody string `json:"-" yaml:"-"` }
Stack is a wrapper for the cloudformation stack struct with simplified fields.
func NewFromAWS ¶
NewFromAWS converts a cloudformation stack into an sfm Stack.
func (Stack) Events ¶
Events returns stack events which were generated after the supplied EventId for the supplied request token. If no EventId is supplied (an empty string) the most recent Event is returned. If no ClientRequestToken is supplied (an empty string) events aren't filtered by request token.
func (*Stack) NewTemplate ¶
func (Stack) StringVerbose ¶
StringVerbose is a stringer which returns more than just a name.
type Template ¶
type Template struct { AWSTemplateFormatVersion string `yaml:"AWSTemplateFormatVersion,omitempty"` Transform string `yaml:"Transform,omitempty"` Description string `yaml:"Description,omitempty"` Metadata map[string]interface{} `yaml:"Metadata,omitempty"` Parameters map[string]interface{} `yaml:"Parameters,omitempty"` Mappings map[string]interface{} `yaml:"Mappings,omitempty"` Conditions map[string]interface{} `yaml:"Conditions,omitempty"` Resources map[string]interface{} `yaml:"Resources,omitempty"` Outputs map[string]interface{} `yaml:"Outputs,omitempty"` }
Template contains the content of the cloudformation template and probably some helper functions.