Documentation ¶
Index ¶
- Variables
- func AddResource(resources *[]inout.ModuleResource, item inout.ModuleResource)
- func CheckResources(resources []inout.Resource, mapped_resources inout.YamlMapping) []inout.CsvResources
- func CreateVars(rawResources []string, modules []inout.Modules, mapped_imports []inout.Imports) map[string]VarsContents
- func GenerateImports(resources []inout.Resource, modules inout.YamlMapping, ep bool) (string, []inout.Imports, []string)
- func GenerateModuleYaml(resourcesMapping []inout.Resource, modules_map []inout.ModuleResource) []inout.ModuleResource
- func ParseResource(rawResource string, mapped_imports []inout.Imports, resourceName string, ...) map[string]interface{}
- type VarsContents
Constants ¶
This section is empty.
Variables ¶
var Found_resources []inout.UnmappedOutputs
var Not_Found_resources []inout.UnmappedOutputs
Functions ¶
func AddResource ¶
func AddResource(resources *[]inout.ModuleResource, item inout.ModuleResource)
AddResource It adds the respective mapping of a resource to his module (if doesn't already exist)
func CheckResources ¶
func CheckResources(resources []inout.Resource, mapped_resources inout.YamlMapping) []inout.CsvResources
CheckResources Checks if the resources in the resourceGroup have it's mapping on the yaml file and counts them
func CreateVars ¶
func CreateVars(rawResources []string, modules []inout.Modules, mapped_imports []inout.Imports) map[string]VarsContents
CreateVars creates a structured map[resource_name]contents{} to use in tfvars, variables, modules, etc.
func GenerateImports ¶
func GenerateImports(resources []inout.Resource, modules inout.YamlMapping, ep bool) (string, []inout.Imports, []string)
GenerateImports returnes an string It generates the imports blocks for the imports.tf file
func GenerateModuleYaml ¶
func GenerateModuleYaml(resourcesMapping []inout.Resource, modules_map []inout.ModuleResource) []inout.ModuleResource
GenerateModuleYaml returns an []inout.ModuleResource It generates the mapping of the resources with the respective module to generate the yaml file The first one is the json file, and the second argument is the csv
func ParseResource ¶
func ParseResource(rawResource string, mapped_imports []inout.Imports, resourceName string, modules []inout.Modules) map[string]interface{}
ParseResource creates a structured map[string]interface{} Its used to parse the values on the main.tf of aztfexport to generate the terraform.tfvars
Types ¶
type VarsContents ¶
type VarsContents []map[string]interface{}