ethereum

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 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) Args

func (g *GoQuorum) Args() (args []string)

func (GoQuorum) ENV

func (g GoQuorum) ENV() (envs []corev1.EnvVar)

func (*GoQuorum) EncodeStaticNodes

func (g *GoQuorum) EncodeStaticNodes() string

func (*GoQuorum) Genesis

func (g *GoQuorum) Genesis() (content string, err error)

Generate genesis file content.

func (GoQuorum) Image

func (g GoQuorum) Image() string

func (GoQuorum) PathConfig

func (g GoQuorum) PathConfig() string

PathConfig returns configuration directory

func (GoQuorum) PathData

func (g GoQuorum) PathData() string

PathData returns blockchain data directory

func (GoQuorum) PathSecrets

func (g GoQuorum) PathSecrets() string

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
)

Jump to

Keyboard shortcuts

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