Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirIsEmpty ¶
func RemoveEverythingUnder ¶
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.
Click to show internal directories.
Click to hide internal directories.