authz

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 10 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authz

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

func New

func New(opts Options) *Authz

func (*Authz) Job added in v1.17.16

func (a *Authz) Job(ctx context.Context, req Request) error

Job authorizes a request for a named job. An actor targeted job on a reserved internal actor type (dapr.internal.<namespace>.<appid>.*) must belong to the requesting app. The one exception is scheduling, without overwrite, an activity result reminder on a workflow actor in the same namespace, which is how an activity host delivers a result to the workflow's app: reading, deleting or replacing such a job stays with the owner.

func (*Authz) Metadata

func (a *Authz) Metadata(ctx context.Context, meta *schedulerv1pb.JobMetadata) error

func (*Authz) WatchInitial

func (a *Authz) WatchInitial(ctx context.Context, initial *schedulerv1pb.WatchJobsRequestInitial) error

WatchInitial authorizes a WatchJobs stream. Declared actor types must not be another app's reserved internal actor types, else the stream would receive that app's reminder triggers.

type Options

type Options struct {
	Security security.Handler
}

type Request added in v1.17.16

type Request interface {
	GetName() string
	GetMetadata() *schedulerv1pb.JobMetadata
}

Request is a named job request.

Jump to

Keyboard shortcuts

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