Documentation ¶
Overview ¶
Package parser for parsing cmd configs
Index ¶
- func ParseJSONIntoConfig(content []byte) (models.Config, error)
- func ParseJSONIntoFarm(content []byte) (models.Farm, error)
- func ParseJSONIntoNode(content []byte) (models.Node, error)
- func ParseJSONIntoNodeOptions(content []byte) (models.NodeOptions, error)
- func ParseJSONIntoPower(content []byte) (models.Power, error)
- func ReadFile(path string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSONIntoConfig ¶
ParseJSONIntoConfig parses the JSON configuration
func ParseJSONIntoFarm ¶
ParseJSONIntoFarm parses JSON into farm
func ParseJSONIntoNode ¶
ParseJSONIntoNode parses JSON into node
func ParseJSONIntoNodeOptions ¶
func ParseJSONIntoNodeOptions(content []byte) (models.NodeOptions, error)
ParseJSONIntoNodeOptions parses JSON into node options
func ParseJSONIntoPower ¶
ParseJSONIntoPower parses JSON into power
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.