utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExampleIacconsoleRcFile added in v0.6.0

func CreateExampleIacconsoleRcFile(iacconsoleRcPath string)

GetiacconsoleConfigContent returns the content for the .iacconsolerc configuration file

func CreateExampleStructure

func CreateExampleStructure(targetDir string, useIaCConsoleDB bool) string

CreateExampleStructure creates an example organization structure with sample configuration files

func GetMD5Hash

func GetMD5Hash(text string) string

Types

type DimensionInIaCConsoleDB added in v0.6.0

type DimensionInIaCConsoleDB struct {
	ID        string
	WorkSpace string
	DimData   map[string]interface{}
}

type IaCConsoleDBResponse added in v0.6.0

type IaCConsoleDBResponse struct {
	Error      string
	Dimensions []DimensionInIaCConsoleDB
}

type State added in v0.6.0

type State struct {
	UnitName          string
	OrgName           string
	DimensionsFlags   []string
	UnitPath          string
	SharedModulesPath string
	InventoryPath     string
	UnitManifestPath  string
	ParsedDimensions  map[string]string
	CmdWorkTempDir    string
	UnitManifest      unitManifestStruct
	StateS3Path       string
	IacconsoleApiUrl  string
	Workspace         string
}

func (*State) GenerateVarsByDimAndData added in v0.6.0

func (s *State) GenerateVarsByDimAndData(optionType string, dimKey string, dimensionJsonMap map[string]interface{})

func (*State) GenerateVarsByDimOptional added in v0.6.0

func (s *State) GenerateVarsByDimOptional(optionType string)

func (*State) GenerateVarsByDims added in v0.6.0

func (s *State) GenerateVarsByDims()

func (*State) GenerateVarsByEnvVars added in v0.6.0

func (s *State) GenerateVarsByEnvVars()

func (*State) GetDimData added in v0.6.0

func (s *State) GetDimData(dimensionKey string, dimensionValue string, skipOnNotFound bool) map[string]interface{}

func (*State) GetObjectFromViperByOrgOrDefault added in v0.6.0

func (s *State) GetObjectFromViperByOrgOrDefault(keyName string) map[string]any

func (*State) GetStringFromViperByOrgOrDefault added in v0.6.0

func (s *State) GetStringFromViperByOrgOrDefault(keyName string) string

func (*State) ParseDimensions added in v0.6.0

func (s *State) ParseDimensions()

func (*State) ParseUnitManifest added in v0.6.0

func (s *State) ParseUnitManifest(unitManifestFileName string)

func (*State) PrepareTemp added in v0.6.0

func (s *State) PrepareTemp()

func (*State) SetupBackendConfig added in v0.6.0

func (s *State) SetupBackendConfig() map[string]interface{}

Jump to

Keyboard shortcuts

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