terraform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Resources []*Resource
	Modules   []*Module
	Variables []*Variable
	Locals    []*Local
}

Config represents the Terraform configuration.

func Parse

func Parse(directories, files []string) (*Config, error)

Parse parses Terraform configuration files in specified directories and files.

type Local

type Local struct {
	Attributes map[string]any
}

Local represents a Terraform local value.

type Module

type Module struct {
	Source     string
	Labels     []string
	Attributes map[string]any
}

Module represents a Terraform module.

type Resource

type Resource struct {
	Type       string
	Name       string
	Labels     []string
	Attributes map[string]any
}

Resource represents a Terraform resource.

type Variable

type Variable struct {
	Attributes map[string]any
}

Variable represents a Terraform variable.

Jump to

Keyboard shortcuts

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