access

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: BSD-2-Clause Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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