Help us shape the future of Go! Take the 2026 Go Developer Survey

control

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCheck

type ActionCheck func(context.Context, pgx.Tx, workflow.Task, policy.Resolved) error

type Authority

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

func NewAuthority

func NewAuthority(policies *policy.Service) *Authority

func (*Authority) Check

func (a *Authority) Check(ctx context.Context, tx pgx.Tx, task workflow.Task, action string) (string, error)

func (*Authority) Register

func (a *Authority) Register(action string, check ActionCheck)

Jump to

Keyboard shortcuts

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