MCPcopy
hub / github.com/opentofu/opentofu / NewDefaultProvider

Function NewDefaultProvider

internal/addrs/provider.go:98–104  ·  view source on GitHub ↗

NewDefaultProvider returns the default address of a HashiCorp-maintained, Registry-hosted provider.

(name string)

Source from the content-addressed store, hash-verified

96// NewDefaultProvider returns the default address of a HashiCorp-maintained,
97// Registry-hosted provider.
98func 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.

Calls 1

MustParseProviderPartFunction · 0.85