authzmodel

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLoadAuthzAllowList = errors.New("failed to load authz allow list for tenantID")
	ErrTenantNotExist     = errors.New("tenantID does not exist")
	ErrEmptyTenantID      = errors.New("tenantID cannot be empty")
)

Functions

This section is empty.

Types

type Engine

type Engine struct {
	AuthzHandler *authz.Handler

	Auditor *auditor.Auditor
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(
	ctx context.Context,
	repo repo.Repo,
	config *config.Config,
) *Engine

func (*Engine) LoadAllowList

func (am *Engine) LoadAllowList(ctx context.Context, tenantID string) error

func (*Engine) ReloadAllowList

func (am *Engine) ReloadAllowList(ctx context.Context) error

func (*Engine) StartAuthzDataRefresh

func (am *Engine) StartAuthzDataRefresh(ctx context.Context, interval time.Duration)

StartAuthzDataRefresh starts a background goroutine that refreshes the authorization data periodically

Jump to

Keyboard shortcuts

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