Documentation ¶
Overview ¶
Package config contains the configuration for FlexibleEngine external name resources.
Copyright 2022 Upbound Inc.
Index ¶
- Variables
- func ExternalNameConfigurations() config.ResourceOption
- func ExternalNameConfigured() []string
- func ExternalNameConfiguredAndIgnored() (implemented []string, ignored []string)
- func FormattedIdentifierFromProvider(separator string, keys ...string) config.ExternalName
- func GetProvider() *ujconfig.Provider
- func GroupKindOverrides() config.ResourceOption
- func KindOverrides() config.ResourceOption
- func KindRemoveVersion() config.ResourceOption
- func KnownReferencers() config.ResourceOption
- func TemplatedStringAsIdentifierWithNoName(tmpl string) config.ExternalName
- type GroupKindCalculator
Constants ¶
This section is empty.
Variables ¶
var ExternalNameConfigs = map[string]config.ExternalName{}/* 166 elements not displayed */
ExternalNameConfigs contains all external name configurations for this provider.
var ExternalNameNotTestedConfigs = map[string]config.ExternalName{ "flexibleengine_cce_pvc": TemplatedStringAsIdentifierWithNoName("{{ .parameters.cluster_id }}/{{ .parameters.namespace }}/{{ .external_name }}"), "flexibleengine_fgs_dependency": config.IdentifierFromProvider, }
ExternalNameNotTestedConfigs contains no-tested configurations for this provider.
var GroupMap = map[string]GroupKindCalculator{ "flexibleengine_identity_acl": ReplaceGroupWords("iam", 1), "flexibleengine_identity_agency_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_group_membership_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_group_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_project_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_provider": ReplaceGroupWords("iam", 1), "flexibleengine_identity_provider_conversion": ReplaceGroupWords("iam", 1), "flexibleengine_identity_role_assignment_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_role_v3": ReplaceGroupWords("iam", 1), "flexibleengine_identity_user_v3": ReplaceGroupWords("iam", 1), "flexibleengine_images_image_v2": ReplaceGroupWords("ims", 1), "flexibleengine_compute_floatingip_associate_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_compute_instance_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_compute_interface_attach_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_compute_keypair_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_compute_servergroup_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_compute_volume_attach_v2": ReplaceGroupWords("evs", 0), "flexibleengine_compute_floatingip_v2": ReplaceGroupWords("ecs", 1), "flexibleengine_vpc_v1": ReplaceGroupWords("vpc", 0), "flexibleengine_vpc_subnet_v1": ReplaceGroupWords("vpc", 0), "flexibleengine_networking_port_v2": ReplaceGroupWords("vpc", 1), "flexibleengine_networking_secgroup_rule_v2": ReplaceGroupWords("vpc", 1), "flexibleengine_networking_secgroup_v2": ReplaceGroupWords("vpc", 1), "flexibleengine_networking_vip_associate_v2": ReplaceGroupWords("vpc", 1), "flexibleengine_networking_vip_v2": ReplaceGroupWords("vpc", 1), "flexibleengine_vpc_flow_log_v1": ReplaceGroupWords("lts", 0), "flexibleengine_vpc_eip": ReplaceGroupWords("eip", 1), "flexibleengine_vpc_eip_associate": ReplaceGroupWords("eip", 1), "flexibleengine_elb_certificate": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_elb_ipgroup": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_listener_v3": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_loadbalancer_v3": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_member_v3": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_monitor_v3": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_pool_v3": ReplaceGroupWords("dedicatedelb", 1), "flexibleengine_lb_l7policy_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_l7rule_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_listener_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_loadbalancer_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_member_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_monitor_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_pool_v2": ReplaceGroupWords("elb", 1), "flexibleengine_lb_whitelist_v2": ReplaceGroupWords("elb", 1), "flexibleengine_obs_bucket": ReplaceGroupWords("oss", 0), "flexibleengine_obs_bucket_object": ReplaceGroupWords("oss", 0), "flexibleengine_obs_bucket_replication": ReplaceGroupWords("oss", 0), "flexibleengine_s3_bucket": ReplaceGroupWords("oss", 0), "flexibleengine_s3_bucket_object": ReplaceGroupWords("oss", 0), "flexibleengine_s3_bucket_policy": ReplaceGroupWords("oss", 0), "flexibleengine_blockstorage_volume_v2": ReplaceGroupWords("evs", 0), "flexibleengine_compute_bms_server_v2": ReplaceGroupWords("bms", 2), "flexibleengine_api_gateway_api": ReplaceGroupWords("ag", 2), "flexibleengine_api_gateway_group": ReplaceGroupWords("ag", 2), "flexibleengine_apig_api": ReplaceGroupWords("agd", 1), "flexibleengine_apig_throttling_policy_associate": ReplaceGroupWords("agd", 1), "flexibleengine_apig_environment": ReplaceGroupWords("agd", 1), "flexibleengine_apig_vpc_channel": ReplaceGroupWords("agd", 1), "flexibleengine_apig_application": ReplaceGroupWords("agd", 1), "flexibleengine_apig_response": ReplaceGroupWords("agd", 1), "flexibleengine_apig_throttling_policy": ReplaceGroupWords("agd", 1), "flexibleengine_apig_instance": ReplaceGroupWords("agd", 1), "flexibleengine_apig_group": ReplaceGroupWords("agd", 1), "flexibleengine_apig_custom_authorizer": ReplaceGroupWords("agd", 1), "flexibleengine_apig_api_publishment": ReplaceGroupWords("agd", 1), "flexibleengine_enterprise_project": ReplaceGroupWords("eps", 1), "flexibleengine_network_acl": ReplaceGroupWords("netacl", 1), "flexibleengine_network_acl_rule": ReplaceGroupWords("netacl", 1), "flexibleengine_antiddos_v1": ReplaceGroupWords("antiddos", 0), }
GroupMap contains all overrides we'd like to make to the default group search. ! Warning do not consider _v[0-9] ? Examples ? "flexibleengine_vpc_subnet_v1": ReplaceGroupWords("vpc", 0), => Output: Group: vpc, Kind: Subnet ? "flexibleengine_networking_subnet_v2": ReplaceGroupWords("vpc", 0), => Output: Group: vpc, Kind: NetWorkingSubnet
var KindMap = map[string]string{
"flexibleengine_compute_keypair_v2": "KeyPair",
"flexibleengine_compute_servergroup_v2": "ServerGroup",
"flexibleengine_compute_floatingip_v2": "FloatingIp",
"flexibleengine_compute_floatingip_associate_v2": "FloatingIpAssociate",
"flexibleengine_networking_secgroup_v2": "SecurityGroup",
"flexibleengine_networking_secgroup_rule_v2": "SecurityGroupRule",
"flexibleengine_networking_vip_associate_v2": "VIPAssociate",
"flexibleengine_networking_vip_v2": "VIP",
"flexibleengine_lb_loadbalancer_v3": "LoadBalancer",
"flexibleengine_elb_ipgroup": "IPGroup",
"flexibleengine_lb_loadbalancer_v2": "LoadBalancer",
"flexibleengine_lb_l7policy_v2": "L7Policy",
"flexibleengine_lb_l7rule_v2": "L7Rule",
"flexibleengine_obs_bucket": "OBSBucket",
"flexibleengine_obs_bucket_object": "OBSBucketObject",
"flexibleengine_obs_bucket_replication": "OBSBucketReplication",
"flexibleengine_waf_rule_blacklist": "RuleBlacklist",
"flexibleengine_blockstorage_volume_v2": "BlockStorageVolume",
"flexibleengine_rds_parametergroup_v3": "ParameterGroup",
"flexibleengine_sdrs_protectiongroup_v1": "ProtectionGroup",
"flexibleengine_sdrs_protectedinstance_v1": "ProtectedInstance",
"flexibleengine_ces_alarmrule": "AlarmRule",
"flexibleengine_dli_package": "DLIPackage",
"flexibleengine_antiddos_v1": "AntiDDoS",
"flexibleengine_vpcep_service": "VPCEPService",
"flexibleengine_cce_namespace": "CCENameSpace",
"flexibleengine_dms_rocketmq_instance": "RocketMQInstance",
"flexibleengine_dms_rocketmq_user": "RocketMQUser",
"flexibleengine_dms_rocketmq_topic": "RocketMQTopic",
"flexibleengine_dms_rocketmq_consumer_group": "RocketMQConsumerGroup",
}
KindMap contains kind string overrides. ! Warning do not consider _v[0-9] ? Examples ? keypair is renamed to KeyPair instead of Keypair ? servergroup is renamed to ServerGroup instead of Servergroup
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.
func ExternalNameConfiguredAndIgnored ¶
ExternalNameConfiguredAndIgnored returns the list of all resources whose external name is configured manually and ignored.
func FormattedIdentifierFromProvider ¶
func FormattedIdentifierFromProvider(separator string, keys ...string) config.ExternalName
FormattedIdentifierFromProvider is a helper function to construct Terraform IDs that use elements from the parameters in a certain string format. It should be used in cases where all information in the ID is gathered from the spec and not user defined like name. For example, zone_id:vpc_id.
func GroupKindOverrides ¶
func GroupKindOverrides() config.ResourceOption
GroupKindOverrides overrides the group and kind of the resource if it matches any entry in the GroupMap.
func KindOverrides ¶
func KindOverrides() config.ResourceOption
KindOverrides overrides the kind of the resources given in KindMap.
func KindRemoveVersion ¶
func KindRemoveVersion() config.ResourceOption
KindRemoveVersion remove the version from the kind of the resource.
func KnownReferencers ¶
func KnownReferencers() config.ResourceOption
KnownReferencers adds referencers for fields that are known and common among more than a few resources.
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 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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package ag contains FlexibleEngine API Gateway (AG) resources.
|
Package ag contains FlexibleEngine API Gateway (AG) resources. |
Package agd contains the configuration for the FlexibleEngine provider.
|
Package agd contains the configuration for the FlexibleEngine provider. |
Package antiddos provides a flexibleengine_antiddos_v1 ResourceConfigurator.
|
Package antiddos provides a flexibleengine_antiddos_v1 ResourceConfigurator. |
Package as contains FlexibleEngine AutoScaling resources.
|
Package as contains FlexibleEngine AutoScaling resources. |
Package bms contains the configuration for the FlexibleEngine BMS service.
|
Package bms contains the configuration for the FlexibleEngine BMS service. |
Package csbs contains FlexibleEngine Cloud Server Backup Service (CSBS) resources.
|
Package csbs contains FlexibleEngine Cloud Server Backup Service (CSBS) resources. |
Package cce contains custom resource configurators for FlexibleEngine CCE resources.
|
Package cce contains custom resource configurators for FlexibleEngine CCE resources. |
Package ces provides a set of custom ResourceConfigurators for the CES
|
Package ces provides a set of custom ResourceConfigurators for the CES |
Package common contains common resource configurators.
|
Package common contains common resource configurators. |
Package csbs provides a Configurator for the Crossplane Service Broker Service (CSBS).
|
Package csbs provides a Configurator for the Crossplane Service Broker Service (CSBS). |
Package css contains custom resource configurators for FlexibleEngine CSS resources.
|
Package css contains custom resource configurators for FlexibleEngine CSS resources. |
Package dcs provides a set of custom ResourceConfigurators for the DCS
|
Package dcs provides a set of custom ResourceConfigurators for the DCS |
Package dds contains custom ResourceConfigurators for FlexibleEngine DDS resources.
|
Package dds contains custom ResourceConfigurators for FlexibleEngine DDS resources. |
Package dedicatedelb contains FlexibleEngine Dedicated ELB resources.
|
Package dedicatedelb contains FlexibleEngine Dedicated ELB resources. |
Package dis contains FlexibleEngine Data Integration Service (DIS) resources.
|
Package dis contains FlexibleEngine Data Integration Service (DIS) resources. |
Package dli contains custom ResourceConfigurators for FlexibleEngine DLI resources.
|
Package dli contains custom ResourceConfigurators for FlexibleEngine DLI resources. |
Package dms contains custom ResourceConfigurators for the dms package.
|
Package dms contains custom ResourceConfigurators for the dms package. |
Package dns contains custom ResourceConfigurators for the dns package.
|
Package dns contains custom ResourceConfigurators for the dns package. |
Package drs contains custom ResourceConfigurators for the drs package.
|
Package drs contains custom ResourceConfigurators for the drs package. |
Package dws contains custom resource configurators for DWS resources.
|
Package dws contains custom resource configurators for DWS resources. |
Package ecs contains FlexibleEngine ECS (Elastic Cloud Server) configuration.
|
Package ecs contains FlexibleEngine ECS (Elastic Cloud Server) configuration. |
Package eip contains custom ResourceConfigurators for the eip package.
|
Package eip contains custom ResourceConfigurators for the eip package. |
Package elb contains custom ResourceConfigurators for the elb package.
|
Package elb contains custom ResourceConfigurators for the elb package. |
Package eps provides a set of custom ResourceConfigurators for the EPS
|
Package eps provides a set of custom ResourceConfigurators for the EPS |
Package evs contains custom ResourceConfigurators for FlexibleEngine EVS resources.
|
Package evs contains custom ResourceConfigurators for FlexibleEngine EVS resources. |
Package fgs contains FlexibleEngine FunctionGraph Service (FGS) specific configuration.
|
Package fgs contains FlexibleEngine FunctionGraph Service (FGS) specific configuration. |
Package iam provides a set of custom ResourceConfigurators for the IAM
|
Package iam provides a set of custom ResourceConfigurators for the IAM |
Package ims contains the configuration for the IMS service.
|
Package ims contains the configuration for the IMS service. |
Package kms provides a set of custom ResourceConfigurators for the KMS
|
Package kms provides a set of custom ResourceConfigurators for the KMS |
Package lts provides a set of custom ResourceConfigurators for the LTS
|
Package lts provides a set of custom ResourceConfigurators for the LTS |
Package mls provides a set of custom ResourceConfigurators for the MLS
|
Package mls provides a set of custom ResourceConfigurators for the MLS |
Package modelarts provides a set of custom ResourceConfigurators for the ModelArts
|
Package modelarts provides a set of custom ResourceConfigurators for the ModelArts |
Package mrs contains the configuration for FlexibleEngine MRS resources.
|
Package mrs contains the configuration for FlexibleEngine MRS resources. |
Package nat contains custom ResourceConfigurators for the nat package.
|
Package nat contains custom ResourceConfigurators for the nat package. |
Package netacl contains the configuration for the netacl package.
|
Package netacl contains the configuration for the netacl package. |
Package oss provides a set of custom ResourceConfigurators for the OSS
|
Package oss provides a set of custom ResourceConfigurators for the OSS |
Package rds contains custom ResourceConfigurators for FlexibleEngine RDS resources.
|
Package rds contains custom ResourceConfigurators for FlexibleEngine RDS resources. |
Package rts provides a set of custom ResourceConfigurators for the RTS
|
Package rts provides a set of custom ResourceConfigurators for the RTS |
Package sdrs provides a set of custom ResourceConfigurators for the SDRS
|
Package sdrs provides a set of custom ResourceConfigurators for the SDRS |
Package sfs contains custom ResourceConfigurators for the sfs package.
|
Package sfs contains custom ResourceConfigurators for the sfs package. |
Package smn contains FlexibleEngine Simple Message Notification resources.
|
Package smn contains FlexibleEngine Simple Message Notification resources. |
Package sms contains custom ResourceConfigurators for FlexibleEngine SMS resources.
|
Package sms contains custom ResourceConfigurators for FlexibleEngine SMS resources. |
Package swr contains the configuration for the FlexibleEngine SWR service.
|
Package swr contains the configuration for the FlexibleEngine SWR service. |
Package tms provides configuration for FlexibleEngine TMS resources.
|
Package tms provides configuration for FlexibleEngine TMS resources. |
Package vbs contains FlexibleEngine Volume Backup Service (VBS) resources.
|
Package vbs contains FlexibleEngine Volume Backup Service (VBS) resources. |
Package vpc contains the configuration for the FlexibleEngine VPC service.
|
Package vpc contains the configuration for the FlexibleEngine VPC service. |
Package vpcep contains FlexibleEngine Virtual Private Cloud Endpoint (VPCEP) resources.
|
Package vpcep contains FlexibleEngine Virtual Private Cloud Endpoint (VPCEP) resources. |
Package waf contains the configuration for the FlexibleEngine WAF service.
|
Package waf contains the configuration for the FlexibleEngine WAF service. |