permission

package
v0.0.0-...-5663add Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SysConsensus   = "_sys_consensus_"
	SysCNS         = "_sys_cns_"
	SysTableAccess = "_sys_table_access_"
	SysConfig      = "_sys_config_"
)
View Source
const PermissionABI = "" /* 754-byte string literal not displayed */

PermissionABI is the input ABI used to generate the binding from.

Variables

View Source
var PermissionPrecompileAddress common.Address = common.HexToAddress("0x0000000000000000000000000000000000001005")

PermissionPrecompileAddress is the contract address of Permission

Functions

This section is empty.

Types

type Permission

type Permission struct {
	PermissionCaller     // Read-only binding to the contract
	PermissionTransactor // Write-only binding to the contract
	PermissionFilterer   // Log filterer for contract events
}

Permission is an auto generated Go binding around an Ethereum contract.

func NewPermission

func NewPermission(address common.Address, backend bind.ContractBackend) (*Permission, error)

NewPermission creates a new instance of Permission, bound to a specific deployed contract.

type PermissionCaller

type PermissionCaller struct {
	// contains filtered or unexported fields
}

PermissionCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewPermissionCaller

func NewPermissionCaller(address common.Address, caller bind.ContractCaller) (*PermissionCaller, error)

NewPermissionCaller creates a new read-only instance of Permission, bound to a specific deployed contract.

func (*PermissionCaller) QueryByName

func (_Permission *PermissionCaller) QueryByName(opts *bind.CallOpts, table_name string) (string, error)

QueryByName is a free data retrieval call binding the contract method 0x20586031.

Solidity: function queryByName(string table_name) constant returns(string)

type PermissionCallerRaw

type PermissionCallerRaw struct {
	Contract *PermissionCaller // Generic read-only contract binding to access the raw methods on
}

PermissionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*PermissionCallerRaw) Call

func (_Permission *PermissionCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type PermissionCallerSession

type PermissionCallerSession struct {
	Contract *PermissionCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

PermissionCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*PermissionCallerSession) QueryByName

func (_Permission *PermissionCallerSession) QueryByName(table_name string) (string, error)

QueryByName is a free data retrieval call binding the contract method 0x20586031.

Solidity: function queryByName(string table_name) constant returns(string)

type PermissionFilterer

type PermissionFilterer struct {
	// contains filtered or unexported fields
}

PermissionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewPermissionFilterer

func NewPermissionFilterer(address common.Address, filterer bind.ContractFilterer) (*PermissionFilterer, error)

NewPermissionFilterer creates a new log filterer instance of Permission, bound to a specific deployed contract.

type PermissionInfo

type PermissionInfo struct {
	Address   string `json:"address"`
	EnableNum string `json:"enable_num"`
	TableName string `json:"table_name"`
}

func (*PermissionInfo) GetAddress

func (p *PermissionInfo) GetAddress() string

func (*PermissionInfo) GetEnableNum

func (p *PermissionInfo) GetEnableNum() string

func (*PermissionInfo) GetTableName

func (p *PermissionInfo) GetTableName() string

func (*PermissionInfo) SetAddress

func (p *PermissionInfo) SetAddress(addr string)

func (*PermissionInfo) SetEnableNum

func (p *PermissionInfo) SetEnableNum(enable string)

func (*PermissionInfo) SetTableName

func (p *PermissionInfo) SetTableName(name string)

type PermissionRaw

type PermissionRaw struct {
	Contract *Permission // Generic contract binding to access the raw methods on
}

PermissionRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*PermissionRaw) Call

func (_Permission *PermissionRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*PermissionRaw) Transact

func (_Permission *PermissionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.RawTransaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*PermissionRaw) Transfer

