model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoleAccesString

func RoleAccesString(status *big.Int) (string, error)

Types

type Account

type Account struct {
	Status string
}

func (*Account) AcctStatusString

func (a *Account) AcctStatusString(stat *big.Int) (Account, error)

type AccountDetails

type AccountDetails struct {
	Id      common.Address
	OrgId   string
	Role    string
	Status  *big.Int
	IsAdmin bool
	Err     error
}

type AccountInfo

type AccountInfo struct {
	OrgId string
	Role  string
	Err   error
}

type Config

type Config struct {
	PermissionModel   string   `json:"PermissionModel"`
	UpgradableAddress string   `json:"upgradableAddress"`
	InterfaceAddress  string   `json:"interfaceAddress"`
	ImplAddress       string   `json:"implAddress"`
	NodeMgrAddress    string   `json:"nodeMgrAddress"`
	AccountMgrAddress string   `json:"accountMgrAddress"`
	RoleMgrAddress    string   `json:"roleMgrAddress"`
	VoterMgrAddress   string   `json:"voterMgrAddress"`
	OrgMgrAddress     string   `json:"orgMgrAddress"`
	NewAdminOrg       string   `json:"nwAdminOrg"`
	NewAdminRole      string   `json:"nwAdminRole"`
	OrgAdminRole      string   `json:"orgAdminRole"`
	GuardianAddress   []string `json:"accounts"`
	SubOrgDepth       int      `json:"subOrgDepth"`
	SubOrgBreadth     int      `json:"subOrgBreadth"`
}

Config struct for the application

type CreatedNode

type CreatedNode struct {
	ValidatorAccount string
	NodePath         string
}

type CredFacInst

type CredFacInst struct {
	Approver        common.Address
	Name            string
	ContractAddress common.Address
}

type Credential

type Credential struct {
	Id                    *big.Int
	Status                *big.Int
	ExpirationDate        *big.Int
	CompletionDate        *big.Int
	InstitutionContract   common.Address
	AuthorizationContract common.Address
	Approver              common.Address
	Uri                   string
}

type CredentialFactory

type CredentialFactory struct {
	Instituion  CredFacInst
	Name        string
	Symbol      string
	BaseUri     string
	Credentials []common.Address
	Holders     []common.Address
	TokenUri    []string
}

type CredentialInfo

type CredentialInfo struct {
	CredOrgAdd common.Address
	CredId     *big.Int
	Approver   common.Address
	Status     *big.Int
	Uri        string
}

type DeployedContract

type DeployedContract struct {
	Name       string
	Address    common.Address
	Governance common.Address
}

type InstCred

type InstCred struct {
	CredentialId   *big.Int       `json:"credential_id,omitempty"`
	InstApprover   common.Address `json:"inst_approver,omitempty"`
	CredApprover   common.Address `json:"cred_approver,omitempty"`
	Implementation common.Address `json:"implementation,omitempty"`
	CredAddress    common.Address `json:"cred_address,omitempty"`
	CredName       string         `json:"cred_name,omitempty"`
	CredSymbol     string         `json:"cred_symbol,omitempty"`
	CredUri        string         `json:"cred_uri,omitempty"`
}

type Institution

type Institution struct {
	Address     common.Address `json:"address,omitempty"`
	Approver    common.Address `json:"approver,omitempty"`
	Name        string         `json:"name,omitempty"`
	Uri         string         `json:"uri,omitempty"`
	Credentials []InstCred     `json:"credentials,omitempty"`
}

type NodeDetails

type NodeDetails struct {
	OrgId      string
	EnodeId    string
	Ip         string
	Port       uint16
	Raftport   uint16
	NodeStatus *big.Int
}

func (*NodeDetails) NodeStatusString

func (n *NodeDetails) NodeStatusString() (string, error)

type OrgDetails

type OrgDetails struct {
	OrgId      string
	PrntOrg    string
	UltPrntOrg string
	Level      *big.Int
	Status     *big.Int
}

func (*OrgDetails) OrgStatusString

func (o *OrgDetails) OrgStatusString() (string, error)

type PendingOp

type PendingOp struct {
	OrgId   string
	EnodeId string
	Account common.Address
	OpType  *big.Int
	Err     error
}

func (*PendingOp) PendingOpStatusString

func (p *PendingOp) PendingOpStatusString() (Account, error)

0 - None - indicates no pending records for the org 1 - New org add activity 2 - Org suspension activity 3 - Revoke of org suspension 4 - Assigning admin role for a new account 5 - Blacklisted node recovery 6 - Blacklisted account recovery

type PolicyDetails

type PolicyDetails struct {
	AdminOrg     string
	AdminRole    string
	OrgAdminRole string
	NetworkBoot  bool
}

type RoleDetail

type RoleDetail struct {
	RoleId     string
	OrgId      string
	AccessType *big.Int
	Voter      bool
	Admin      bool
	Active     bool
}

Jump to

Keyboard shortcuts

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