 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainRouterError ¶ added in v0.44.4
type ChainRouterError struct {
	// contains filtered or unexported fields
}
    ChainRouterError is returned when chain router validation prevents the APE request from being processed (no rule found, access denied, etc.).
func (*ChainRouterError) Error ¶ added in v0.44.4
func (e *ChainRouterError) Error() string
func (*ChainRouterError) Operation ¶ added in v0.44.4
func (e *ChainRouterError) Operation() string
func (*ChainRouterError) Status ¶ added in v0.44.4
func (e *ChainRouterError) Status() apechain.Status
type CheckCore ¶
type CheckCore interface {
	// CheckAPE performs the common policy-engine check logic on a prepared request.
	CheckAPE(ctx context.Context, 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.