expr

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRuleAPI

func WithRuleAPI() expr.Option

Types

type Cache

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

func NewCache

func NewCache(ttl time.Duration) *Cache

func (*Cache) Get

func (c *Cache) Get(script string) (*vm.Program, error)

type Rule

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

func NewRule

func NewRule(script string) *Rule

func (*Rule) Exec

func (r *Rule) Exec(env map[string]any) (bool, error)

Exec implements authz.Rule.

func (*Rule) String

func (r *Rule) String() string

Jump to

Keyboard shortcuts

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