Documentation
¶
Index ¶
- Constants
- func CreateVariablesFile(contentToCreate VariableContent, directory string)
- func ExtractBlockInformation(inBlocks []string) (blockType string, blockIdentifier string, resourceAddress string)
- func GetHclFile(entryName string) (f *hclwrite.File)
- func GetStringToken(tokens hclwrite.Tokens) (value string)
- func IsGlobalAccountParent(btpClient *btpcli.ClientFacade, parentId string) (isParent bool)
- func ProcessChanges(f *hclwrite.File, path string)
- func ProcessParentAttribute(body *hclwrite.Body, description string, btpClient *btpcli.ClientFacade, ...)
- func RemoveConfigBlock(body *hclwrite.Body, resourceAddress string)
- func RemoveEmptyAttributes(body *hclwrite.Body)
- func RemoveEmptyFiles(dir string) error
- func RemoveImportBlock(body *hclwrite.Body, resourceAddress string, resultStore *map[string]int)
- func RemoveUnusedImports(directory string, blocksToRemove *[]BlockSpecifier, ...)
- func ReplaceAttribute(body *hclwrite.Body, identifier string, description string, ...)
- func ReplaceDependency(tokens hclwrite.Tokens, dependencyAddress string) (replacedTokens hclwrite.Tokens)
- func ReplaceMainDependency(body *hclwrite.Body, mainIdentifier string, mainAddress string)
- func ReplaceStringTokenVar(tokens hclwrite.Tokens, identifier string) (replacedTokens hclwrite.Tokens, valueForVariable string)
- type BlockSpecifier
- type DataSourceInfo
- type DependencyAddresses
- type EntitlementInfo
- type EntitlementKey
- type LevelIds
- type RoleKey
- type VariableContent
- type VariableInfo
Constants ¶
View Source
const EmptyJson = "jsonencode({})"
View Source
const EmptyMap = "{}"
View Source
const EmptyString = "null"
View Source
const ParentIdentifier = "parent_id"
Variables ¶
This section is empty.
Functions ¶
func CreateVariablesFile ¶
func CreateVariablesFile(contentToCreate VariableContent, directory string)
func ExtractBlockInformation ¶
func GetHclFile ¶
func GetStringToken ¶
func IsGlobalAccountParent ¶
func IsGlobalAccountParent(btpClient *btpcli.ClientFacade, parentId string) (isParent bool)
func ProcessChanges ¶
func ProcessParentAttribute ¶
func ProcessParentAttribute(body *hclwrite.Body, description string, btpClient *btpcli.ClientFacade, variables *VariableContent)
func RemoveConfigBlock ¶
func RemoveEmptyAttributes ¶
func RemoveEmptyFiles ¶
func RemoveImportBlock ¶
func RemoveUnusedImports ¶
func RemoveUnusedImports(directory string, blocksToRemove *[]BlockSpecifier, resultStore *map[string]int)
func ReplaceAttribute ¶
func ReplaceAttribute(body *hclwrite.Body, identifier string, description string, variables *VariableContent)
func ReplaceDependency ¶
func ReplaceMainDependency ¶
Types ¶
type BlockSpecifier ¶
type DataSourceInfo ¶
type DependencyAddresses ¶ added in v1.1.0
type DependencyAddresses struct { SubaccountAddress string DirectoryAddress string SpaceAddress map[string]string EntitlementAddress map[EntitlementKey]EntitlementInfo RoleAddress map[RoleKey]string DataSourceInfo []DataSourceInfo BlocksToRemove []BlockSpecifier }
func NewDependencyAddresses ¶
func NewDependencyAddresses() DependencyAddresses
type EntitlementInfo ¶ added in v1.3.0
type EntitlementKey ¶
type VariableContent ¶
type VariableContent map[string]VariableInfo
type VariableInfo ¶
Click to show internal directories.
Click to hide internal directories.