Documentation ¶
Index ¶
- type Account
- func (a *Account) ApproveAdminRole(_args ptype.TxArgs) (*types.Transaction, error)
- func (a *Account) ApproveBlacklistedAccountRecovery(_args ptype.TxArgs) (*types.Transaction, error)
- func (a *Account) AssignAccountRole(_args ptype.TxArgs) (*types.Transaction, error)
- func (a *Account) AssignAdminRole(_args ptype.TxArgs) (*types.Transaction, error)
- func (a *Account) StartBlacklistedAccountRecovery(_args ptype.TxArgs) (*types.Transaction, error)
- func (a *Account) UpdateAccountStatus(_args ptype.TxArgs) (*types.Transaction, error)
- type Audit
- type Backend
- func (b *Backend) GetAccountService(transactOpts *bind.TransactOpts, accountBackend ptype.ContractBackend) (ptype.AccountService, error)
- func (b *Backend) GetAuditService(auditBackend ptype.ContractBackend) (ptype.AuditService, error)
- func (b *Backend) GetControlService(controlBackend ptype.ContractBackend) (ptype.ControlService, error)
- func (b *Backend) GetNodeService(transactOpts *bind.TransactOpts, nodeBackend ptype.ContractBackend) (ptype.NodeService, error)
- func (b *Backend) GetOrgService(transactOpts *bind.TransactOpts, orgBackend ptype.ContractBackend) (ptype.OrgService, error)
- func (b *Backend) GetRoleService(transactOpts *bind.TransactOpts, roleBackend ptype.ContractBackend) (ptype.RoleService, error)
- func (b *Backend) ManageAccountPermissions() error
- func (b *Backend) ManageNodePermissions() error
- func (b *Backend) ManageOrgPermissions() error
- func (b *Backend) ManageRolePermissions() error
- func (b *Backend) MonitorNetworkBootUp() error
- type Control
- type Init
- func (i *Init) AddAdminAccount(_acct common.Address) (*types.Transaction, error)
- func (i *Init) AddAdminNode(url string) (*types.Transaction, error)
- func (i *Init) BindContracts() error
- func (i *Init) GetAccountDetails(_account common.Address) (common.Address, string, string, *big.Int, bool, error)
- func (i *Init) GetAccountDetailsFromIndex(_aIndex *big.Int) (common.Address, string, string, *big.Int, bool, error)
- func (i *Init) GetNetworkBootStatus() (bool, error)
- func (i *Init) GetNodeDetails(enodeId string) (string, string, *big.Int, error)
- func (i *Init) GetNodeDetailsFromIndex(_nodeIndex *big.Int) (string, string, *big.Int, error)
- func (i *Init) GetNumberOfAccounts() (*big.Int, error)
- func (i *Init) GetNumberOfNodes() (*big.Int, error)
- func (i *Init) GetNumberOfOrgs() (*big.Int, error)
- func (i *Init) GetNumberOfRoles() (*big.Int, error)
- func (i *Init) GetOrgDetails(_orgId string) (string, string, string, *big.Int, *big.Int, error)
- func (i *Init) GetOrgInfo(_orgIndex *big.Int) (string, string, string, *big.Int, *big.Int, error)
- func (i *Init) GetRoleDetails(_roleId string, _orgId string) (struct{ ... }, error)
- func (i *Init) GetRoleDetailsFromIndex(_rIndex *big.Int) (struct{ ... }, error)
- func (i *Init) GetSubOrgIndexes(_orgId string) ([]*big.Int, error)
- func (i *Init) Init(_breadth *big.Int, _depth *big.Int) (*types.Transaction, error)
- func (i *Init) SetPolicy(_nwAdminOrg string, _nwAdminRole string, _oAdminRole string) (*types.Transaction, error)
- func (i *Init) UpdateNetworkBootStatus() (*types.Transaction, error)
- type Node
- func (n *Node) AddNode(_args ptype.TxArgs) (*types.Transaction, error)
- func (n *Node) ApproveBlacklistedNodeRecovery(_args ptype.TxArgs) (*types.Transaction, error)
- func (n *Node) StartBlacklistedNodeRecovery(_args ptype.TxArgs) (*types.Transaction, error)
- func (n *Node) UpdateNodeStatus(_args ptype.TxArgs) (*types.Transaction, error)
- type Org
- func (o *Org) AddOrg(_args ptype.TxArgs) (*types.Transaction, error)
- func (o *Org) AddSubOrg(_args ptype.TxArgs) (*types.Transaction, error)
- func (o *Org) ApproveOrg(_args ptype.TxArgs) (*types.Transaction, error)
- func (o *Org) ApproveOrgStatus(_args ptype.TxArgs) (*types.Transaction, error)
- func (o *Org) UpdateOrgStatus(_args ptype.TxArgs) (*types.Transaction, error)
- type PermissionModelV2
- type Role
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Backend *PermissionModelV2
}
func (*Account) ApproveAdminRole ¶
func (*Account) ApproveBlacklistedAccountRecovery ¶
func (*Account) AssignAccountRole ¶
func (*Account) AssignAdminRole ¶
func (*Account) StartBlacklistedAccountRecovery ¶
func (*Account) UpdateAccountStatus ¶
type Backend ¶
type Backend struct { Ib ptype.InterfaceBackend Contr *Init }
func (*Backend) GetAccountService ¶
func (b *Backend) GetAccountService(transactOpts *bind.TransactOpts, accountBackend ptype.ContractBackend) (ptype.AccountService, error)
func (*Backend) GetAuditService ¶
func (b *Backend) GetAuditService(auditBackend ptype.ContractBackend) (ptype.AuditService, error)
func (*Backend) GetControlService ¶
func (b *Backend) GetControlService(controlBackend ptype.ContractBackend) (ptype.ControlService, error)
func (*Backend) GetNodeService ¶
func (b *Backend) GetNodeService(transactOpts *bind.TransactOpts, nodeBackend ptype.ContractBackend) (ptype.NodeService, error)
func (*Backend) GetOrgService ¶
func (b *Backend) GetOrgService(transactOpts *bind.TransactOpts, orgBackend ptype.ContractBackend) (ptype.OrgService, error)
func (*Backend) GetRoleService ¶
func (b *Backend) GetRoleService(transactOpts *bind.TransactOpts, roleBackend ptype.ContractBackend) (ptype.RoleService, error)
func (*Backend) ManageAccountPermissions ¶
func (*Backend) ManageNodePermissions ¶
func (*Backend) ManageOrgPermissions ¶
func (*Backend) ManageRolePermissions ¶
func (*Backend) MonitorNetworkBootUp ¶
type Control ¶
type Control struct {
Backend *PermissionModelV2
}
func (*Control) ConnectionAllowed ¶
type Init ¶
type Init struct { Backend ptype.ContractBackend //binding contracts PermUpgr *binding.PermUpgr PermInterf *binding.PermInterface PermNode *binding.NodeManager PermAcct *binding.AcctManager PermRole *binding.RoleManager PermOrg *binding.OrgManager //sessions PermInterfSession *binding.PermInterfaceSession // contains filtered or unexported fields }
func (*Init) AddAdminAccount ¶
func (*Init) AddAdminNode ¶
func (i *Init) AddAdminNode(url string) (*types.Transaction, error)
func (*Init) BindContracts ¶
This is to make sure all contract instances are ready and initialized
Required to be call after standard service start lifecycle
func (*Init) GetAccountDetails ¶
func (*Init) GetAccountDetailsFromIndex ¶
func (*Init) GetNetworkBootStatus ¶
func (*Init) GetNodeDetails ¶
func (*Init) GetNodeDetailsFromIndex ¶
func (*Init) GetOrgDetails ¶
func (*Init) GetOrgInfo ¶
func (*Init) GetRoleDetails ¶
func (*Init) GetRoleDetailsFromIndex ¶
func (*Init) UpdateNetworkBootStatus ¶
func (i *Init) UpdateNetworkBootStatus() (*types.Transaction, error)
type Node ¶
type Node struct {
Backend *PermissionModelV2
}
func (*Node) ApproveBlacklistedNodeRecovery ¶
func (*Node) StartBlacklistedNodeRecovery ¶
func (*Node) UpdateNodeStatus ¶
type Org ¶
type Org struct {
Backend *PermissionModelV2
}
func (*Org) ApproveOrg ¶
func (*Org) ApproveOrgStatus ¶
func (*Org) UpdateOrgStatus ¶
type PermissionModelV2 ¶
type PermissionModelV2 struct { ContractBackend ptype.ContractBackend PermInterf *binding.PermInterface PermInterfSession *binding.PermInterfaceSession }
type Role ¶
type Role struct {
Backend *PermissionModelV2
}
func (*Role) AddNewRole ¶
func (*Role) RemoveRole ¶
Click to show internal directories.
Click to hide internal directories.