Documentation ¶
Index ¶
- Variables
- func CheckExecPath(exec string) error
- func CheckPluginPath(pluginExec string) error
- func ColorAndPrepend(reader io.Reader, writer io.Writer, prependText string, color logging.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 VerifySubnetHasCorrectParticipants(log logging.Logger, subnetParticipants []string, cluster *rpcb.ClusterInfo, ...) bool
- type ColorPicker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckExecPath ¶
func CheckPluginPath ¶ added in v1.5.0
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-subnets" is the key and value is "a,b,c".
func VerifySubnetHasCorrectParticipants ¶ added in v1.4.1
Types ¶
type ColorPicker ¶
ColorPicker allows to assign a new color
Click to show internal directories.
Click to hide internal directories.