utils

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionName

func ActionName(input string) string

func AttributeValue

func AttributeValue(attribute *hclwrite.Attribute) string

func Copy

func Copy(srcDir, dstDir string) error

func CopyWithOptions

func CopyWithOptions(srcDir, dstDir, prefixForDstFile string) error

func Exists

func Exists(filepath string) bool

func IsAction

func IsAction(input string) bool

func IsResourceId

func IsResourceId(input string) bool

func LastSegment

func LastSegment(input string) string

func ListFiles

func ListFiles(input string, extension string, depth int) ([]string, error)

func ParentIdOfResourceId

func ParentIdOfResourceId(input string) string

func ResourceIdOfAction

func ResourceIdOfAction(input string) string

func ResourceTypeOfResourceId

func ResourceTypeOfResourceId(input string) string

func ScopeOfListAction

func ScopeOfListAction(input string) string

func TypeValue

func TypeValue(block *hclwrite.Block) string

func UpdatedBody

func UpdatedBody(body interface{}, replacements map[string]string, path string) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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