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.
Click to show internal directories.
Click to hide internal directories.