Documentation ¶
Index ¶
- Constants
- func CheckIfError(err error)
- func GetCurrentGoPath() string
- type App
- func (a *App) Activate()
- func (a *App) CheckStatus()
- func (a *App) Deactivate()
- func (a *App) GetProviderData(providerName string) (Provider, error)
- func (a *App) Init()
- func (a *App) Install(providerName string, version string, customBuildCommand string) bool
- func (a *App) IsTerraformPluginDirExistent() bool
- func (a *App) ListProviders()
- func (a *App) SetCustomProviderRepositoryURL(url string)
- func (a *App) SetTerraformRegistryURL(url string)
- func (a *App) UpgradeLockfile(inputLockfilePath string, outputLockfilePath string)
- type BuildCommandInformation
- type Config
- type Lockfile
- type Provider
- type ProviderConfig
- type TerraformVersion
Constants ¶
View Source
const ( DefaultProvidersCacheDir = "/.m1-terraform-provider-helper" DefaultTerraformPluginDir = "/.terraform.d/plugins" DefaultTerraformPluginBackupDir = "/.terraform.d/plugins_backup" DefaultTerraformRegistryURL = "https://registry.terraform.io/v1/providers/" FileModePerm = 0777 DefaultRequestTimeoutInSeconds = 10 )
Variables ¶
This section is empty.
Functions ¶
func CheckIfError ¶
func CheckIfError(err error)
func GetCurrentGoPath ¶
func GetCurrentGoPath() string
Types ¶
type App ¶
func (*App) CheckStatus ¶
func (a *App) CheckStatus()
func (*App) Deactivate ¶
func (a *App) Deactivate()
func (*App) IsTerraformPluginDirExistent ¶
func (*App) ListProviders ¶
func (a *App) ListProviders()
func (*App) SetCustomProviderRepositoryURL ¶
func (*App) SetTerraformRegistryURL ¶
func (*App) UpgradeLockfile ¶
- find lockfile parse the correct location man kann auch per parameter den genauen pfad an den command mitgeben
- parse lockfile
- find the entries that have local providers
- what to do when versions differ?
- calculate hash sum of local providers and replace the has of the entries
- Write HCL file back to original destination.
type BuildCommandInformation ¶
type BuildCommandInformation struct {
// contains filtered or unexported fields
}
type Lockfile ¶
type Lockfile struct {
Provider []ProviderConfig `hcl:"provider,block"`
}
type ProviderConfig ¶
type TerraformVersion ¶
type TerraformVersion struct {
Version string `json:"terraform_version"`
}
Click to show internal directories.
Click to hide internal directories.