utils

package
v0.14.1 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func DirIsEmpty

func DirIsEmpty(path string) (bool, error)

func RemoveEverythingUnder

func RemoveEverythingUnder(path string, skipps ...string) error
RemoveEverythingUnder removes everything under a path.

The top level directory entries whose name matches any "skipps" will be skipped.

Types

type TerraformBlockDetail added in v0.12.0

type TerraformBlockDetail struct {
	BackendType string
}

func InspecTerraformBlock added in v0.12.0

func InspecTerraformBlock(dir string) (*TerraformBlockDetail, error)

InspecTerraformBlock inspects the terraform block by interating the top level .tf files. This function assumes the dir is a valid terraform workspace, which means there is at most one terraform block defined.

Jump to

Keyboard shortcuts

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