config

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 62 Imported by: 75

Documentation

Index

Constants

View Source
const VersionV1Beta1 = "v1beta1"

VersionV1Beta1 is used to signify that the resource has been tested and external name configured

Variables

View Source
var ExternalNameNotTestedConfigs = map[string]config.ExternalName{}/* 143 elements not displayed */

ExternalNameNotTestedConfigs contains no-tested configurations for this provider.

View Source
var ProviderConfiguration = Configurator{}

ProviderConfiguration is a global registry to be used by the resource providers to register their Config functions.

Functions

func GetProvider

func GetProvider(_ context.Context, generationProvider bool) (*ujconfig.Provider, error)

GetProvider returns provider configuration

func TemplatedStringAsIdentifierWithNoName

func TemplatedStringAsIdentifierWithNoName(tmpl string) config.ExternalName

TemplatedStringAsIdentifierWithNoName uses TemplatedStringAsIdentifier but without the name initializer. This allows it to be used in cases where the ID is constructed with parameters and a provider-defined value, meaning no user-defined input. Since the external name is not user-defined, the name initializer has to be disabled.

Types

type Configurator added in v1.9.0

type Configurator []Configure

Configurator is a registry for provider Configs.

func (*Configurator) AddConfig added in v1.9.0

func (c *Configurator) AddConfig(conf Configure)

AddConfig adds a Config to the Configurator registry.

type Configure added in v1.9.0

type Configure func(provider *config.Provider)

Configure configures the specified Provider.

type GroupKindCalculator

type GroupKindCalculator func(resource string) (string, string)

GroupKindCalculator returns the correct group and kind name for given TF resource.

func ReplaceGroupWords

func ReplaceGroupWords(group string, count int) GroupKindCalculator

ReplaceGroupWords uses given group as the group of the resource and removes a number of words in resource name before calculating the kind of the resource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL