anypoint

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const APIM_MULE4_TECHNOLOGY = "mule4"
View Source
const BG_VIEWER_ROLE = "833ab9ca-0c72-45ba-9764-1df83240db57"
View Source
const COMPOSITE_ID_SEPARATOR = "/"
View Source
const FLEX_GATEWAY_TECHNOLOGY = "flexGateway"

Variables

View Source
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(),
}
View Source
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.",
	},
}
View Source
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,
		},
	},
}
View Source
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(),
}
View Source
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",
	},
}
View Source
var SG_TLS_CONTEXT_FG_TARGET = "FlexGateway"
View Source
var SG_TLS_CONTEXT_MULE_TARGET = "Mule"
View Source
var SG_TLS_CONTEXT_SF_TARGET = "SecurityFabric"

Functions

func CalcSha1Digest

func CalcSha1Digest(source string) string

Uses sha1 to calculate digest of the given source string

func ComposeResourceId

func ComposeResourceId(elem []string, separator ...string) string

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

func DecomposeResourceId(id string, separator ...string) []string

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 FilterMapList(list []interface{}, filter func(map[string]interface{}) bool) []interface{}

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

func FilterStrList(list []string, filter func(string) bool) []string

filters list of strings depending on the given filter func returns a list of strings

func IsBool

func IsBool(v interface{}) bool

func IsFloat32

func IsFloat32(v interface{}) bool

func IsFloat64

func IsFloat64(v interface{}) bool

func IsInt32

func IsInt32(v interface{}) bool

func IsInt64

func IsInt64(v interface{}) bool

func IsString

func IsString(v interface{}) bool

func JoinStringInterfaceSlice added in v1.6.0

func JoinStringInterfaceSlice(slice []interface{}, sep string) string

same as strings.Join but for a slice of interface{} that are in reality strings

func ListInterface2ListStrings

func ListInterface2ListStrings(array []interface{}) []string

func Provider

func Provider() *schema.Provider

Provider -

func SortMapListAl

func SortMapListAl(list []interface{}, sortAttrs []string)

sorts list of maps alphabetically using the given sort attributes (by order)

func SortStrListAl

func SortStrListAl(list []interface{})

sorts list of strings alphabetically

func StringInSlice

func StringInSlice(expected []string, v string, ignoreCase bool) bool

tests if the provided value matches the value of an element in the valid slice. Will test with strings.EqualFold if ignoreCase is true

Types

type ProviderConfOutput

type ProviderConfOutput struct {
	// contains filtered or unexported fields
}

Source Files

Jump to

Keyboard shortcuts

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