Documentation ¶
Index ¶
Constants ¶
View Source
const AccessRequestEventKey = "ACCESS_REQUEST_EVENT#"
View Source
const AccessRequestInstructionsKey = "ACCESS_REQUEST_INSTRUCTIONS#"
View Source
const AccessRequestKey = "ACCESS_REQUEST#"
View Source
const AccessReviewKey = "ACCESS_REVIEW#"
View Source
const AccessRuleCurrent = "CURRENT#"
View Source
const AccessRuleKey = "ACCESS_RULE#"
View Source
const AccessTokenKey = "ACCESS_TOKEN#"
View Source
const DeploymentKey = "CF_DEPLOYMENT#"
View Source
const FavoriteKey = "ACCESS_REQUEST_FAVORITE#"
View Source
const GroupKey = "GROUP#"
View Source
const HandlerKey = "HANDLER#"
View Source
const ProviderArgGroupOptionKey = "PROVIDER_ARG_GROUP_OPTION#"
View Source
const ProviderOptionKey = "PROVIDER_OPTION#"
View Source
const ProviderSetupKey = "PROVIDERSETUP#"
View Source
const ProviderSetupStepKey = "PROVIDERSETUP_STEP#"
View Source
const RequestReviewerKey = "REQUEST_REVIEWER#"
View Source
const TargetGroupKey = "TARGET_GROUP#"
View Source
const TargetGroupResourceKey = "TARGET_GROUP_RESOURCE#"
View Source
const TargetRouteKey = "TARGET_ROUTE#"
View Source
const UserKey = "USER#"
Variables ¶
View Source
var AccessRequest = accessRequestKeys{ PK1: AccessRequestKey, SK1: func(requestID string) string { return requestID }, GSI1PK: func(userID string) string { return AccessRequestKey + userID }, GSI1SK: func(requestID string) string { return requestID }, GSI2PK: func(status string) string { return AccessRequestKey + status }, GSI2SK: func(userId string, requestId string) string { return userId + "#" + requestId }, GSI2SKUser: func(userId string) string { return userId + "#" }, GSI3PK: func(userID string) string { return AccessRequestKey + userID }, GSI3SK: func(requestEnd time.Time) string { return iso8601.New(requestEnd).String() }, GSI4PK: func(userID string, ruleID string) string { return AccessRequestKey + userID + "#" + ruleID }, GSI4SK: func(requestEnd time.Time) string { return iso8601.New(requestEnd).String() }, }
View Source
var AccessRequestEvent = accessRequestEventKeys{ PK1: AccessRequestEventKey, SK1: func(requestID string, eventID string) string { return requestID + "#" + eventID }, SK1Request: func(requestID string) string { return requestID + "#" }, }
View Source
var AccessRequestInstructions = accessRequestInstructionsKeys{ PK1: AccessRequestInstructionsKey, SK1: func(requestID string) string { return requestID + "#" }, }
View Source
var AccessReview = accessReviewKeys{ PK1: func(reviewerID string) string { return AccessReviewKey + reviewerID }, SK1: func(requestID, reviewID string) string { return requestID + "#" + reviewID }, }
View Source
var AccessRule = accessRuleKeys{ PK1: AccessRuleKey, SK1: func(ruleID string, versionID string) string { return ruleID + "#" + versionID }, SK1RuleID: func(ruleID string) string { return ruleID + "#" }, GSI1PK: func(status string) string { return AccessRuleKey + AccessRuleCurrent + status }, GSI1SK: func(ruleID string) string { return ruleID }, GSI2PK: AccessRuleKey + AccessRuleCurrent, GSI2SK: func(ruleID string) string { return ruleID }, }
View Source
var AccessToken = accessTokenKeys{ PK1: AccessTokenKey, SK1: func(reqID string) string { return reqID }, GSIPK: AccessTokenKey, GSISK: func(accessToken string) string { return accessToken }, }
View Source
var Deployment = deploymentKeys{ PK1: DeploymentKey, SK1: DeploymentKey, }
View Source
var Favorite = FavoriteKeys{ PK1: FavoriteKey, SK1: func(userID string, favoriteID string) string { return userID + "#" + favoriteID }, SK1User: func(userID string) string { return userID + "#" }, }
View Source
var Groups = groupKeys{ PK1: GroupKey, SK1: func(groupID string) string { return groupID }, GSI1PK: GroupKey, GSI1SK: func(status string, name string) string { return status + "#" + name }, GSI1SKStatus: func(status string) string { return status + "#" }, GSI2PK: GroupKey, GSI2SK: func(source string, status string, name string) string { return source + "#" + status + "#" + name }, GSI2SKSourceStatus: func(source string, status string) string { return source + "#" + status + "#" }, }
View Source
var Handler = HandlerKeys{ PK1: HandlerKey, SK1: func(id string) string { return id }, }
View Source
var IndexNames = struct { GSI1 string GSI2 string GSI3 string GSI4 string }{ GSI1: "GSI1", GSI2: "GSI2", GSI3: "GSI3", GSI4: "GSI4", }
View Source
var ProviderArgGroupOption = providerArgGroupOptionKeys{ PK1: ProviderArgGroupOptionKey, SK1: func(providerID, argID, groupID, value string) string { return providerID + "#" + argID + "#" + groupID + "#" + value }, SK1Provider: func(providerID string) string { return providerID + "#" }, SK1ProviderArg: func(providerID, argID string) string { return providerID + "#" + argID + "#" }, SK1ProviderArgGroup: func(providerID, argID, groupID string) string { return providerID + "#" + argID + "#" + groupID + "#" }, }
View Source
var ProviderOption = providerOptionKeys{ PK1: ProviderOptionKey, SK1: func(providerID, argID, value string) string { return providerID + "#" + argID + "#" + value }, SK1Provider: func(providerID string) string { return providerID + "#" }, SK1ProviderArg: func(providerID, argID string) string { return providerID + "#" + argID + "#" }, }
View Source
var ProviderSetup = providerSetupKeys{ PK1: ProviderSetupKey, SK1: func(ID string) string { return ID }, GSI1PK: ProviderSetupKey, GSI1SK: func(providerType, providerVersion, ID string) string { return providerType + "#" + providerVersion + "#" + ID }, }
GSI1: allows us to check whether there is a setup-in-progress for a particular provider type, or a particular provider type and version.
View Source
var ProviderSetupStep = providerSetupStepKeys{ PK1: ProviderSetupStepKey, SK1: func(setupID string, index int) string { return fmt.Sprintf("%s#%d", setupID, index) }, }
View Source
var RequestReviewer = requestReviewerKeys{ PK1: RequestReviewerKey, SK1: func(requestID, userID string) string { return requestID + "#" + userID }, GSI1PK: func(userID string) string { return RequestReviewerKey + userID }, GSI1SK: func(requestID string) string { return requestID }, GSI2PK: func(userID string) string { return RequestReviewerKey + userID }, GSI2SK: func(status string, requestID string) string { return status + "#" + requestID }, GSI2SKStatus: func(status string) string { return status + "#" }, }
View Source
var TargetGroup = targetGroupKeys{ PK1: TargetGroupKey, SK1: func(id string) string { return id + "#" }, }
View Source
var TargetGroupResource = targetGroupResourceKeys{ PK1: TargetGroupResourceKey, SK1: func(targetGroupID, resourceType string, value string) string { return targetGroupID + "#" + resourceType + "#" + value }, SK1TargetGroupResource: func(targetGroupID, resourceType string) string { return targetGroupID + "#" + resourceType + "#" }, }
View Source
var TargetRoute = targetRouteKeys{ PK1: TargetRouteKey, SK1: func(group string, handler string, kind string) string { return group + "#" + handler + "#" + kind + "#" }, SK1GroupHandler: func(group string, handler string) string { return group + "#" + handler + "#" }, SK1Group: func(group string) string { return group + "#" }, GSI1PK: func(group string) string { return TargetRouteKey + "GROUP#" + group + "#" }, GSI1SK: func(valid bool, priority int) string { return fmt.Sprintf("%v#%d#", valid, priority) }, GSI1SKValid: func(valid bool) string { return fmt.Sprintf("%v#", valid) }, GSI2PK: func(handler string) string { return TargetRouteKey + "HANDLER#" + handler + "#" }, GSI2SK: func(group string) string { return group + "#" }, }
View Source
var Users = userKeys{ PK1: UserKey, SK1: func(userID string) string { return userID }, GSI1PK: UserKey, GSI1SK: func(status string, userID string) string { return status + "#" + userID }, GSI1SKStatus: func(status string) string { return status + "#" }, GSI2PK: UserKey, GSI2SK: func(email string) string { return email }, }
Functions ¶
This section is empty.
Types ¶
type FavoriteKeys ¶
type HandlerKeys ¶ added in v0.15.0
Source Files ¶
- accessrequest.go
- accessrequestevent.go
- accessrequestinstructions.go
- accessreview.go
- accessrule.go
- accesstoken.go
- deployment.go
- favorite.go
- group.go
- handler.go
- keys.go
- providerarggroup.go
- provideroption.go
- providersetup.go
- providersetup_step.go
- requestreviewer.go
- target_group.go
- target_route.go
- targetgroup_resource.go
- user.go
Click to show internal directories.
Click to hide internal directories.