Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NodesFileFlag = cli.StringFlag{ Name: "file", Usage: "File containing testnet definition", Value: "testnet.yaml", } WorkDir = cli.StringFlag{ Name: "workDir", Usage: "Folder where files generated during the testnet will be placed", Value: "", } Host = cli.StringFlag{ Name: "host", Usage: "Genesis host to deploy to", Value: "http://localhost:8000", } )
View Source
var ( DeployCommand = cli.Command{ Name: "deploy", Usage: "Command to start a testnet", Description: `Command to start a testnet`, Action: deployTestnet, Flags: []cli.Flag{ NodesFileFlag, WorkDir, Host, }, } )
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶
type FileParameter ¶
type NodeConfig ¶
type NodeConfig struct { Image string `yaml:"image"` LaunchScript string `yaml:"launch-script"` Files []FileConfig `yaml:"files"` Args map[string]string `yaml:"args"` }
type ServiceParameter ¶
type Testnet ¶
type Testnet struct { Servers []int `json:"servers"` Blockchain string `json:"blockchain"` Nodes int `json:"nodes"` Images []string `json:"images"` Resources []TestnetResource `json:"resources"` Params TestnetParameters `json:"params"` Services []ServiceParameter `json:"services"` }
type TestnetConfig ¶
type TestnetConfig struct { Nodes []NodeConfig `yaml:"nodes"` Services map[string]Service `yaml:"services"` }
type TestnetParameters ¶
type TestnetParameters struct { Args []map[string]string `json:"args"` Files [][]FileParameter `json:"files"` LaunchScripts []string `json:"launch-script"` NetworkTopology string `json:"network-topology"` }
Click to show internal directories.
Click to hide internal directories.