Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2020 Changes in this version + const PermissionABI + const SysCNS + const SysConfig + const SysConsensus + const SysTable + const SysTableAccess + type Info struct + Address string + EnableNum string + TableName string + type Permission struct + func NewPermission(address common.Address, backend bind.ContractBackend) (*Permission, error) + type PermissionCaller struct + func NewPermissionCaller(address common.Address, caller bind.ContractCaller) (*PermissionCaller, error) + func (_Permission *PermissionCaller) QueryByName(opts *bind.CallOpts, table_name string) (string, error) + func (_Permission *PermissionCaller) QueryPermission(opts *bind.CallOpts, contractAddr common.Address) (string, error) + type PermissionCallerRaw struct + Contract *PermissionCaller + func (_Permission *PermissionCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type PermissionCallerSession struct + CallOpts bind.CallOpts + Contract *PermissionCaller + func (_Permission *PermissionCallerSession) QueryByName(table_name string) (string, error) + func (_Permission *PermissionCallerSession) QueryPermission(contractAddr common.Address) (string, error) + type PermissionFilterer struct + func NewPermissionFilterer(address common.Address, filterer bind.ContractFilterer) (*PermissionFilterer, error) + type PermissionRaw struct + Contract *Permission + func (_Permission *PermissionRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Permission *PermissionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type PermissionSession struct + CallOpts bind.CallOpts + Contract *Permission + TransactOpts bind.TransactOpts + func (_Permission *PermissionSession) GrantWrite(contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionSession) Insert(table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionSession) QueryByName(table_name string) (string, error) + func (_Permission *PermissionSession) QueryPermission(contractAddr common.Address) (string, error) + func (_Permission *PermissionSession) Remove(table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionSession) RevokeWrite(contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + type PermissionTransactor struct + func NewPermissionTransactor(address common.Address, transactor bind.ContractTransactor) (*PermissionTransactor, error) + func (_Permission *PermissionTransactor) GrantWrite(opts *bind.TransactOpts, contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactor) Insert(opts *bind.TransactOpts, table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactor) Remove(opts *bind.TransactOpts, table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactor) RevokeWrite(opts *bind.TransactOpts, contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + type PermissionTransactorRaw struct + Contract *PermissionTransactor + func (_Permission *PermissionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type PermissionTransactorSession struct + Contract *PermissionTransactor + TransactOpts bind.TransactOpts + func (_Permission *PermissionTransactorSession) GrantWrite(contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactorSession) Insert(table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactorSession) Remove(table_name string, addr string) (*types.Transaction, *types.Receipt, error) + func (_Permission *PermissionTransactorSession) RevokeWrite(contractAddr common.Address, user common.Address) (*types.Transaction, *types.Receipt, error) + type Service struct + func NewPermissionService(client *client.Client) (*Service, error) + func (service *Service) GrantCNSManager(accountAddress common.Address) (int64, error) + func (service *Service) GrantContractWritePermission(contractAddress common.Address, accountAddress common.Address) (int64, error) + func (service *Service) GrantDeployAndCreateManager(accountAddress common.Address) (int64, error) + func (service *Service) GrantNodeManager(accountAddress common.Address) (int64, error) + func (service *Service) GrantPermissionManager(accountAddress common.Address) (int64, error) + func (service *Service) GrantSysConfigManager(accountAddress common.Address) (int64, error) + func (service *Service) GrantUserTableManager(tableName string, accountAddress common.Address) (int64, error) + func (service *Service) ListCNSManager() ([]Info, error) + func (service *Service) ListContractWritePermission(contractAddress common.Address) ([]Info, error) + func (service *Service) ListDeployAndCreateManager() ([]Info, error) + func (service *Service) ListNodeManager() ([]Info, error) + func (service *Service) ListPermissionManager() ([]Info, error) + func (service *Service) ListSysConfigManager() ([]Info, error) + func (service *Service) ListUserTableManager(tableName string) ([]Info, error) + func (service *Service) RevokeCNSManager(accountAddress common.Address) (int64, error) + func (service *Service) RevokeContractWritePermission(contractAddress common.Address, accountAddress common.Address) (int64, error) + func (service *Service) RevokeDeployAndCreateManager(accountAddress common.Address) (int64, error) + func (service *Service) RevokeNodeManager(accountAddress common.Address) (int64, error) + func (service *Service) RevokePermissionManager(accountAddress common.Address) (int64, error) + func (service *Service) RevokeSysConfigManager(accountAddress common.Address) (int64, error) + func (service *Service) RevokeUserTableManager(tableName string, accountAddress common.Address) (int64, error)