terraform

package
v0.0.0-...-5d7c939 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldNameTfPath   = "terraform_path"
	FieldNameTfBinary = "terraform_binary"

	StorageKeyConfiguration = "terraform_configuration"
)
View Source
const (
	// StorageKeyTerraformState is the key for storing terraform state in storage
	StorageKeyTerraformState = "terraform_state"
)

Variables

This section is empty.

Functions

func ApplyTerraformFromRepo

func ApplyTerraformFromRepo(ctx context.Context, gitRepo *git.Repository, config CLIConfig) error

ApplyTerraformFromRepo extracts terraform files from git repository and applies them using Terraform CLI

func Paths

func Paths(baseBackend *framework.Backend) []*framework.Path

Types

type CLIConfig

type CLIConfig struct {
	VaultAddr      string
	VaultToken     string
	VaultNamespace string
	TfPath         string
	TfBinary       string
	Storage        logical.Storage
	Logger         hclog.Logger
}

CLIConfig contains configuration for terraform CLI execution

type Configuration

type Configuration struct {
	TfPath   string `structs:"terraform_path" json:"terraform_path,omitempty"`
	TfBinary string `structs:"terraform_binary" json:"terraform_binary,omitempty"`
}

func GetConfig

func GetConfig(ctx context.Context, storage logical.Storage) (*Configuration, error)

GetConfig returns the configuration for use in other packages

Jump to

Keyboard shortcuts

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