hcl

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHclResources

func ParseHclResources(path string, usage usagePackage.Usage, tfVarFiles []string) (*schema.ModuleDef, error)

func ParseTerragruntProject added in v1.7.0

func ParseTerragruntProject(path string, usage usagePackage.Usage) (*schema.ModuleDef, error)

Types

type Config added in v1.7.0

type Config struct {
	ProviderConfig map[schema.ProviderName]ProviderConfig `json:"provider_config"`
}

type Module added in v1.7.0

type Module struct {
	Address      string     `json:"address"`
	Resources    []Resource `json:"resources"`
	ChildModules []Module   `json:"child_modules"'`
}

type ParsedProject added in v1.7.0

type ParsedProject struct {
	Directory     string
	Provider      schema.ProviderName
	DefaultRegion string
	RootModule    Module
}

func (ParsedProject) GetModule added in v1.7.0

func (pp ParsedProject) GetModule() schema.ModuleDef

func (ParsedProject) GetResources added in v1.7.0

func (pp ParsedProject) GetResources() []schema.ResourceDef

type Project added in v1.7.0

type Project struct {
	TerraformVersion         string            `json:"terraform_version"`
	FormatVersion            string            `json:"format_version"`
	InfracostResourceChanges interface{}       `json:"infracost_resource_changes"`
	Configuration            Config            `json:"configuration"`
	PlannedValues            map[string]Module `json:"planned_values"`
	PriorState               interface{}       `json:"prior_state"`
}

type ProviderConfig added in v1.7.0

type ProviderConfig struct {
	Name        schema.ProviderName `json:"name"`
	Expressions struct {
		Region struct {
			ConstantValue string `json:"constant_value"`
		} `json:"region"`
	} `json:"expressions"`
}

type Resource

type Resource struct {
	Address string                 `mapstructure:"address"`
	Mode    string                 `mapstructure:"mode"`
	Name    string                 `mapstructure:"name"`
	Type    string                 `mapstructure:"type"`
	Values  map[string]interface{} `mapstructure:"values"`
}

func (Resource) ToResource added in v1.7.0

func (r Resource) ToResource(provider schema.ProviderName, defaultRegion string) schema.ResourceDef

Jump to

Keyboard shortcuts

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