awscf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 ErrStackDoesntExist = errors.New("stack doesn't exist")

Functions

func Diff

func Diff(chSet *ChangeSet) (string, error)

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, error)

func (*ChangeSet) Stack

func (cs *ChangeSet) Stack() *Stack

func (*ChangeSet) WithCapabilities

func (cs *ChangeSet) WithCapabilities(capabilities []string) *ChangeSet

func (*ChangeSet) WithParameter

func (cs *ChangeSet) WithParameter(k, v string) *ChangeSet

func (*ChangeSet) WithParameters

func (cs *ChangeSet) WithParameters(parameters map[string]string) *ChangeSet

func (*ChangeSet) WithRollback

func (cs *ChangeSet) WithRollback(rollbackCfg *cloudformation.RollbackConfiguration) *ChangeSet

func (*ChangeSet) WithTags

func (cs *ChangeSet) WithTags(tags map[string]string) *ChangeSet

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 KeyVal

type KeyVal struct {
	Key string
	Val string
}

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 (*Stack) AlreadyDeployed

func (s *Stack) AlreadyDeployed() (bool, error)

func (*Stack) BlockResource

func (s *Stack) BlockResource(resource string) error

BlockResource prevents a stack resource from deletion and replacement

func (*Stack) Body

func (s *Stack) Body() (string, error)

func (*Stack) ChangeSet

func (s *Stack) ChangeSet(body string) *ChangeSet

func (*Stack) Delete

func (s *Stack) Delete() error

func (*Stack) Events

func (s *Stack) Events() ([]StackEvent, error)

func (*Stack) EventsTrack

func (s *Stack) EventsTrack() *EventsTrack

func (*Stack) Exists

func (s *Stack) Exists() (bool, error)

func (*Stack) Info

func (s *Stack) Info() (StackInfo, error)

func (*Stack) Resources

func (s *Stack) Resources() ([]StackResource, error)

Resources returns info about stack resources

func (*Stack) UnblockResource

func (s *Stack) UnblockResource(resource string) error

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 (si StackInfo) AlreadyDeployed() bool

func (StackInfo) HasParameter

func (si StackInfo) HasParameter(k string) bool

func (StackInfo) InReviewState

func (si StackInfo) InReviewState() bool

func (StackInfo) Outputs

func (si StackInfo) Outputs() []StackOutput

Outputs returns the "outputs" of a stack

func (StackInfo) Parameters

func (si StackInfo) Parameters() []KeyVal

func (StackInfo) Status

func (si StackInfo) Status() string

func (StackInfo) StatusDescription

func (si StackInfo) StatusDescription() string

func (StackInfo) Tags

func (si StackInfo) Tags() []KeyVal

type StackOutput

type StackOutput struct {
	Key         string
	Value       string
	Description string
	ExportName  string
}

StackOutput contains info about stack output variables

type StackResource

type StackResource struct {
	LogicalID    string
	PhysicalID   string
	Status       string
	StatusReason string
	Type         string
	Timestamp    time.Time
}

Jump to

Keyboard shortcuts

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