Documentation ¶
Index ¶
- type Contract
- type MorphRuleChainStorage
- func (c *MorphRuleChainStorage) AddMorphRuleChain(chain.Name, engine.Target, *chain.Chain) (util.Uint256, uint32, error)
- func (c *MorphRuleChainStorage) DeleteBucketPolicy(ns string, cnrID cid.ID, chainID chain.ID) error
- func (c *MorphRuleChainStorage) GetBucketPolicy(ns string, cnrID cid.ID) ([]byte, error)
- func (c *MorphRuleChainStorage) ListMorphRuleChains(name chain.Name, target engine.Target) ([]*chain.Chain, error)
- func (c *MorphRuleChainStorage) PutBucketPolicy(ns string, cnrID cid.ID, policy []byte, chains []*chain.Chain) error
- func (c *MorphRuleChainStorage) RemoveMorphRuleChain(chain.Name, engine.Target, chain.ID) (util.Uint256, uint32, error)
- func (c *MorphRuleChainStorage) SaveACLChains(ns string, chains []*chain.Chain) error
- type MorphRuleChainStorageConfig
- type MultiTransaction
- type Storage
- func (s *Storage) DeleteBucketPolicy(ns string, cnrID cid.ID, chainID chain.ID) error
- func (s *Storage) GetBucketPolicy(ns string, cnrID cid.ID) ([]byte, error)
- func (s *Storage) IsAllowed(name chain.Name, target engine.RequestTarget, r resource.Request) (status chain.Status, found bool, err error)
- func (s *Storage) LocalStorage() engine.LocalOverrideStorage
- func (s *Storage) PutBucketPolicy(ns string, cnrID cid.ID, policy []byte, policyChains []*chain.Chain) error
- func (s *Storage) SaveACLChains(ns string, chains []*chain.Chain) error
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract interface { GetChain(entity policycontract.Kind, entityName string, name []byte) ([]byte, error) ListChains(entity policycontract.Kind, entityName string, prefix []byte) ([][]byte, error) StartTx() MultiTransaction SendTx(transaction MultiTransaction) error }
type MorphRuleChainStorage ¶
type MorphRuleChainStorage struct {
// contains filtered or unexported fields
}
func NewMorphRuleChainStorage ¶
func NewMorphRuleChainStorage(config *MorphRuleChainStorageConfig) *MorphRuleChainStorage
func (*MorphRuleChainStorage) AddMorphRuleChain ¶
func (*MorphRuleChainStorage) DeleteBucketPolicy ¶
func (*MorphRuleChainStorage) GetBucketPolicy ¶
func (*MorphRuleChainStorage) ListMorphRuleChains ¶
func (*MorphRuleChainStorage) PutBucketPolicy ¶
func (*MorphRuleChainStorage) RemoveMorphRuleChain ¶
func (*MorphRuleChainStorage) SaveACLChains ¶
func (c *MorphRuleChainStorage) SaveACLChains(ns string, chains []*chain.Chain) error
type MorphRuleChainStorageConfig ¶
type MorphRuleChainStorageConfig struct { Contract Contract Cache *cache.MorphPolicyCache Log *zap.Logger }
type MultiTransaction ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage(cfg StorageConfig) *Storage
func (*Storage) DeleteBucketPolicy ¶
func (*Storage) GetBucketPolicy ¶
func (*Storage) LocalStorage ¶
func (s *Storage) LocalStorage() engine.LocalOverrideStorage
func (*Storage) PutBucketPolicy ¶
type StorageConfig ¶
type StorageConfig struct { Contract Contract Cache *cache.MorphPolicyCache Log *zap.Logger }
Click to show internal directories.
Click to hide internal directories.