resourceoperation

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Accounts
	UpdateParent = 1
	Create       = 2
	Update       = 3

	// IaC
	Diff   = 4
	Deploy = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceOperation

type ResourceOperation interface {
	Call(context.Context) error
	ToString() string
	AddDependent(ResourceOperation)
	ListDependents() []ResourceOperation
}

func CollectAccountOps

func CollectAccountOps(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	operation int,
	acct *resource.Account,
	stackFilter string,
) []ResourceOperation

func CollectOrganizationUnitOps

func CollectOrganizationUnitOps(
	ctx context.Context,
	consoleUI runner.ConsoleUI,
	orgClient awsorgs.Client,
	rootOU *resource.AccountGroup,
	op int,
) []ResourceOperation

func FlattenOperations

func FlattenOperations(topList []ResourceOperation) []ResourceOperation

func NewAccountOperation

func NewAccountOperation(
	orgClient awsorgs.Client,
	consoleUI runner.ConsoleUI,
	account *resource.Account,
	operation int,
	newParent *resource.AccountGroup,
	currentParent *resource.AccountGroup,
) ResourceOperation

func NewCDKOperation

func NewCDKOperation(consoleUI runner.ConsoleUI, acct *resource.Account, stack resource.Stack, op int) ResourceOperation

func NewOrganizationUnitOperation

func NewOrganizationUnitOperation(
	orgClient awsorgs.Client,
	consoleUI runner.ConsoleUI,
	organizationUnit *resource.AccountGroup,
	operation int,
	newParent *resource.AccountGroup,
	currentParent *resource.AccountGroup,
	newName *string,
) ResourceOperation

func NewTFOperation

func NewTFOperation(consoleUI runner.ConsoleUI, acct *resource.Account, stack resource.Stack, op int) ResourceOperation

Jump to

Keyboard shortcuts

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