Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScopeDelimiter = ":" TypeAPI Type = "api" TypeTargetGroup Type = "targetGroup" TypeAccount Type = "account" ResourceDeployment Resource = "deployment" ResourceTenant Resource = "tenant" ResourceOrganization Resource = "organization" ResourceAgentHub Resource = "agentHub" ResourceStar Resource = "*" PermissionFull Permission = "full" )
Variables ¶
View Source
var ( ScopeOrganizationAdmin = mustScope(TypeAPI, ResourceOrganization, PermissionFull) ScopeTenantAdmin = mustScope(TypeAPI, ResourceTenant, PermissionFull) ScopeDeploymentsFullAccess = mustScope(TypeAPI, ResourceDeployment, PermissionFull) ScopeRemoteNetworkAgent = mustScope(TypeAPI, ResourceAgentHub, PermissionFull) )
View Source
var ( ErrInvalidScope = errors.New("invalid scope") ErrInvalidGrant = errors.New("invalid grant") )
Functions ¶
Types ¶
type Grant ¶
type Grant struct { Type Type Resource Resource Permission Permission }
func GrantFromStrings ¶
type Permission ¶
type Permission string
Click to show internal directories.
Click to hide internal directories.