Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckCore ¶
type CheckCore interface { // CheckAPE performs the common policy-engine check logic on a prepared request. CheckAPE(prm CheckPrm) error }
CheckCore provides methods to perform the common logic of APE check.
func New ¶
func New(localOverrideStorage policyengine.LocalOverrideStorage, morphChainStorage policyengine.MorphRuleChainStorageReader, frostFSSubjectProvider frostfsidcore.SubjectProvider, state netmap.State, ) CheckCore
type CheckPrm ¶
type CheckPrm struct { // Request is an APE-request that is checked by policy engine. Request aperequest.Request Namespace string Container cid.ID // An encoded container's owner user ID. ContainerOwner user.ID // PublicKey is public key of the request sender. PublicKey *keys.PublicKey // The request's bearer token. It is used in order to check APE overrides with the token. BearerToken *bearer.Token }
Click to show internal directories.
Click to hide internal directories.