Documentation ¶
Overview ¶
Package access provides Identity Tracking and optional Permissions management for managing and restricting namespace resources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNewIdentity ¶ added in v0.8.0
func RegisterNewIdentity()
Types ¶
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
Identity is where your application tracks the Security Identity (a user, etc) that is accessing/leasing/locking a namespace element
type Permission ¶ added in v0.6.0
type Permission struct { }
Permission implements access control over a given PathElement and possible all of its descendents
func (*Permission) ApprovedAction ¶ added in v0.6.0
func (p *Permission) ApprovedAction()
ApprovedAction resolves if a given role can perform the requested action
type PermissionSet ¶ added in v0.6.0
type PermissionSet struct { }
type Role ¶
type Role struct { Name string UsageHook RoleUsageHookFunc Permissions *PermissionSet }
Role is where your application tracks what capability a given identity is using to access/lease/lock a namespace resource
type RoleUsageHookFunc ¶ added in v0.8.0
type RoleUsageHookFunc func()
RoleUsageHookFunc declares a function provided by your code which will be called (as a separate goroutine) when a declared role is used to grant access to a Namespace Path Element