forgelib

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployOut

type DeployOut struct {
	Message string
}

DeployOut provides a controlled format for information to be passed out of the Deploy function

type Stack

type Stack struct {
	ParametersBody  string
	ProjectManifest string
	CfnRoleName     string
	StackID         string
	StackInfo       *cloudformation.Stack
	StackName       string
	StackPolicyBody string
	TagsBody        string
	TemplateBody    string
}

Stack represents the attributes of a stack deployment, including the AWS parameters, and local resources which represent what needs to be deployed

func (*Stack) Deploy

func (s *Stack) Deploy() (output DeployOut, err error)

Deploy will create or update the stack (depending on its current state)

func (*Stack) Destroy

func (s *Stack) Destroy() (err error)

Destroy will delete the stack

func (*Stack) GetLastEventTime

func (s *Stack) GetLastEventTime() (*time.Time, error)

GetLastEventTime will get the time of the last event for the stack

func (*Stack) GetStackInfo

func (s *Stack) GetStackInfo() (err error)

GetStackInfo populates the StackInfo for this object from the existing stack found in the environment

func (*Stack) ListEvents

func (s *Stack) ListEvents(after *time.Time) (events []*cloudformation.StackEvent, err error)

ListEvents will get all events for a stack and sort them in chronological order within a time range

Jump to

Keyboard shortcuts

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