tfconf

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 17 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) ParseServiceResource added in v0.4.0

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

func (*TFConf) RewriteResources

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

Jump to

Keyboard shortcuts

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