pkg

package
v0.0.0-...-0dc96f4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxFile

func BoxFile(file *hclwrite.File, option Options)

func ProcessDirectory

func ProcessDirectory(options Options) error

Types

type Box

type Box struct {
	Left  hclwrite.Tokens
	Right hclwrite.Tokens
}

func BuildBoxFromTemplate

func BuildBoxFromTemplate(template string) (Box, hcl.Diagnostics)

type Options

type Options struct {
	Path                string
	ToggleName          string
	BoxTemplate         string
	TagsPrefix          string
	IgnoreResourceTypes sets.Set
}

func NewOptions

func NewOptions(path, toggleName, boxTemplate, tagsPrefix string, ignoreResourceTypes []string) Options

func (Options) RenderBoxTemplate

func (o Options) RenderBoxTemplate() (string, error)

Jump to

Keyboard shortcuts

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