func (_Permission *PermissionRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type PermissionService

type PermissionService struct {
	// contains filtered or unexported fields
}

PermissionService is a precompile contract service.

func NewPermissionService

func NewPermissionService(client *client.Client, privateKey *ecdsa.PrivateKey) (*PermissionService, error)

NewPermissionService returns ptr of PermissionService

func (*PermissionService) GrantCNSManager

func (service *PermissionService) GrantCNSManager(grantress string) (string, error)

GrantCNSManager grants the CNS

func (*PermissionService) GrantDeployAndCreateManager

func (service *PermissionService) GrantDeployAndCreateManager(grantress string) (string, error)

GrantDeployAndCreateManager grants the deploy and create option to an address

func (*PermissionService) GrantNodeManager

func (service *PermissionService) GrantNodeManager(grantress string) (string, error)

GrantNodeManager grants the Node

func (*PermissionService) GrantPermissionManager

func (service *PermissionService) GrantPermissionManager(grantress string) (string, error)

GrantPermissionManager grants the permission

func (*PermissionService) GrantSysConfigManager

func (service *PermissionService) GrantSysConfigManager(grantress string) (string, error)

GrantSysConfigManager grants the System configuration manager

func (*PermissionService) GrantUserTableManager

func (service *PermissionService) GrantUserTableManager(tableName string, grantress string) (string, error)

GrantUserTableManager grants the info by the table name and user address

func (*PermissionService) ListCNSManager

func (service *PermissionService) ListCNSManager() ([]PermissionInfo, error)

ListCNSManager returns the list of CNS manager

func (*PermissionService) ListDeployAndCreateManager

func (service *PermissionService) ListDeployAndCreateManager() ([]PermissionInfo, error)

ListDeployAndCreateManager returns the list of permission info

func (*PermissionService) ListNodeManager

func (service *PermissionService) ListNodeManager() ([]PermissionInfo, error)

ListNodeManager returns the list of Node manager

func (*PermissionService) ListPermissionManager

func (service *PermissionService) ListPermissionManager() ([]PermissionInfo, error)

ListPermissionManager returns the list of permission

func (*PermissionService) ListSysConfigManager

func (service *PermissionService) ListSysConfigManager() ([]PermissionInfo, error)

ListSysConfigManager returns the list of System configuration manager

func (*PermissionService) ListUserTableManager

func (service *PermissionService) ListUserTableManager(tableName string) ([]PermissionInfo, error)

ListUserTableManager returns the list of permission info

func (*PermissionService) RevokeCNSManager

func (service *PermissionService) RevokeCNSManager(grantress string) (string, error)

RevokeCNSManager revokes the CNS

func (*PermissionService) RevokeDeployAndCreateManager

func (service *PermissionService) RevokeDeployAndCreateManager(grantress string) (string, error)

RevokeDeployAndCreateManager revokes a grantress's right of the deploy and create option

func (*PermissionService) RevokeNodeManager

func (service *PermissionService) RevokeNodeManager(grantress string) (string, error)

RevokeNodeManager revokes the Node

func (*PermissionService) RevokePermissionManager

func (service *PermissionService) RevokePermissionManager(grantress string) (string, error)

RevokePermissionManager revokes the permission

func (*PermissionService) RevokeSysConfigManager

func (service *PermissionService) RevokeSysConfigManager(grantress string) (string, error)

RevokeSysConfigManager revokes the System configuration manager

func (*PermissionService) RevokeUserTableManager

func (service *PermissionService) RevokeUserTableManager(tableName string, grantress string) (string, error)

RevokeUserTableManager revokes a grantress' right of the table name

type PermissionSession

type PermissionSession struct {
	Contract     *Permission       // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

PermissionSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*PermissionSession) Insert

func (_Permission *PermissionSession) Insert(table_name string, addr string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0x06e63ff8.

Solidity: function insert(string table_name, string addr) returns(int256)

func (*PermissionSession) QueryByName

func (_Permission *PermissionSession) QueryByName(table_name string) (string, error)

QueryByName is a free data retrieval call binding the contract method 0x20586031.

Solidity: function queryByName(string table_name) constant returns(string)

func (*PermissionSession) Remove

func (_Permission *PermissionSession) Remove(table_name string, addr string) (*types.RawTransaction, error)

Remove is a paid mutator transaction binding the contract method 0x44590a7e.

Solidity: function remove(string table_name, string addr) returns(int256)

type PermissionTransactor

type PermissionTransactor struct {
	// contains filtered or unexported fields
}

PermissionTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewPermissionTransactor

func NewPermissionTransactor(address common.Address, transactor bind.ContractTransactor) (*PermissionTransactor, error)

NewPermissionTransactor creates a new write-only instance of Permission, bound to a specific deployed contract.

func (*PermissionTransactor) Insert

func (_Permission *PermissionTransactor) Insert(opts *bind.TransactOpts, table_name string, addr string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0x06e63ff8.

Solidity: function insert(string table_name, string addr) returns(int256)

func (*PermissionTransactor) Remove

func (_Permission *PermissionTransactor) Remove(opts *bind.TransactOpts, table_name string, addr string) (*types.RawTransaction, error)

Remove is a paid mutator transaction binding the contract method 0x44590a7e.

Solidity: function remove(string table_name, string addr) returns(int256)

type PermissionTransactorRaw

type PermissionTransactorRaw struct {
	Contract *PermissionTransactor // Generic write-only contract binding to access the raw methods on
}

PermissionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*PermissionTransactorRaw) Transact

func (_Permission *PermissionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.RawTransaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*PermissionTransactorRaw) Transfer

func (_Permission *PermissionTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type PermissionTransactorSession

type PermissionTransactorSession struct {
	Contract     *PermissionTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

PermissionTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*PermissionTransactorSession) Insert

func (_Permission *PermissionTransactorSession) Insert(table_name string, addr string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0x06e63ff8.

Solidity: function insert(string table_name, string addr) returns(int256)

func (*PermissionTransactorSession) Remove

func (_Permission *PermissionTransactorSession) Remove(table_name string, addr string) (*types.RawTransaction, error)

Remove is a paid mutator transaction binding the contract method 0x44590a7e.

Solidity: function remove(string table_name, string addr) returns(int256)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL