MCPcopy
hub / github.com/opentofu/opentofu / String

Method String

internal/addrs/provider_config.go:452–465  ·  view source on GitHub ↗

String() returns a string representation of an AbsProviderConfig in a format like the following examples: - provider["example.com/namespace/name"] - provider["example.com/namespace/name"].alias - module.module-name.provider["example.com/namespace/name"] - module.module-name.provider["example.com/na

()

Source from the content-addressed store, hash-verified

450// - module.module-name.provider["example.com/namespace/name"]
451// - module.module-name.provider["example.com/namespace/name"].alias
452func (pc AbsProviderConfig) String() string {
453 var parts []string
454 if len(pc.Module) > 0 {
455 parts = append(parts, pc.Module.String())
456 }
457
458 parts = append(parts, fmt.Sprintf("provider[%q]", pc.Provider))
459
460 if pc.Alias != "" {
461 parts = append(parts, pc.Alias)
462 }
463
464 return strings.Join(parts, ".")
465}
466
467func (pc AbsProviderConfig) InstanceString(key InstanceKey) string {
468 if key == NoKey {

Callers 8

InstanceStringMethod · 0.95
InputMethod · 0.95
TransformMethod · 0.95
TransformMethod · 0.95
transformSingleMethod · 0.95
addProxyProvidersMethod · 0.95

Calls 1

StringMethod · 0.65