luci: Index | Files

package access

import ""

Package access implements a config service access check against a project config client.

Note that this is a soft check, as the true access authority is the config service, and this check is not hitting that service.

If access is granted, this function will return nil. If access is explicitly denied, this will return ErrNoAccess.

This is a port of the ACL implementation from the config service:



Package Files



var ErrNoAccess = errors.New("no access")

ErrNoAccess is an error returned by CheckAccess if the supplied Authority does not have access to the supplied config set.

func Check Uses

func Check(c context.Context, a backend.Authority, configSet config.Set) error

Check tests if a given Authority can access the named config set.

Package access imports 10 packages (graph) and is imported by 4 packages. Updated 2020-04-07. Refresh now. Tools for package owners.