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.
Click to show internal directories.
Click to hide internal directories.