opa

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadModules

func LoadModules(dir string) (map[string]string, error)

func SubjectRole

func SubjectRole(role string) string

func SubjectUser

func SubjectUser(userID string) string

Types

type Authorizer

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

func New

func New(ctx context.Context, modules map[string]string) (*Authorizer, error)

func (*Authorizer) AllowQuery

func (a *Authorizer) AllowQuery(subjects []string, target, op, table string) bool

func (*Authorizer) AllowTarget

func (a *Authorizer) AllowTarget(subjects []string, target string) bool

Jump to

Keyboard shortcuts

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