stackit

package
v0.0.0-...-d020a17 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminalStatus

func IsTerminalStatus(status string) bool

Types

type PrepareOutput

type PrepareOutput struct {
	Input        *cloudformation.CreateChangeSetInput
	Output       *cloudformation.CreateChangeSetOutput
	Changes      []*cloudformation.Change
	TemplateBody string
}

type Stackit

type Stackit struct {
	// contains filtered or unexported fields
}

func NewStackit

func NewStackit(api cloudformationctx.CloudFormation, stsApi stsctx.STS) *Stackit

func (*Stackit) Describe

func (s *Stackit) Describe(ctx context.Context, stackName string) (*cloudformation.Stack, error)

func (*Stackit) Down

func (s *Stackit) Down(ctx context.Context, stackName string, events chan<- TailStackEvent) error

func (*Stackit) Execute

func (s *Stackit) Execute(ctx context.Context, stackId, changeSetId string, events chan<- TailStackEvent) error

func (*Stackit) IsSuccessfulState

func (s *Stackit) IsSuccessfulState(ctx context.Context, stackName string) (bool, error)

func (*Stackit) PollStackEvents

func (s *Stackit) PollStackEvents(ctx context.Context, stackId, token string, callback func(event TailStackEvent)) (*TailStackEvent, error)

func (*Stackit) Prepare

func (s *Stackit) Prepare(ctx context.Context, input StackitUpInput, events chan<- TailStackEvent) (*PrepareOutput, error)

func (*Stackit) PrintOutputs

func (s *Stackit) PrintOutputs(ctx context.Context, stackName string, writer io.Writer)

func (*Stackit) Transform

func (s *Stackit) Transform(ctx context.Context, template string, paramMap map[string]string) (*string, error)

type StackitUpInput

type StackitUpInput struct {
	StackName        string
	RoleARN          string
	StackPolicyBody  string
	Template         Template
	PreviousTemplate bool
	Parameters       []*cloudformation.Parameter
	Tags             map[string]string
	NotificationARNs []string
	PopulateMissing  bool
}

type TailPrinter

type TailPrinter struct {
	// contains filtered or unexported fields
}

func NewTailPrinter

func NewTailPrinter(writer io.Writer) TailPrinter

func (*TailPrinter) FormatTailEvent

func (tp *TailPrinter) FormatTailEvent(tailEvent TailStackEvent) string

func (*TailPrinter) PrintTailEvent

func (tp *TailPrinter) PrintTailEvent(tailEvent TailStackEvent)

type TailStackEvent

type TailStackEvent struct {
	cloudformation.StackEvent
}

type Template

type Template interface {
	fmt.Stringer
	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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