Versions in this module Expand all Collapse all v0 v0.11.0 Apr 2, 2024 v0.10.0 Dec 28, 2023 Changes in this version + func Create(client *resty.Client, builder *Builder) error + func IDFromMethodPath(method string, path string) string + func IDFromRequest(req *restful.Request) string + func InputFromRequest(req *restful.Request) (map[Input]interface{}, error) + type Builder struct + func NewPolicyBuilder(method string, path string) *Builder + func (b *Builder) Complete() (*opa.Policy, error) + func (b *Builder) Result(result interface{}) *Builder + func (b *Builder) Status(status int) *Builder + func (b *Builder) When(input Input, value interface{}) *Builder + type Input string + const InputAuth + const InputBody + const InputMeta + const InputPath + const InputQuery + func (i Input) Field(fields ...Input) Input + type PolicyHandler struct + Store Store + func (h *PolicyHandler) Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain) + func (h *PolicyHandler) Handle(req *restful.Request, resp *restful.Response) + func (h *PolicyHandler) Name() string + func (h *PolicyHandler) Setup(ctx context.Context, add sharedmain.AddToRestContainer, ...) error + type Store interface + Create func(ctx context.Context, p *opa.Policy) error + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (*opa.Policy, error) + Setup func(ctx context.Context) error