accesscontrol

package
v0.0.0-...-ac88f99 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int

Level must start with 1.

const LevelGreatest Level = 1000

LevelGreatest is the greatest level. It is always greater than any other role.

type Role

type Role string
const RoleGreatest Role = "__greatest__"

RoleGreatest is the greatest role. The level associated with it is RoleGreatest.

type Subject

type Subject string

type T

type T map[Subject]map[Role]Level

func (T) GetLevel

func (t T) GetLevel(subject Subject, role Role, defaultLevel Level) Level

func (T) MergedWith

func (t T) MergedWith(that T) T

Jump to

Keyboard shortcuts

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