terraform

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListTfModules

func ListTfModules(path string) (map[string]bool, error)

func LoadTfModule

func LoadTfModule(path string) ([]byte, error)

Types

type DisplayType

type DisplayType string
const (
	All       DisplayType = "all"
	Variables DisplayType = "variables"
	Locals    DisplayType = "locals"
)

type ModuleUsage

type ModuleUsage struct {
	Path      string
	Variables map[string]int
	Locals    map[string]int
	// contains filtered or unexported fields
}

func NewModuleUsage

func NewModuleUsage(path string) (*ModuleUsage, error)

func (ModuleUsage) Display

func (m ModuleUsage) Display(dType DisplayType, unusedOnly bool) error

func (ModuleUsage) DisplayLocals

func (m ModuleUsage) DisplayLocals(unusedOnly bool) error

func (ModuleUsage) DisplayVariables

func (m ModuleUsage) DisplayVariables(unusedOnly bool) error

Jump to

Keyboard shortcuts

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