Documentation ¶
Index ¶
Constants ¶
const VersionV1Beta1 = "v1beta1"
VersionV1Beta1 is used to signify that the resource has been tested and external name configured
Variables ¶
var ExternalNameConfigs = map[string]config.ExternalName{ "google_compute_subnetwork": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/regions/{{ .parameters.region }}/subnetworks/{{ .external_name }}"), "google_compute_region_target_tcp_proxy": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/regions/{{ .parameters.region }}/targetTcpProxies/{{ .external_name }}"), "google_compute_forwarding_rule": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/regions/{{ .parameters.region }}/forwardingRules/{{ .external_name }}"), }
ExternalNameConfigs contains all external name configurations for this provider.
Functions ¶
func ExternalNameConfigurations ¶
func ExternalNameConfigurations() config.ResourceOption
ExternalNameConfigurations applies all external name configs listed in the table ExternalNameConfigs and sets the version of those resources to v1beta1 assuming they will be tested.
func ExternalNameConfigured ¶
func ExternalNameConfigured() []string
ExternalNameConfigured returns the list of all resources whose external name is configured manually.
Types ¶
type GroupKindCalculator ¶
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.