grant

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grant

type Grant struct {
	// contains filtered or unexported fields
}

func NewGrant

func NewGrant(pols []policy.Policy, strict bool) (*Grant, error)

func (*Grant) Delete

func (g *Grant) Delete(policy policy.Policy)

func (*Grant) Exists

func (g *Grant) Exists(policy policy.Policy) bool

func (*Grant) Field

func (g *Grant) Field(data any) (map[string]any, error)

func (*Grant) FieldByCKey

func (g *Grant) FieldByCKey(data any, cKey utils.CacheKey) (map[string]any, error)

func (*Grant) Filter

func (g *Grant) Filter(data any) (map[string]any, error)

func (*Grant) Get

func (g *Grant) Get(pol policy.Policy) ([]policy.Policy, bool)

func (*Grant) GetAll

func (g *Grant) GetAll() []policy.Policy

func (*Grant) GetPresent added in v0.1.1

func (g *Grant) GetPresent() map[string]policy.Policy

func (*Grant) Scopes

func (g *Grant) Scopes(cKey *utils.CacheKey, prop string) []string

func (*Grant) Subjects

func (g *Grant) Subjects(cKey *utils.CacheKey) []string

func (*Grant) Update

func (g *Grant) Update(policy policy.Policy)

Jump to

Keyboard shortcuts

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