Documentation ¶
Index ¶
- Constants
- func DeleteAPIKeyFromVault(ctx context.Context, vaultConfig *vault.Config, fedKey *FedKey) error
- func GetFedApiKeyUser(ownerType string, id uint) string
- func ParseFedKeyUser(username string) (string, uint, error)
- func PathCreateAppInst(fedCtxId string) (string, string)
- func PathGetAppInst(fedCtxId, appId, appInstId, zoneId string) (string, string)
- func PutAPIKeyToVault(ctx context.Context, vaultConfig *vault.Config, fedKey *FedKey, apiKey *ApiKey) error
- type ApiKey
- type FedKey
Constants ¶
View Source
const ( FederationTypeProvider = "provider" FederationTypeConsumer = "consumer" )
View Source
const ( ApiRoot = "operatorplatform/federation/v1" CallbackRoot = "operatorplatform/fedcallbacks/v1" // callback urls, used by both MC and FRM PartnerStatusEventPath = CallbackRoot + "/onPartnerStatusEvent" PartnerZoneResourceUpdatePath = CallbackRoot + "/onZoneResourceUpdateEvent" PartnerAppOnboardStatusEventPath = CallbackRoot + "/onApplicationOnboardStatusEvent" PartnerInstanceStatusEventPath = CallbackRoot + "/onInstanceStatusEvent" PartnerResourceStatusChangePath = CallbackRoot + "/onResourceStatusChangeEvent" PathVarAppInstUniqueId = "appInstUniqueId" CallbackNotSupported = "NOT_SUPPORTED" NoCallbackApiKey = "NO_CALLBACK_API_KEY" NoCallbackApiKeyError = "no callback API key" )
Variables ¶
This section is empty.
Functions ¶
func DeleteAPIKeyFromVault ¶
func GetFedApiKeyUser ¶
Get the username to associate with the api key. The username uniquely identifies the federation provider or consumer, so we can lookup the provider/consumer based on the username.
func PathCreateAppInst ¶
func PathGetAppInst ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.