helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTerraformToken

func FindTerraformToken(hostUrl string) (string, error)

Types

type TerraformBackendBlock

type TerraformBackendBlock struct {
	Type         string      `hcl:"type,label"`
	Organization string      `hcl:"organization,attr"`
	Workspaces   []Workspace `hcl:"workspaces,block"`
}

type TerraformBlock

type TerraformBlock struct {
	Backend TerraformBackendBlock `hcl:"backend,block"`
}

type TerraformConfig

type TerraformConfig struct {
	Terraform TerraformBlock `hcl:"terraform,block"`
}

func FindBackend

func FindBackend(rootDir string) (*TerraformConfig, error)

type Workspace

type Workspace struct {
	Name string `hcl:"name"`
}

Jump to

Keyboard shortcuts

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