varparser

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package varparser contains the logic for parsing Terraform and environment variables that Tharsis API supports. It supports parsing variables passed in via flags and from files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessVariablesInput

type ProcessVariablesInput struct {
	TfVarFilePath  string
	EnvVarFilePath string
	TfVariables    []string
	EnvVariables   []string
}

ProcessVariablesInput defines the input for ProcessVariables.

type Variable added in v0.5.1

type Variable struct {
	Value    string
	Key      string
	Category sdktypes.VariableCategory
	HCL      bool
}

Variable represents a parsed terraform or environment variable

func ProcessVariables

func ProcessVariables(input ProcessVariablesInput) ([]Variable, error)

ProcessVariables dispatches the functions to process variables files or variable string and returns the result.

Jump to

Keyboard shortcuts

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