access

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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: https://chromium.googlesource.com/external/github.com/luci/luci-py/+/e3fbb1f5dafa59a2c57cf3a9fe3708f4309ab653/appengine/components/components/config/api.py

Index

Constants

This section is empty.

Variables

View Source
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.

Functions

func Check

func Check(c context.Context, a backend.Authority, configSet cfgtypes.ConfigSet) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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