stack

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 18 Imported by: 10

Documentation

Overview

Package stack provides CloudFormation stack support.

Index

Constants

View Source
const (
	Unknown Status = ""

	CreateInProgress = "CREATE_IN_PROGRESS"
	CreateFailed     = "CREATE_FAILED"
	CreateComplete   = "CREATE_COMPLETE"
	CreatePending    = "CREATE_PENDING"

	DeleteInProgress = "DELETE_IN_PROGRESS"
	DeleteFailed     = "DELETE_FAILED"
	DeleteComplete   = "DELETE_COMPLETE"
	DeleteSkipped    = "DELETE_SKIPPED"

	UpdateInProgress = "UPDATE_IN_PROGRESS"
	UpdateFailed     = "UPDATE_FAILED"
	UpdateComplete   = "UPDATE_COMPLETE"

	UpdateRollbackInProgress      = "UPDATE_ROLLBACK_IN_PROGRESS"
	UpdateRollbackComplete        = "UPDATE_ROLLBACK_COMPLETE"
	UpdateRollbackCompleteCleanup = "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"
	UpdateCompleteCleanup         = "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"

	RollbackInProgress = "ROLLBACK_IN_PROGRESS"
	RollbackFailed     = "ROLLBACK_FAILED"
	RollbackComplete   = "ROLLBACK_COMPLETE"

	Failed = "FAILED"
)

Statuses available.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map = resources.Map

Map type.

type Stack

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

Stack represents a single CloudFormation stack.

func New

func New(c *up.Config, events event.Events, zones []*route53.HostedZone, region string) *Stack

New stack.

func (*Stack) Apply

func (s *Stack) Apply() error

Apply changes.

func (*Stack) Create

func (s *Stack) Create(versions resources.Versions) error

Create the stack.

func (*Stack) Delete

func (s *Stack) Delete(versions resources.Versions, wait bool) error

Delete the stack, optionally waiting for completion.

func (*Stack) Plan

func (s *Stack) Plan(versions resources.Versions) error

Plan changes.

func (*Stack) Show

func (s *Stack) Show() error

Show resources.

type State

type State int

State represents a generalized stack event state.

const (
	Success State = iota
	Pending
	Failure
)

States available.

type Status

type Status string

Status represents a stack event status.

func (Status) Color

func (s Status) Color(v string) string

Color the given string based on the status.

func (Status) IsDone

func (s Status) IsDone() bool

IsDone returns true when failed or complete.

func (Status) State

func (s Status) State() State

State returns a generalized state.

func (Status) String

func (s Status) String() string

String returns the human representation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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