user_access_ctrl

package
v0.0.0-...-aeb4a1d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package user_access_ctrl handles access to assets and keys. Read access is granted by adding an edge to the key graph. Write access is granted by adding read access and setting its access type edge data to "write".

Index

Examples

Constants

View Source
const ACCESS_READ = global.ACCESS_READ

ACCESS_READ is an AccessControl.Access option that specifies read access.

View Source
const ACCESS_READ_ONLY = global.ACCESS_READ_ONLY

ACCESS_READ_ONLY is an AccessControl.Access option that specifies read access without write access. It is only used when verifing access. If used in AddAccess, it's treated as ACCESS_READ.

View Source
const ACCESS_WRITE = global.ACCESS_WRITE

ACCESS_WRITE is an AccessControl.Access option that specifies write access.

View Source
const ACCESS_WRITE_ONLY = global.ACCESS_WRITE_ONLY

ACCESS_WRITE_ONLY is an AccessControl.Access option that specifies write access without read access.

View Source
const EDGEDATA_ACCESS_TYPE = global.EDGEDATA_ACCESS_TYPE

EDGEDATA_ACCESS_TYPE is a key used in edgeData (of type map[string]string).

Variables

This section is empty.

Functions

func GetUserAccessManager

GetUserAccessManager constructs and returns an userAccessManagerImpl instance.

Example
mstub := test_utils.CreateExampleMockStub()
stub := cached_stub.NewCachedStub(mstub)
caller := test_utils.CreateTestUser("caller1")

GetUserAccessManager(stub, caller)

Types

This section is empty.

Directories

Path Synopsis
Package user_access_manager is an interface for high-level user access control functions.
Package user_access_manager is an interface for high-level user access control functions.

Jump to

Keyboard shortcuts

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