policy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine(opts ...EngineOption) (*cedarEngine, error)

Types

type EngineOption added in v0.3.0

type EngineOption func(*cedarEngine) error

EngineOption is used to configure an engine.

func WithBytes

func WithBytes(name string, policyBytes []byte) EngineOption

WithBytes specifies the bytes to load policies from.

func WithFile

func WithFile(policyFile string) EngineOption

WithFile specifies the file to load policies from.

func WithPath

func WithPath(policyPath string) EngineOption

WithPath specifies the path to load policies from.

Jump to

Keyboard shortcuts

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