policies

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const AuthUserCtx types.ContextKey = "authUser"

Variables

View Source
var ErrNotAllowed = errors.New("unauthorized to process request")

ErrNotAllowed is returned when request is not permitted.

Functions

This section is empty.

Types

type OrganisationPolicy

type OrganisationPolicy struct {
	*authz.BasePolicy
	OrganisationMemberRepo datastore.OrganisationMemberRepository
}

func (*OrganisationPolicy) GetName added in v1.1.6

func (op *OrganisationPolicy) GetName() string

func (*OrganisationPolicy) Manage added in v1.1.6

func (op *OrganisationPolicy) Manage(ctx context.Context, res interface{}) error

type ProjectPolicy

type ProjectPolicy struct {
	*authz.BasePolicy
	OrganisationRepo       datastore.OrganisationRepository
	OrganisationMemberRepo datastore.OrganisationMemberRepository
}

func (*ProjectPolicy) GetName added in v1.1.6

func (pp *ProjectPolicy) GetName() string

func (*ProjectPolicy) Manage added in v1.1.6

func (pp *ProjectPolicy) Manage(ctx context.Context, res interface{}) error

Jump to

Keyboard shortcuts

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