Documentation ¶
Index ¶
- Variables
- func CheckExecPluginPaths(exec string, pluginExec string, pluginGenesisPath string) error
- func ColorAndPrepend(reader io.Reader, writer io.Writer, prependText string, color logging.Color)
- func NetworkIDFromGenesis(genesis []byte) (uint32, error)
- func NewColorPicker() *colorPicker
- func NewK8sNodeConfigJsonRaw(api, id, image, kind, namespace, tag string) json.RawMessage
- func NewLocalNodeConfigJsonRaw(binaryPath string) json.RawMessage
- func ToNodeID(stakingKey, stakingCert []byte) (ids.ShortID, error)
- func UpdateJSONKey(jsonBody string, k string, v string) (string, error)
- func VMID(vmName string) (ids.ID, error)
- type ColorPicker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckExecPluginPaths ¶ added in v1.0.11
func ColorAndPrepend ¶ added in v1.0.1
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 NetworkIDFromGenesis ¶
Returns the network ID in the given genesis
func NewColorPicker ¶ added in v1.0.1
func NewColorPicker() *colorPicker
NewColorPicker allows to assign a color to different clients
func NewK8sNodeConfigJsonRaw ¶
func NewK8sNodeConfigJsonRaw( api, id, image, kind, namespace, tag string, ) json.RawMessage
NewK8sNodeConfigJsonRaw returns a JSON formatted string as json.RawMessage for a kubernetes node config object (ImplSpecificConfig)
func NewLocalNodeConfigJsonRaw ¶
func NewLocalNodeConfigJsonRaw(binaryPath string) json.RawMessage
NewLocalNodeConfigJsonRaw returns a JSON formatted string as json.RawMessage for a local node config object (ImplSpecificConfig)
func UpdateJSONKey ¶ added in v1.0.11
Update the JSON body if the matching key is found and replace the value. e.g., "whitelisted-subnets" is the key and value is "a,b,c".
Types ¶
type ColorPicker ¶ added in v1.0.1
ColorPicker allows to assign a new color