pkg

package
v0.0.0-...-7d78ad0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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