Documentation
¶
Index ¶
- Variables
- func CheckExecPath(exec string) error
- func CheckPluginPath(pluginExec string) error
- func ColorAndPrepend(reader io.Reader, writer io.Writer, prependText string, color log.Color)
- func MkDirWithTimestamp(dirPrefix string) (string, error)
- func NetworkIDFromGenesis(genesis []byte) (uint32, error)
- func NewColorPicker() *colorPicker
- func SetJSONKey(jsonBody string, k string, v string) (string, error)
- func ToNodeID(stakingKey, stakingCert []byte) (ids.NodeID, error)
- func VMID(vmName string) (ids.ID, error)
- func VerifyChainHasCorrectParticipants(logger log.Logger, chainParticipants []string, cluster *rpcb.ClusterInfo, ...) bool
- type ColorPicker
- type EncodedNodeKeys
- type NodeKeys
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckExecPath ¶
func CheckPluginPath ¶
func ColorAndPrepend ¶
ColorAndPrepend reads each line from [reader], prepends it with [prependText] and colors it with [color], and then prints the prepended/colored line to [writer].
func MkDirWithTimestamp ¶
func NetworkIDFromGenesis ¶
Returns the network ID in the given genesis
func NewColorPicker ¶
func NewColorPicker() *colorPicker
NewColorPicker allows to assign a color to different clients
func SetJSONKey ¶
Set k=v in JSON string e.g., "track-chains" is the key and value is "a,b,c".
func VerifyChainHasCorrectParticipants ¶ added in v1.6.1
Types ¶
type ColorPicker ¶
ColorPicker allows to assign a new color
type EncodedNodeKeys ¶ added in v1.6.1
func EncodeNodeKeys ¶ added in v1.6.1
func EncodeNodeKeys(key *NodeKeys) *EncodedNodeKeys
Click to show internal directories.
Click to hide internal directories.