Documentation ¶
Index ¶
- Constants
- type Client
- type ConfAndExec
- type GoQuorum
- func (g *GoQuorum) Args() (args []string)
- func (g GoQuorum) ENV() (envs []corev1.EnvVar)
- func (g *GoQuorum) EncodeStaticNodes() string
- func (g *GoQuorum) Genesis() (content string, err error)
- func (g GoQuorum) Image() string
- func (g GoQuorum) PathConfig() string
- func (g GoQuorum) PathData() string
- func (g GoQuorum) PathSecrets() string
- type GroupNode
- type NodeRoleType
Constants ¶
View Source
const ( GoQuorumHomeDir = "/data/quorum" GoQuorumDefaultImage = "quorumengineering/quorum:22.4.4" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Generate Genesis file content // https://consensys.net/docs/goquorum//en/latest/configure-and-manage/configure/genesis-file/genesis-options/ Genesis() (string, error) // https://consensys.net/docs/goquorum//en/latest/configure-and-manage/configure/static-nodes/ EncodeStaticNodes() string ConfAndExec }
Ethereum compatible client
type ConfAndExec ¶
type ConfAndExec interface { // Refer container args Args() []string PathData() string PathSecrets() string PathConfig() string // Refer docker image Image() string ENV() []corev1.EnvVar }
Configure and execute client docker image
type GoQuorum ¶
type GoQuorum struct {
// contains filtered or unexported fields
}
func (*GoQuorum) EncodeStaticNodes ¶
func (GoQuorum) PathConfig ¶
PathConfig returns configuration directory
func (GoQuorum) PathSecrets ¶
PathSecrets returns secrets directory
type GroupNode ¶
type GroupNode interface { UniqueIndex() int String() string Address() (v1alpha1.EthereumAddress, error) EnodeURL() (v1alpha1.Enode, error) IsValidator() bool PrivateKey() (string, error) }
func NewGroupNode ¶
func NewGroupNode(cluster *v1alpha1.Cluster, nodeType NodeRoleType, index int) GroupNode
type NodeRoleType ¶
type NodeRoleType int
const ( NodeRoleValidator NodeRoleType = 1 << (iota * 10) NodeRoleMember NodeRoleBootNode )
Click to show internal directories.
Click to hide internal directories.