Documentation
¶
Index ¶
- func All(subject security.Subject, ps ...security.Principal) bool
- func Any(subject security.Subject, ps ...security.Principal) bool
- func Find[T security.Principal](subject security.Subject) []T
- func First[T security.Principal](subject security.Subject) (p T, ok bool)
- func Parse[T StringPrincipal](val any) []security.Principal
- type Email
- type Entitlement
- type Group
- type Id
- type Role
- type StringPrincipal
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Email ¶ added in v0.30.37
type Email string
Email is used to hold the email address of the subject. i.e. johm.doe@domain.com
func (*Email) InitWithTag ¶ added in v0.30.37
type Entitlement ¶ added in v0.30.37
type Entitlement string
Entitlement refers to the rights and privileges granted to a user or a group. i.e. createWidget
func (*Entitlement) InitWithTag ¶ added in v0.30.37
func (e *Entitlement) InitWithTag(tag reflect.StructTag) error
func (Entitlement) Name ¶ added in v0.30.37
func (e Entitlement) Name() string
type Group ¶
type Group string
Group organizes users having common capabilities. i.e. admin
func (*Group) InitWithTag ¶ added in v0.30.6
type StringPrincipal ¶ added in v0.30.37
StringPrincipal is a generic constraint for string based security.Principal.
Click to show internal directories.
Click to hide internal directories.