Documentation
¶
Index ¶
- Constants
- func GetGitURL(templatePath string) (*url.URL, error)
- func GetPrivateGitRepoSecretStoreID(envConfig recipes.Configuration, templatePath string) (string, error)
- func NewTerraformDriver(ucpConn sdk.Connection, secretProvider *secretprovider.SecretProvider, ...) driver.Driver
- type TerraformOptions
Constants ¶
View Source
const ( TerraformAzureProvider = "registry.terraform.io/hashicorp/azurerm" TerraformAWSProvider = "registry.terraform.io/hashicorp/aws" TerraformKubernetesProvider = "registry.terraform.io/hashicorp/kubernetes" PrivateRegistrySecretKey_Pat = "pat" PrivateRegistrySecretKey_Username = "username" )
Variables ¶
This section is empty.
Functions ¶
func GetGitURL ¶
GetGitURL returns git url from generic git module source. git::https://exmaple.com/project/module -> https://exmaple.com/project/module
func GetPrivateGitRepoSecretStoreID ¶
func GetPrivateGitRepoSecretStoreID(envConfig recipes.Configuration, templatePath string) (string, error)
GetPrivateGitRepoSecretStoreID returns secretstore resource ID associated with git private terraform repository source.
func NewTerraformDriver ¶
func NewTerraformDriver(ucpConn sdk.Connection, secretProvider *secretprovider.SecretProvider, options TerraformOptions, kubernetesClients kubernetesclientprovider.KubernetesClientProvider) driver.Driver
NewTerraformDriver creates a new instance of driver to execute a Terraform recipe.
Types ¶
type TerraformOptions ¶
type TerraformOptions struct { // Path is the path to the directory mounted to the container where terraform can be installed and executed. Path string }
Options represents the options required for execution of Terraform driver.
Click to show internal directories.
Click to hide internal directories.