NewDefaultProvider returns the default address of a HashiCorp-maintained, Registry-hosted provider.
(name string)
| 96 | // NewDefaultProvider returns the default address of a HashiCorp-maintained, |
| 97 | // Registry-hosted provider. |
| 98 | func NewDefaultProvider(name string) Provider { |
| 99 | return regaddr.Provider{ |
| 100 | Type: MustParseProviderPart(name), |
| 101 | Namespace: "hashicorp", |
| 102 | Hostname: DefaultProviderRegistryHost, |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | // NewBuiltInProvider returns the address of a "built-in" provider. See |
| 107 | // the docs for Provider.IsBuiltIn for more information. |