tfstack

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriftSum

type DriftSum struct {
	Drift   bool `json:"drift"`
	Add     int  `json:"add"`
	Change  int  `json:"change"`
	Destroy int  `json:"destroy"`
}

func StackInit

func StackInit(workdir string, stack config.Stack, extraBackendVars map[string]string) (*DriftSum, string, error)

StackInit initializes a stack and returns a DriftSum that describes the drift details

func StackScan

func StackScan(name, workdir, configPath string, extraBackendVars map[string]string) (*DriftSum, error)

StackScan scans a given stack only if stack exist in the list of stacks in the config file and returns a DriftSum that describes the drift between the stack's Terraform state and the state of its resources.

name is the name of the stack to scan. workdir is the workdir of the stack to scan. configPath is the path to the config of the stacks to scan. extraBackendVars is a map of extra variables to pass to the backend when initializing the stack.

Jump to

Keyboard shortcuts

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