Documentation ¶
Index ¶
- Constants
- Variables
- func CalcSha1Digest(source string) string
- func ComposeResourceId(elem []string, separator ...string) string
- func ConvPrimtiveInterface2String(p interface{}) string
- func DecomposeResourceId(id string, separator ...string) []string
- func DiffSuppressFunc4OptionalPrimitives(k, old, new string, d *schema.ResourceData, initial string) bool
- func FilterMapList(list []interface{}, filter func(map[string]interface{}) bool) []interface{}
- func FilterStrList(list []string, filter func(string) bool) []string
- func IsBool(v interface{}) bool
- func IsFloat32(v interface{}) bool
- func IsFloat64(v interface{}) bool
- func IsInt32(v interface{}) bool
- func IsInt64(v interface{}) bool
- func IsString(v interface{}) bool
- func JoinStringInterfaceSlice(slice []interface{}, sep string) string
- func ListInterface2ListStrings(array []interface{}) []string
- func Provider() *schema.Provider
- func SortMapListAl(list []interface{}, sortAttrs []string)
- func SortStrListAl(list []interface{})
- func StringInSlice(expected []string, v string, ignoreCase bool) bool
- type ProviderConfOutput
Constants ¶
const APIM_MULE4_TECHNOLOGY = "mule4"
const BG_VIEWER_ROLE = "833ab9ca-0c72-45ba-9764-1df83240db57"
const COMPOSITE_ID_SEPARATOR = "/"
const FLEX_GATEWAY_TECHNOLOGY = "flexGateway"
Variables ¶
var DATASOURCES_MAP = map[string]*schema.Resource{
"anypoint_vpcs": dataSourceVPCs(),
"anypoint_vpc": dataSourceVPC(),
"anypoint_vpn": dataSourceVPN(),
"anypoint_bg": dataSourceBG(),
"anypoint_roles": dataSourceRoles(),
"anypoint_rolegroup": dataSourceRoleGroup(),
"anypoint_rolegroups": dataSourceRoleGroups(),
"anypoint_users": dataSourceUsers(),
"anypoint_user": dataSourceUser(),
"anypoint_env": dataSourceENV(),
"anypoint_user_rolegroup": dataSourceUserRolegroup(),
"anypoint_user_rolegroups": dataSourceUserRolegroups(),
"anypoint_team": dataSourceTeam(),
"anypoint_teams": dataSourceTeams(),
"anypoint_team_roles": dataSourceTeamRoles(),
"anypoint_team_members": dataSourceTeamMembers(),
"anypoint_team_group_mappings": dataSourceTeamGroupMappings(),
"anypoint_dlb": dataSourceDLB(),
"anypoint_dlbs": dataSourceDLBs(),
"anypoint_idp": dataSourceIDP(),
"anypoint_idps": dataSourceIDPs(),
"anypoint_connected_app": dataSourceConnectedApp(),
"anypoint_connected_apps": dataSourceConnectedApps(),
"anypoint_amq": dataSourceAMQ(),
"anypoint_ame": dataSourceAME(),
"anypoint_apim": dataSourceApim(),
"anypoint_apim_instance": dataSourceApimInstance(),
"anypoint_apim_instance_policy": dataSourceApimInstancePolicy(),
"anypoint_apim_instance_policies": dataSourceApimInstancePolicies(),
"anypoint_apim_instance_upstreams": dataSourceApimInstanceUpstreams(),
"anypoint_flexgateway_target": dataSourceFlexGatewayTarget(),
"anypoint_flexgateway_targets": dataSourceFlexGatewayTargets(),
"anypoint_flexgateway_registration_token": dataSourceFlexGatewayRegistrationToken(),
"anypoint_secretgroups": dataSourceSecretGroups(),
"anypoint_secretgroup": dataSourceSecretGroup(),
"anypoint_secretgroup_keystores": dataSourceSecretGroupKeystores(),
"anypoint_secretgroup_keystore": dataSourceSecretGroupKeystore(),
"anypoint_secretgroup_truststores": dataSourceSecretGroupTruststores(),
"anypoint_secretgroup_truststore": dataSourceSecretGroupTruststore(),
"anypoint_secretgroup_certificates": dataSourceSecretGroupCertificates(),
"anypoint_secretgroup_certificate": dataSourceSecretGroupCertificate(),
"anypoint_secretgroup_tlscontexts": dataSourceSecretGroupTlsContexts(),
"anypoint_secretgroup_tlscontext_flexgateway": dataSourceSecretGroupTlsContextFG(),
"anypoint_secretgroup_tlscontext_securityfabric": dataSourceSecretGroupTlsContextSF(),
"anypoint_secretgroup_tlscontext_mule": dataSourceSecretGroupTlsContextMule(),
"anypoint_secretgroup_crldistrib_cfgs_list": dataSourceSecretGroupCrlDistribCfgsList(),
"anypoint_secretgroup_crldistrib_cfgs": dataSourceSecretGroupCrlDistribCfgs(),
"anypoint_exchange_policy_templates": dataSourceExchangePolicyTemplates(),
"anypoint_exchange_policy_template": dataSourceExchangePolicyTemplate(),
}
var EXCHANGE_POLICY_TEMPLATE_ALL_VERSIONS = map[string]*schema.Schema{ "group_id": { Type: schema.TypeString, Computed: true, Description: "The group id.", }, "asset_id": { Type: schema.TypeString, Computed: true, Description: "The asset id.", }, "version": { Type: schema.TypeString, Computed: true, Description: "The version.", }, }
var EXCHANGE_POLICY_TEMPLATE_CONFIG = map[string]*schema.Schema{ "property_name": { Type: schema.TypeString, Computed: true, Description: "The property name.", }, "name": { Type: schema.TypeString, Computed: true, Description: "The property name.", }, "description": { Type: schema.TypeString, Computed: true, Description: "The property description.", }, "type": { Type: schema.TypeString, Computed: true, Description: "The property type.", }, "options": { Type: schema.TypeList, Computed: true, Description: "The property options.", Elem: &schema.Schema{ Type: schema.TypeMap, }, }, "optional": { Type: schema.TypeBool, Computed: true, Description: "Whether the property is optional.", }, "default_value": { Type: schema.TypeString, Computed: true, Description: "The property default value.", }, "sensitive": { Type: schema.TypeBool, Computed: true, Description: "Whether the property is sensitive.", }, "allow_multiple": { Type: schema.TypeBool, Computed: true, Description: "Whether the property allows multiple values.", }, "configuration": { Type: schema.TypeList, Computed: true, Description: "The property configuration.", Elem: &schema.Schema{ Type: schema.TypeMap, }, }, }
var RESOURCES_MAP = map[string]*schema.Resource{
"anypoint_vpc": resourceVPC(),
"anypoint_vpn": resourceVPN(),
"anypoint_bg": resourceBG(),
"anypoint_rolegroup_roles": resourceRoleGroupRoles(),
"anypoint_rolegroup": resourceRoleGroup(),
"anypoint_env": resourceENV(),
"anypoint_user": resourceUser(),
"anypoint_user_rolegroup": resourceUserRolegroup(),
"anypoint_team": resourceTeam(),
"anypoint_team_roles": resourceTeamRoles(),
"anypoint_team_member": resourceTeamMember(),
"anypoint_team_group_mappings": resourceTeamGroupMappings(),
"anypoint_dlb": resourceDLB(),
"anypoint_idp_oidc": resourceOIDC(),
"anypoint_idp_saml": resourceSAML(),
"anypoint_connected_app": resourceConnectedApp(),
"anypoint_amq": resourceAMQ(),
"anypoint_ame": resourceAME(),
"anypoint_ame_binding": resourceAMEBinding(),
"anypoint_apim_flexgateway": resourceApimFlexGateway(),
"anypoint_apim_mule4": resourceApimMule4(),
"anypoint_apim_policy_client_id_enforcement": resourceApimInstancePolicyClientIdEnf(),
"anypoint_apim_policy_jwt_validation": resourceApimInstancePolicyJwtValidation(),
"anypoint_apim_policy_rate_limiting": resourceApimInstancePolicyRateLimiting(),
"anypoint_apim_policy_basic_auth": resourceApimInstancePolicyBasicAuth(),
"anypoint_apim_policy_message_logging": resourceApimInstancePolicyMessageLogging(),
"anypoint_apim_policy_custom": resourceApimInstancePolicyCustom(),
"anypoint_secretgroup": resourceSecretGroup(),
"anypoint_secretgroup_keystore": resourceSecretGroupKeystore(),
"anypoint_secretgroup_truststore": resourceSecretGroupTruststore(),
"anypoint_secretgroup_certificate": resourceSecretGroupCertificate(),
"anypoint_secretgroup_tlscontext_flexgateway": resourceSecretGroupTlsContextFG(),
"anypoint_secretgroup_tlscontext_mule": resourceSecretGroupTlsContextMule(),
"anypoint_secretgroup_tlscontext_securityfabric": resourceSecretGroupTlsContextSF(),
"anypoint_secretgroup_crldistrib_cfgs": resourceSecretGroupCrlDistribCfgs(),
}
var SG_CERTIFICATE_DETAILS_SCHEMA = map[string]*schema.Schema{ "issuer": { Type: schema.TypeMap, Computed: true, Description: "Details about the entity that issued the certificate.", }, "subject": { Type: schema.TypeMap, Computed: true, Description: "Details about the entity to which the certificate is issued.", }, "subject_alternative_name": { Type: schema.TypeList, Computed: true, Description: "Collection of subject alternative names from the SubjectAltName x509 extension", Elem: &schema.Schema{ Type: schema.TypeString, }, }, "version": { Type: schema.TypeString, Computed: true, Description: "version", }, "serial_number": { Type: schema.TypeString, Computed: true, Description: "Serial number assigned by the CA to this certificate, in hex format", }, "signature_algorithm": { Type: schema.TypeString, Computed: true, Description: "Name of the signature algorithm", }, "public_key_algorithm": { Type: schema.TypeString, Computed: true, Description: "The standard algorithm name for the public key of this certificate", }, "is_certificate_authority": { Type: schema.TypeBool, Computed: true, Description: "If set to true, indicates that this is a CA certificate.", }, "validity": { Type: schema.TypeMap, Computed: true, Description: "Details about validity period of this certificate", }, "key_usage": { Type: schema.TypeList, Computed: true, Description: "A list of values defining the purpose of the public key i.e. the key usage extensions from this certificate", Elem: &schema.Schema{ Type: schema.TypeString, }, }, "extended_key_usage": { Type: schema.TypeList, Computed: true, Description: "A list of values providing details about the extended key usage extensions from this certificate.", Elem: &schema.Schema{ Type: schema.TypeString, }, }, "certificate_type": { Type: schema.TypeString, Computed: true, Description: "The type of this certificate", }, }
var SG_TLS_CONTEXT_FG_TARGET = "FlexGateway"
var SG_TLS_CONTEXT_MULE_TARGET = "Mule"
var SG_TLS_CONTEXT_SF_TARGET = "SecurityFabric"
Functions ¶
func CalcSha1Digest ¶
Uses sha1 to calculate digest of the given source string
func ComposeResourceId ¶
composes an id by concatenating items of array into one single string
func ConvPrimtiveInterface2String ¶ added in v1.6.0
func ConvPrimtiveInterface2String(p interface{}) string
converts a primitive value in a interface{} format to a string
func DecomposeResourceId ¶
decomposes a composite resource id
func DiffSuppressFunc4OptionalPrimitives ¶
func DiffSuppressFunc4OptionalPrimitives(k, old, new string, d *schema.ResourceData, initial string) bool
compares diffing for optional values, if the new value is equal to the initial value (that is the default value) returns true if the attribute has the same value as the initial or if the new and old value are the same which needs no updaten false otherwise.
func FilterMapList ¶
func filters list of map depending on the given filter function returns list of elements satisfying the filter
func FilterStrList ¶ added in v1.6.0
filters list of strings depending on the given filter func returns a list of strings
func JoinStringInterfaceSlice ¶ added in v1.6.0
same as strings.Join but for a slice of interface{} that are in reality strings
func ListInterface2ListStrings ¶
func ListInterface2ListStrings(array []interface{}) []string
func SortMapListAl ¶
func SortMapListAl(list []interface{}, sortAttrs []string)
sorts list of maps alphabetically using the given sort attributes (by order)
Types ¶
type ProviderConfOutput ¶
type ProviderConfOutput struct {
// contains filtered or unexported fields
}
Source Files ¶
- data_source_ame.go
- data_source_amq.go
- data_source_apim.go
- data_source_apim_instance.go
- data_source_apim_instance_policies.go
- data_source_apim_instance_policy.go
- data_source_apim_instance_upstreams.go
- data_source_bg.go
- data_source_connected_app.go
- data_source_connected_apps.go
- data_source_dlb.go
- data_source_dlbs.go
- data_source_env.go
- data_source_exchange_policy_template.go
- data_source_exchange_policy_templates.go
- data_source_flexgateway_registration_token.go
- data_source_flexgateway_target.go
- data_source_flexgateway_targets.go
- data_source_idp.go
- data_source_idps.go
- data_source_rolegroup.go
- data_source_rolegroups.go
- data_source_roles.go
- data_source_secretgroup.go
- data_source_secretgroup_certificate.go
- data_source_secretgroup_certificates.go
- data_source_secretgroup_crldistrib_cfgs.go
- data_source_secretgroup_crldistrib_cfgs_list.go
- data_source_secretgroup_keystore.go
- data_source_secretgroup_keystores.go
- data_source_secretgroup_tlscontext_flexgateway.go
- data_source_secretgroup_tlscontext_mule.go
- data_source_secretgroup_tlscontext_securityfabric.go
- data_source_secretgroup_tlscontexts.go
- data_source_secretgroup_truststore.go
- data_source_secretgroup_truststores.go
- data_source_secretgroups.go
- data_source_team.go
- data_source_team_groupmappings.go
- data_source_team_members.go
- data_source_team_roles.go
- data_source_teams.go
- data_source_user.go
- data_source_user_rolegroup.go
- data_source_user_rolegroups.go
- data_source_users.go
- data_source_vpc.go
- data_source_vpcs.go
- data_source_vpn.go
- provider.go
- provider_clients.go
- provider_datasources.go
- provider_resources.go
- resource_ame.go
- resource_ame_binding.go
- resource_amq.go
- resource_apim_flexgateway.go
- resource_apim_mule4.go
- resource_apim_policy_basic_auth.go
- resource_apim_policy_client_id_enforcement.go
- resource_apim_policy_custom.go
- resource_apim_policy_jwt_validation.go
- resource_apim_policy_message_logging.go
- resource_apim_policy_rate_limit.go
- resource_bg.go
- resource_connected_app.go
- resource_dlb.go
- resource_env.go
- resource_idp_oidc.go
- resource_idp_saml.go
- resource_rolegroup.go
- resource_rolegroup_roles.go
- resource_secretgroup.go
- resource_secretgroup_certificate.go
- resource_secretgroup_crldistrib_cfgs.go
- resource_secretgroup_keystore.go
- resource_secretgroup_tlscontext_flexgateway.go
- resource_secretgroup_tlscontext_mule.go
- resource_secretgroup_tlscontext_securityfabric.go
- resource_secretgroup_truststore.go
- resource_team.go
- resource_team_groupmappings.go
- resource_team_member.go
- resource_team_roles.go
- resource_user.go
- resource_user_rolegroup.go
- resource_vpc.go
- resource_vpn.go
- util.go