permissions

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyBatch

func VerifyBatch(ctx context.Context, permission realms.Permission, ids invocations.IDSet) (err error)

VerifyBatch is checks multiple invocations' realms for the specified permission. There must not already be a transaction in the given context.

func VerifyInvNames

func VerifyInvNames(ctx context.Context, permission realms.Permission, invNames ...string) error

VerifyInvNames does the same as VerifyInvocation but accepts invocation names (variadic) instead of a single invocations.ID. There must not already be a transaction in the given context.

func VerifyInvocation

func VerifyInvocation(ctx context.Context, permission realms.Permission, ids ...invocations.ID) error

VerifyInvocation checks if the caller has the specified permission on the realm that the invocation with the specified id belongs to. There must not already be a transaction in the given context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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