config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintExample added in v0.0.4

func PrintExample()

func ProcessFileConfig

func ProcessFileConfig(name string)

Types

type ConfigFile

type ConfigFile struct {
	BinaryFile        string   `mapstructure:"terraform_binary_file"`
	PlanFileBasename  string   `mapstructure:"terraform_plan_file_basename"`
	SearchFolder      string   `mapstructure:"terraform_plan_search_folder"`
	CriticalResources []string `mapstructure:"critical_resources"`
	AllowedRemovals   []string `mapstructure:"allowed_removals"`
}

type DefensePlan

type DefensePlan struct {
	IsAllCriticalSpecified bool
	RescueList             map[string]bool
	IgnoreList             map[string]bool
}

type MergedConfig

type MergedConfig struct {
	ConfigFile
	ReportFileName         string
	FailIfCriticalRemovals bool
	CriticalRemovalsFound  bool
	DefensePlan
}
var AppConfig *MergedConfig

Jump to

Keyboard shortcuts

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