accessd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package accessd provides a thin client for access management service.

Index

Constants

View Source
const ServiceName = "ACCESSD"

Variables

This section is empty.

Functions

func CheckPermissions

func CheckPermissions(operator *protos.Identity, ents ...*accessprotos.AccessControl_Entity) error

func CheckReadPermission

func CheckReadPermission(operator *protos.Identity, ents ...*protos.Identity) error

Verifies operator's read permission for given entity and returns error if either request fails or the permissions are not granted

func CheckWritePermission

func CheckWritePermission(operator *protos.Identity, ents ...*protos.Identity) error

Verifies operator's write permission for given entity and returns error if either request fails or the permissions are not granted

func DeleteOperator

func DeleteOperator(operator *protos.Identity) error

Removes all operator's permissions (the entire operator's ACL)

func GetOperatorACL

func GetOperatorACL(
	operator *protos.Identity,
) (map[string]*accessprotos.AccessControl_Entity, error)

GetOperatorACL returns the operator's Identity's permission list

func GetOperatorsACLs

func GetOperatorsACLs(operators []*protos.Identity) ([]*accessprotos.AccessControl_List, error)

GetOperatorsACLs returns the operators' Identities permission lists

func GetPermissions

func GetPermissions(
	operator *protos.Identity,
	entity *protos.Identity,
) (accessprotos.AccessControl_Permission, error)

Returns the operator's permission bitmask for given entity

func ListOperators

func ListOperators() ([]*protos.Identity, error)

List all Operator Identities in accessd database

func SetOperator

func SetOperator(operator *protos.Identity, entities []*accessprotos.AccessControl_Entity) error

SetOperator overwrites Permissions to operator Identity to manage/monitor entities

func UpdateOperator

func UpdateOperator(operator *protos.Identity, entities []*accessprotos.AccessControl_Entity) error

UpdateOperator adds Permissions to operator Identity to manage/monitor entities

Types

This section is empty.

Directories

Path Synopsis
Access Control Manager is a service which stores, manages and verifies operator Identity objects and their rights to access (read/write) Entities.
Access Control Manager is a service which stores, manages and verifies operator Identity objects and their rights to access (read/write) Entities.
access_helper provides ToString() receiver for AccessControl_Permission mask
access_helper provides ToString() receiver for AccessControl_Permission mask
Accessd service provides the gRPC interface for cloud services & REST server to check & manage Identity access permissions.
Accessd service provides the gRPC interface for cloud services & REST server to check & manage Identity access permissions.

Jump to

Keyboard shortcuts

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