Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + type Engine struct + func DefaultAuthPolicy(ctx context.Context) (*Engine, error) + func NewEngineFromConfigOrDefault(ctx context.Context, cfg *OpaEngineConfig) (*Engine, error) + func NewEngineFromRego(ctx context.Context, regoPolicy string, dataStore storage.Store) (*Engine, error) + func (e *Engine) Eval(ctx context.Context, input Input) (result Result, err error) + type Input struct + Caller string + FullMethod string + Req interface{} + type LocalOpaProviderConfig struct + PolicyDataPath string + RegoPath string + type OpaEngineConfig struct + LocalOpaProvider *LocalOpaProviderConfig + type Result struct + Allow bool + AllowIfAdmin bool + AllowIfAgent bool + AllowIfDownstream bool + AllowIfLocal bool