common

package
v1.1.20 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessCode          = "accessCode"
	APIKey              = "apiKey"
	AppID               = "appID"
	AppName             = "appName"
	AttrAPIID           = "API ID"
	AttrAssetID         = "Asset ID"
	AttrAssetVersion    = "Asset Version"
	AttrChecksum        = "checksum"
	AttrProductVersion  = "Product Version"
	Authorization       = "authorization"
	ClientID            = "client-id"
	ClientIDEnforcement = "client-id-enforcement"
	ClientIDLabel       = "Client ID"
	ClientSecret        = "client-secret"
	ClientSecretLabel   = "Client Secret"
	ContractID          = "contractID"
	CredOrigin          = "credentialsOriginHasHttpBasicAuthenticationHeader"
	DescClientCred      = "Provided as: client_id:<INSERT_VALID_CLIENTID_HERE> \n\n client_secret:<INSERT_VALID_SECRET_HERE>\n\n"
	DescOauth2          = "This API supports OAuth 2.0 for authenticating all API requests"
	Description         = "description"
	ExternalOauth       = "external-oauth2-access-token-enforcement"
	Header              = "header"
	Oauth2              = "oauth2"
	Scopes              = "scopes"
	SLABased            = "sla-based"
	SlaTier             = "sla-tier"
	TierLabel           = "SLA Tier"
	TokenURL            = "tokenUrl"
)

Variables

This section is empty.

Functions

func FormatAPICacheKey

func FormatAPICacheKey(apiID, stageName string) string

FormatAPICacheKey ensure consistent naming of the cache key for an API.

Types

type PolicyDetail added in v1.1.5

type PolicyDetail struct {
	Policy     string
	IsSLABased bool
	APIId      string
}

PolicyDetail represents a policy

Jump to

Keyboard shortcuts

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