authorization

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: BSD-3-Clause-Clear Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const EntityIDPrefix string = "entity_idx_"

Variables

View Source
var ErrEmptyStringAttribute = errors.New("resource attributes must have at least one attribute value fqn")

Functions

Types

type AuthorizationService

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

func (AuthorizationService) IsReady added in v0.4.2

func (as AuthorizationService) IsReady(ctx context.Context) error

TODO: Not sure what we want to check here?

type Config added in v0.4.7

type Config struct {
	// Custom Rego Policy To Load
	Rego CustomRego `mapstructure:"rego"`
}

type CustomRego added in v0.4.10

type CustomRego struct {
	// Path to Rego file
	Path string `mapstructure:"path" json:"path"`
	// Rego Query
	Query string `mapstructure:"query" json:"query" default:"data.opentdf.entitlements.attributes"`
}

Jump to

Keyboard shortcuts

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