workflow

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package workflow contains transport-neutral authorization for durable workflow definitions and instances. Persistence access is supplied by the workflow SQL store; current tenant permissions come from the active registry.

Index

Constants

View Source
const (
	DefinitionResource = "Workflow Definition"
	InstanceResource   = "Workflow Instance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

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

Authorizer evaluates every decision against live tenant membership. It never treats the role snapshot captured during authentication as current.

func NewAuthorizer

func NewAuthorizer(store processworkflow.AuthorizationStore, registry *doctype.Registry) (*Authorizer, error)

func (*Authorizer) CanCancelWorkflow

func (a *Authorizer) CanCancelWorkflow(ctx context.Context, exec policy.Execution, instance contract.WorkflowInstance) (bool, error)

func (*Authorizer) CanManageWorkflowDefinitions

func (a *Authorizer) CanManageWorkflowDefinitions(ctx context.Context, exec policy.Execution) (bool, error)

func (*Authorizer) CanReadWorkflow

func (a *Authorizer) CanReadWorkflow(ctx context.Context, exec policy.Execution, subject contract.SubjectRef) (bool, error)

func (*Authorizer) CanReconcileWorkflow

func (a *Authorizer) CanReconcileWorkflow(ctx context.Context, exec policy.Execution, instance contract.WorkflowInstance) (bool, error)

func (*Authorizer) CanStartWorkflow

func (a *Authorizer) CanStartWorkflow(ctx context.Context, exec policy.Execution, _ contract.DefinitionID, subject contract.SubjectRef) (bool, error)

Jump to

Keyboard shortcuts

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