luci: go.chromium.org/luci/resultdb/internal/permissions Index | Files

package permissions

import "go.chromium.org/luci/resultdb/internal/permissions"

Index

Package Files

permissions.go

func VerifyBatch Uses

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 Uses

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 Uses

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 2020-10-28. Refresh now. Tools for package owners.