Documentation
¶
Index ¶
Constants ¶
const DefaultProviderRegistryHost = "registry.terraform.io"
DefaultProviderRegistryHost is the hostname used for provider addresses that do not have an explicit hostname.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// Source address of the provider.
Source string `yaml:"source" json:"source"`
// Version constraint of the provider.
Version string `yaml:"version" json:"version"`
// Configuration arguments of the provider.
ProviderConfigs map[string]any `yaml:"providerConfigs" json:"providerConfigs"`
}
Provider contains all the information of a specified Kusion provider, which not only includes the source address, version constraint of required provider, but also various configuration arguments used to configure required provider before Terraform can use them.
func NewProvider ¶
NewProvider constructs a provider instance from given source, version and configuration arguments.
type TFProvider ¶
TFProvider encapsulates a single terraform provider type.
func (TFProvider) IDString ¶
func (tp TFProvider) IDString() string
IDString returns the ProviderNamespace:ProviderName string, intended for use in a kusion resource ID.
func (TFProvider) String ¶
func (tp TFProvider) String() string
String returns an FQN string, intended for use in machine-readable output.