terraform

package
v0.5.31 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Providers      []*Provider    `json:"providers,omitempty"`
	Settings       *Settings      `json:"settings,omitempty"`
	ModulesUsed    []*ModuleUse   `json:"modules_used,omitempty"`
	ResourceCounts map[string]int `json:"resources,omitempty"`
}

func Read

func Read(path string) (*Metadata, error)

type ModuleUse

type ModuleUse struct {
	Source     string `json:"source"`
	Version    string `json:"version,omitempty"`
	UsageCount int    `json:"usage_count"`
}

type Provider

type Provider struct {
	Name  string `json:"name"`
	Alias string `json:"alias,omitempty"`
}

type RequiredProvider

type RequiredProvider struct {
	Alias   string `json:"alias"`
	Version string `json:"version,omitempty"`
	Source  string `json:"source,omitempty"`
}

type Settings

type Settings struct {
	RequiredVersion   string              `json:"required_version,omitempty"`
	RequiredProviders []*RequiredProvider `json:"required_providers,omitempty"`
	Backend           string              `json:"backend,omitempty"`
}

Jump to

Keyboard shortcuts

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