rego

package
v1.50.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedSource

type CachedSource[T any] interface {
	Get(_ context.Context, hash source.Hash) (T, source.Hash, error)
}

type DataSource

type DataSource CachedSource[map[string]any]

type Engine

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

func NewEngine

func NewEngine(ctx context.Context, logger *zap.Logger, cfg *config.Config) (*Engine, error)

NewEngine creates a new local authorization engine

func (*Engine) IsAllowed

func (e *Engine) IsAllowed(ctx context.Context, input map[string]interface{}) (bool, error)

func (*Engine) Shutdown

func (e *Engine) Shutdown(_ context.Context) error

type PolicySource

type PolicySource CachedSource[[]byte]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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