Help us shape the future of Go! Take the 2026 Go Developer Survey

tfparser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 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 Credential

type Credential struct {
	Hostname string `hcl:"name,label"`
	Token    string `hcl:"token"`
}

Credential represents a Terraform Cloud credential.

func ParseTerraformrc

func ParseTerraformrc(path string) (*Credential, error)

ParseTerraformrc parses terraformrc file and returns a Terraform Cloud credential.

type RemoteBackend

type RemoteBackend struct {
	Token           string
	Hostname        string
	Organization    string
	WorkspaceName   string
	WorkspacePrefix string
	RequiredVersion version.Constraints
}

RemoteBackend represents a Terraform remote backend config.

func ParseRemoteBackend

func ParseRemoteBackend(root string) (*RemoteBackend, error)

ParseRemoteBackend parses remote backend config in the specified directory and returns values.

Jump to

Keyboard shortcuts

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