Documentation ¶
Index ¶
- func NewACLManager(ctx *actx.AclCtx) (base.AclManager, error)
- func UpdateAK2AccountReflection(ctx contract.KContext, aclOldJSON []byte, aclNewJSON []byte, ...) error
- type KernMethod
- type Manager
- func (mgr *Manager) GetAccountACL(accountName string) (*pb.Acl, error)
- func (mgr *Manager) GetAccountAddresses(accountName string) ([]string, error)
- func (mgr *Manager) GetContractMethodACL(contractName, methodName string) (*pb.Acl, error)
- func (mgr *Manager) GetObjectBySnapshot(bucket string, object []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewACLManager ¶
func NewACLManager(ctx *actx.AclCtx) (base.AclManager, error)
NewACLManager create instance of ACLManager
Types ¶
type KernMethod ¶
func NewKernContractMethod ¶
func NewKernContractMethod(bcName string, NewAccountResourceAmount int64) *KernMethod
func (*KernMethod) NewAccount ¶
func (*KernMethod) SetAccountACL ¶
func (*KernMethod) SetMethodACL ¶
type Manager ¶
Manager manages all ACL releated data, providing read/write interface for ACL table
func (*Manager) GetAccountACL ¶
GetAccountACL get acl of an account
func (*Manager) GetAccountAddresses ¶
GetAccountAddresses get the addresses belongs to contract account
func (*Manager) GetContractMethodACL ¶
GetContractMethodACL get acl of contract method
Click to show internal directories.
Click to hide internal directories.