import "go.chromium.org/luci/resultdb/internal/permissions"
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.
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(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.
Package permissions imports 9 packages (graph) and is imported by 2 packages. Updated 2021-01-17. Refresh now. Tools for package owners.