processing

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TfProviderFolderExist added in v0.0.5

func TfProviderFolderExist(prefix string) bool

Types

type ConsolidatedJson added in v0.0.5

type ConsolidatedJson struct {
	Created   []*ResourceData
	Updated   []*ResourceData
	Deleted   []*ResourceData
	Unchanged []*ResourceData
}

func CollectBinaryData added in v0.0.5

func CollectBinaryData(searchFolder string, planBaseFileName string, cmdFullPathName string, notChDir bool, zeroFoundFail bool) *ConsolidatedJson

CollectBinaryData function does: 1. searches all terraform generated binary plan files, with basename specified in `terraform_plan_file_basename`, starting from root director specified in `terraform_plan_search_folder` config file parameter 2. fills of `reportData` variable, by parsed terraform plan data, which further is going to be source of printed report TODO: Implement test of this function to make sure that it works as expected

func (*ConsolidatedJson) Parse added in v0.0.5

func (cj *ConsolidatedJson) Parse(entity *tfJson.Plan)

parse function parses input data as parameter and puts it to consolidatedJson struct

func (*ConsolidatedJson) TotalItems added in v0.0.5

func (cj *ConsolidatedJson) TotalItems() int

totalItems function returns amount of all items in the consolidatedJson struct

type DecisionMaker added in v0.0.5

type DecisionMaker struct {
	IsAllowedForRemoval func(string) bool
	// contains filtered or unexported fields
}

func GetDecisionMaker added in v0.0.5

func GetDecisionMaker() *DecisionMaker

func (*DecisionMaker) CriticalRemovalsFound added in v0.0.5

func (dm *DecisionMaker) CriticalRemovalsFound() bool

func (*DecisionMaker) SetConfig added in v0.0.5

func (dm *DecisionMaker) SetConfig(config *config.AppConfig)

type ResourceData added in v0.0.5

type ResourceData struct {
	Type  string
	Name  string
	Index string
}

Jump to

Keyboard shortcuts

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