stack

package
v0.0.0-...-31e3a40 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

README

Stack

Stack manages the creation of stacks which is the main state object for lats. A stack holds all of the objects needed to recreate a database.

Documentation

Index

Constants

View Source
const Cluster = "RDSCluster"
View Source
const DBClusterParameterGroup = "DBClusterParameterGroup"
View Source
const DBParameterGroup = "DBParameterGroup"
View Source
const Instance = "RDSInstance"
View Source
const LoneInstance = "SingleRDSInstance"
View Source
const OptionGroup = "OptionGroup"
View Source
const SecurityGroup = "SecurityGroup"
View Source
const SecurityGroupRules = "SecurityGroupRules"

Variables

This section is empty.

Functions

func DeleteStack

func DeleteStack(filename string) error

Types

type Object

type Object struct {
	FileName string
	Order    int
	ObjType  string
}

func NewObject

func NewObject(filename string, order int, objtype string) Object

func (Object) ReadObject

func (o Object) ReadObject() interface{}

ReadObject Read the file for the object this uses a crazy case statement to figure out what to decode the value to and return it. This might be replaced with a generic decode function

type Stack

type Stack struct {
	Name                  string //Name is the name of the stack
	RestorationObjectName string
	Objects               map[int][]Object //int is the order in which we restore
}

func NewStack

func NewStack(name string, restorationObjectName string, objects []Object) Stack

func ReadStack

func ReadStack(filename string) (*Stack, error)

func (Stack) Encoder

func (s Stack) Encoder() (*bytes.Buffer, error)

func (Stack) SortStack

func (s Stack) SortStack() *[]int

func (Stack) Write

func (s Stack) Write(filename string) error

Jump to

Keyboard shortcuts

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