util

package
v1.1.150 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 5 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

func FormatApplicationID(applicationID string) string

FormatApplicationID - Returns the prefixed applicationID for summary event.

func FormatProxyID

func FormatProxyID(proxyID string) string

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

func GetTransactionEventStatus(status int) string

GetTransactionEventStatus - Returns the transaction event status based on HTTP status code.

func GetTransactionSummaryStatus

func GetTransactionSummaryStatus(status int) string

GetTransactionSummaryStatus - Returns the summary status based on HTTP status code.

func IsExceptionStatus

func IsExceptionStatus(status int) bool

IsExceptionStatus - Returns true if the HTTP status is between 500 and 511

func IsFailureStatus

func IsFailureStatus(status int) bool

IsFailureStatus - Returns true if the HTTP status is between 400 and 500

func IsHTTPExceptionStatus

func IsHTTPExceptionStatus(status int) bool

IsHTTPExceptionStatus - Returns true if the HTTP status is between 500 and 511

func IsHTTPFailureStatus

func IsHTTPFailureStatus(status int) bool

IsHTTPFailureStatus - Returns true if the HTTP status is between 400 and 500

func IsHTTPSuccessStatus

func IsHTTPSuccessStatus(status int) bool

IsHTTPSuccessStatus - Returns true if the HTTP status is between 200 and 400

func IsSuccessStatus

func IsSuccessStatus(status int) bool

IsSuccessStatus - Returns true if the HTTP status is between 200 and 400

func MarshalHeadersAsJSONString

func MarshalHeadersAsJSONString(headers map[string]string) string

MarshalHeadersAsJSONString - Serializes the header key/values in map as JSON string

func ResolveAPIOwner added in v1.1.146

func ResolveAPIOwner(apiExternalID string, cacheManager cache.Manager) *models.Owner

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

func ResolveIDWithPrefix(id, name string) string

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 UpdateWithConsumerDetails

func UpdateWithConsumerDetails(accessRequest *management.AccessRequest, managedApp *v1.ResourceInstance, log log.FieldLogger) *models.ConsumerDetails

UpdateWithConsumerDetails -

Types

This section is empty.

Jump to

Keyboard shortcuts

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