Documentation ¶
Index ¶
- 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)
- type ColorPicker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Types ¶
type ColorPicker ¶ added in v1.0.1
ColorPicker allows to assign a new color
Click to show internal directories.
Click to hide internal directories.