Documentation ¶
Index ¶
- func CheckForSpecificErrors(err TerraformError) (description string)
- func FindTfProviders(dir string, main *workspace.Workspace) map[string]*version.Version
- func InstallTf() (execPath string, isTempVersion bool, tv string)
- func IsTerraformInstalled() bool
- func NewTerraformExecutor(dir string, execPath string) *tfexec.Terraform
- func RemoveTempTerraformExecutor(execPath string) error
- func TerraformErrorPrettyPrint(err error)
- func TerraformInit(dir string) (execPath string, isTempVersion bool, terraformToolVersion string, err error)
- type TerraformError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForSpecificErrors ¶
func CheckForSpecificErrors(err TerraformError) (description string)
CheckForSpecificErrors
@brief:
CheckForSpecificErrors prints Terrap oriented error messages for pre-known errors
@params:
description - string - the new description message
func FindTfProviders ¶
FindTfProviders
@brief: FindTfProviders
finds the Terraform providers in the given folder
@params:
dir - the folder to find the Terraform providers in
@returns:
the Terraform providers in the given folder
func IsTerraformInstalled ¶
func IsTerraformInstalled() bool
func NewTerraformExecutor ¶
NewTerraformExecutor
@brief: NewTerraformExecutor creates a new terraform executor
@params: dir - the directory to run terraform in
execPath - the path to the Terraform executable
@returns:
*tfexec.Terraform - the terraform executor
func RemoveTempTerraformExecutor ¶
RemoveTempTerraformExecutor
@brief:
RemoveTempTerraformExecutor deletes the Terraform executor received
@params:
execPath - string - the path to remove
@returns:
error - if exists, else nil
func TerraformErrorPrettyPrint ¶
func TerraformErrorPrettyPrint(err error)
TerraformErrorPrettyPrint
@brief:
TerraformErrorPrettyPrint prints the terraform error given
@params:
err - error - the error to parse
Types ¶
type TerraformError ¶
type TerraformError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.