Documentation
¶
Index ¶
- Constants
- func FormatApplicationID(applicationID string) string
- func FormatProxyID(proxyID string) string
- func GetAccessRequest(cacheManager cache.Manager, managedApp *v1.ResourceInstance, ...) *management.AccessRequest
- func GetConsumerApplication(ri *v1.ResourceInstance) (string, string)
- func GetMarketplaceDetails(ri *v1.ResourceInstance) *models.MarketplaceReference
- func GetSubscriptionID(subscription *v1.ResourceInstance) string
- func GetTransactionEventStatus(status int) string
- func GetTransactionSummaryStatus(status int) string
- func IsExceptionStatus(status int) bool
- func IsFailureStatus(status int) bool
- func IsHTTPExceptionStatus(status int) bool
- func IsHTTPFailureStatus(status int) bool
- func IsHTTPSuccessStatus(status int) bool
- func IsSuccessStatus(status int) bool
- func MarshalHeadersAsJSONString(headers map[string]string) string
- func ResolveAPIOwner(apiExternalID string, cacheManager cache.Manager) *models.Owner
- func ResolveAPIOwnerFromInstance(ri *v1.ResourceInstance) *models.Owner
- func ResolveAppOwnerFromManagedApp(manApp *v1.ResourceInstance) *models.Owner
- func ResolveIDWithPrefix(id, name string) string
- func ResolveProductOwner(ref v1.EmbeddedReference) *models.Owner
- func StripSummaryEventPrefix(apiID string) string
- func UpdateWithConsumerDetails(accessRequest *management.AccessRequest, managedApp *v1.ResourceInstance, ...) *models.ConsumerDetails
Constants ¶
const ( // SummaryEventProxyIDPrefix - Prefix for proxyID in summary event SummaryEventProxyIDPrefix = "remoteApiId_" // SummaryEventAPINamePrefix - Prefix for proxyID in summary event when falling back to the API name SummaryEventAPINamePrefix = "remoteApiName_" // SummaryEventApplicationIDPrefix - Prefix for application.ID in summary event SummaryEventApplicationIDPrefix = "remoteAppId_" )
Variables ¶
This section is empty.
Functions ¶
func FormatApplicationID ¶
FormatApplicationID - Returns the prefixed applicationID for summary event.
func FormatProxyID ¶
FormatProxyID - Returns the prefixed proxyID for summary event.
func GetAccessRequest ¶
func GetAccessRequest(cacheManager cache.Manager, managedApp *v1.ResourceInstance, apiID, stage, version string) *management.AccessRequest
GetAccessRequest -
func GetConsumerApplication ¶
func GetConsumerApplication(ri *v1.ResourceInstance) (string, string)
GetConsumerApplication -
func GetMarketplaceDetails ¶ added in v1.1.123
func GetMarketplaceDetails(ri *v1.ResourceInstance) *models.MarketplaceReference
GetMarketplaceDetails -
func GetSubscriptionID ¶
func GetSubscriptionID(subscription *v1.ResourceInstance) string
GetSubscriptionID -
func GetTransactionEventStatus ¶
GetTransactionEventStatus - Returns the transaction event status based on HTTP status code.
func GetTransactionSummaryStatus ¶
GetTransactionSummaryStatus - Returns the summary status based on HTTP status code.
func IsExceptionStatus ¶
IsExceptionStatus - Returns true if the HTTP status is between 500 and 511
func IsFailureStatus ¶
IsFailureStatus - Returns true if the HTTP status is between 400 and 500
func IsHTTPExceptionStatus ¶
IsHTTPExceptionStatus - Returns true if the HTTP status is between 500 and 511
func IsHTTPFailureStatus ¶
IsHTTPFailureStatus - Returns true if the HTTP status is between 400 and 500
func IsHTTPSuccessStatus ¶
IsHTTPSuccessStatus - Returns true if the HTTP status is between 200 and 400
func IsSuccessStatus ¶
IsSuccessStatus - Returns true if the HTTP status is between 200 and 400
func MarshalHeadersAsJSONString ¶
MarshalHeadersAsJSONString - Serializes the header key/values in map as JSON string
func ResolveAPIOwner ¶ added in v1.1.146
func ResolveAPIOwnerFromInstance ¶ added in v1.1.146
func ResolveAPIOwnerFromInstance(ri *v1.ResourceInstance) *models.Owner
func ResolveAppOwnerFromManagedApp ¶ added in v1.1.146
func ResolveAppOwnerFromManagedApp(manApp *v1.ResourceInstance) *models.Owner
func ResolveIDWithPrefix ¶ added in v1.1.123
ResolveIDWithPrefix determines the appropriate ID based on input values and prefix
func ResolveProductOwner ¶ added in v1.1.146
func ResolveProductOwner(ref v1.EmbeddedReference) *models.Owner
func StripSummaryEventPrefix ¶ added in v1.1.151
StripSummaryEventPrefix removes whichever proxy-ID prefix ResolveIDWithPrefix produced. Meaning the real-ID prefix or the name-fallback prefix, leaving the bare value used as a cache lookup key.
func UpdateWithConsumerDetails ¶
func UpdateWithConsumerDetails(accessRequest *management.AccessRequest, managedApp *v1.ResourceInstance, log log.FieldLogger) *models.ConsumerDetails
UpdateWithConsumerDetails -
Types ¶
This section is empty.