tfconf

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAttrNotFound = errors.New("attribute not found")
)

Functions

func BuildTFVars

func BuildTFVars(attrs []SensitiveAttr) []byte

func BuildVariableDefinitions

func BuildVariableDefinitions(attrs []SensitiveAttr) []byte

Types

type SensitiveAttr

type SensitiveAttr struct {
	BlockType string
	Key       string
	Value     string
}

type TFConf

type TFConf struct {
	*hclwrite.File
}

func Load

func Load(rawHCL string) (*TFConf, error)

func (*TFConf) ParseVCLServiceResource

func (tfconf *TFConf) ParseVCLServiceResource(serviceProp *prop.VCLServiceResource, c cli.Config) ([]prop.TFBlock, error)

func (*TFConf) RewriteResources

func (tfconf *TFConf) RewriteResources(serviceProp *prop.VCLServiceResource, c cli.Config) ([]SensitiveAttr, error)

Jump to

Keyboard shortcuts

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