hcl

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Name    string `hcl:"name,label"`
	Source  string `hcl:"source"`
	Version string `hcl:"version"`
}

type Provider

type Provider struct {
	Name    string `hcl:"name,label"`
	Version string `hcl:"version"`
}

type RequiredProviders

type RequiredProviders struct {
	Providers map[string]map[string]string `hcl:",remain"`
}

type TFFile

type TFFile struct {
	Terraform Terraform  `hcl:"terraform,block"`
	Provider  []Provider `hcl:"provider,block"`
	Module    []Module   `hcl:"module,block"`
}

TFFile is the structure of the terraform file

func NewHCLFileParser

func NewHCLFileParser(filename string) (*TFFile, error)

type Terraform

type Terraform struct {
	RequiredProviders RequiredProviders `hcl:"required_providers,block"`
}

Jump to

Keyboard shortcuts

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