validation

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasTFVarFiles added in v0.0.8

func HasTFVarFiles(path string) (bool, error)

HasTFVarFiles checks if the given directory has Terraform variable files. If the directory does not have any Terraform variable files, it returns an error.

func HasTerraformFiles

func HasTerraformFiles(path string, extensions []string) error

HasTerraformFiles checks if the given directory has Terraform files with the given extensions. If the directory does not have any Terraform files with the given extensions, it returns an error.

func IsValidTFDir

func IsValidTFDir(path string) error

IsValidTFDir checks if the given path is a valid Terraform directory. A valid Terraform directory is a directory that exists and is not empty.

func IsValidTFModuleDir added in v0.0.7

func IsValidTFModuleDir(path string) error

IsValidTFModuleDir checks if the given path is a valid Terraform module directory. A valid Terraform module directory is a directory that contains at least one Terraform file with the .tf extension. The path must also be a valid directory.

func IsValidTFVarFile

func IsValidTFVarFile(path string) error

IsValidTFVarFile checks if the given path is a valid Terraform variable file. A valid Terraform variable file is a file with the .tfvars extension that is not empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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