Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

ProviderName

ignore := components.CreateIgnoreProviderName(components.ProviderName{/* values here */})

ignore := components.CreateIgnoreStr(string{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch ignore.Type {
	case components.IgnoreTypeProviderName:
		// ignore.ProviderName is populated
	case components.IgnoreTypeStr:
		// ignore.Str is populated
}