terraform

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTfVars

func AddTfVars(source string, context string, env string) string

AddTfVars - Add tfvars values

func AddTypeString added in v0.2.2

func AddTypeString(input []byte, spaceCount int, parentValue string, addString string) string

func CheckElementByType

func CheckElementByType(m map[string]interface{})

func CheckElementByTypeStep3

func CheckElementByTypeStep3(m map[string]interface{}, keys Keys, element []interface{})

func CheckIfHasChild

func CheckIfHasChild(element interface{}) interface{}

CheckIfHasChild - check if it has real child

func CheckIfItIs added in v0.2.2

func CheckIfItIs(itIs bool, line string, spaceCount int, valueSearch string) bool

func Contains

func Contains(arr []Element, str string) bool

func CreateNewYml added in v0.2.2

func CreateNewYml(input []byte, spaceCount int, valueSearch string, parent ...string) string

func DeleteEmptyFolder added in v0.2.2

func DeleteEmptyFolder(url string) bool

func DeleteFileIfItIsNeed added in v0.2.2

func DeleteFileIfItIsNeed(source string, workspace string, destination string, fileName string)

func DeleteFolder

func DeleteFolder(url string) bool

func DownloadFromGit

func DownloadFromGit(url string) bool

func FixVariablesInFolder added in v0.2.2

func FixVariablesInFolder(source string)

func ForCodeClimate

func ForCodeClimate(param ElementProcessCC) (int, int, int, int, bool)

ForCodeClimate - Special pentru CodeClimate :)

func ForCodeClimate0

func ForCodeClimate0(con1 bool, element byte, index int, newValue string) (int, string)

ForCodeClimate0 - special pentru CodeClimate :)

func GenerateParameters

func GenerateParameters(param GenerateParam) (string, string, string, string)

GenerateParameters - Parsing recursive json

func GenerateYml

func GenerateYml(param GenerateYmlParam) bool

GenerateYml - Generation yml file

func Generation

func Generation(provider string, source string, destination string)

Generation - Generation templates from go files

func IsDirEmpty added in v0.2.2

func IsDirEmpty(name string) bool

func Normalize added in v0.2.2

func Normalize(source string, destination string, env string)

func NormalizeFolder added in v0.2.2

func NormalizeFolder(source string, destination string, env string)

func NormalizeJson

func NormalizeJson(jsonLoad []byte) []byte

func ParsingDefaultValue

func ParsingDefaultValue(defaultValue string, haveChild bool, valueHave string, valueDoNotHave string) string

ParsingDefaultValue - parsing default value

func ParsingElementByType

func ParsingElementByType(param ElementParam) string

ParsingElementByType - Parsing element by type

func ParsingFile

func ParsingFile(root string, fileName string, provider string) (bool, string, bool)

ParsingFile - Parsing resource file

func ParsingFileProcessing

func ParsingFileProcessing(match string, existID bool) (bool, string, bool)

ParsingFileProcessing - Parsing resource file

func ParsingFolderComponents added in v0.2.2

func ParsingFolderComponents(source string)

func ParsingFolderTfFile

func ParsingFolderTfFile(source string, destination string, envs ...string)

ParsingFolderTfFile - parsing all tf file from directory

func ParsingOptionalElement

func ParsingOptionalElement(param ElementParam) string

ParsingOptionalElement - Parsing optional element

func ParsingRequestElement

func ParsingRequestElement(param ElementParam) (string, string)

ParsingRequestElement - Parsing request element

func ParsingTfFile

func ParsingTfFile(source string, destination string, envs ...string)

ParsingTfFile - parsing all tf file from directory

func PrepareNewYmlFromOld

func PrepareNewYmlFromOld(source string, context string, env string, configFileName string) string

PrepareNewYmlFromOld - Prepare new yml from old

func ProcessingEnv added in v0.2.2

func ProcessingEnv(source string, context string, env string, configFileName string) string

func RefactoringYml

func RefactoringYml(source string, newYml string, env string, configFileName string) string

func ReplaceCostumeVars added in v0.2.2

func ReplaceCostumeVars(input string, fileName string) string

func ResolveJSON

func ResolveJSON(in string) string

ResolveJSON - Resolve parity of acolytes

func ResolveJSONElem

func ResolveJSONElem(in string, element string) string

ResolveJSONElem - Remove elements

func ResolveJSONElemChange

func ResolveJSONElemChange(in string, element string) string

ResolveJSONElemChange - Resolve all elements `Elem`

func ResolveJSONElemChangeProcessing

func ResolveJSONElemChangeProcessing(in string, element string, startIndex int) (int, string)

ResolveJSONElemChangeProcessing - Resolve all elements `Elem`

func ResolveJSONElemChangeProcessingInter

func ResolveJSONElemChangeProcessingInter(param ElementProcess) (int, int, int, string, bool)

ResolveJSONElemChangeProcessingInter - Resolve all elements `Elem`

func ResolveJSONElemP

func ResolveJSONElemP(in string) string

ResolveJSONElemP - Resolve parity of acolytes

func ResolveJSONElemPProcessing

func ResolveJSONElemPProcessing(in string, startIndex int) (int, string)

ResolveJSONElemPProcessing - Resolve parity of acolytes

func ResolveJSONElemProcessing

func ResolveJSONElemProcessing(in string, element string, startIndex int) int

ResolveJSONElemProcessing - Remove elements

func ResolveJSONProcessing

func ResolveJSONProcessing(element rune, i int, outFinal string) (int, string)

ResolveJSONProcessing - Resolve parity of acolytes

func ResolveRepeatedElements

func ResolveRepeatedElements(in string, element string, replaceElement string) string

ResolveRepeatedElements - Replasing all elements in the circle

func ReturnDefaultValueByType

func ReturnDefaultValueByType(param ElementParam) string

ReturnDefaultValueByType - Return default value by type

func ReturnElement

func ReturnElement(arr []Element, str string) int

func ScanRec

func ScanRec(interYml string) string

func SerVarHaveParentList

func SerVarHaveParentList(elementType string, haveParentList int) int

func SetSpaces

func SetSpaces(isRequest bool) string

func SpaceCount

func SpaceCount(line string) int

func StartProccesingFile

func StartProccesingFile(source string, destination string, fileName string, provider string)

StartProccesingFile - Start proccesing

func StartProccesingTfFile

func StartProccesingTfFile(filePath string) string

StartProccesingTfFile - Start proccesing

func ValidateSpace added in v0.2.2

func ValidateSpace(lines []string, addString string, i int, spaceCount int) string

Types

type Element

type Element struct {
	GK       string
	SK       int
	EK       string
	Elements []interface{}
}

type ElementParam

type ElementParam struct {
	// contains filtered or unexported fields
}

type ElementProcess

type ElementProcess struct {
	// contains filtered or unexported fields
}

type ElementProcessCC

type ElementProcessCC struct {
	// contains filtered or unexported fields
}

type GenerateParam

type GenerateParam struct {
	// contains filtered or unexported fields
}

type GenerateYmlParam

type GenerateYmlParam struct {
	// contains filtered or unexported fields
}

type Keys

type Keys struct {
	GK string
	SK int
	EK string
}

Jump to

Keyboard shortcuts

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