//
pkg.gl
Category
github.com/oasisprotocol/oasis-core/go
common
accessctl
package
0.2501.0
Repository:
https://github.com/oasisprotocol/oasis-core.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
3
Files
58 SLOC
#
Functions
NewPolicy
NewPolicy returns an empty policy.
SubjectFromPublicKey
SubjectFromPublicKey returns a Subject from the given public key.
SubjectFromX509Certificate
SubjectFromX509Certificate returns a Subject from the given X.509 certificate.
#
Constants
AnySubject
AnySubject is a wildcard subject.
#
Type aliases
Action
Action is an access control action.
Policy
Policy maps from Actions to a mapping from Subjects to booleans indicating whether the given subject is allowed to perform the given action or not.
Subject
Subject is an access control subject.