Documentation
¶
Index ¶
- Variables
- func AddValidatorParamaterised(configDir string, moniker string, labelsafe string, addr string, pubkey string, ...) error
- func CheckConfigWithParams(configDir string) error
- func CompileConfigWithParam(configDir string) error
- func GenerateKeyPair(configDir string, moniker string, ip string, isValidator bool, ...) error
- func GetPeersLabelsList(tree *toml.Tree) []string
- func GetPeersLabelsListFromToml(configDir string) ([]string, error)
- func NewLocationCmd() *cobra.Command
- func PeersWizard(configDir string) error
Constants ¶
This section is empty.
Variables ¶
var ( NetworkCmd = &cobra.Command{ Use: "network", Short: "manage monet network configuration", Long: `Network The network subcommand is used to configure a network of hubs within the monetcli configuration. The compile option builds the genesis file and pushes it to a monetd configuration. The commands available from the network command are sequenced in the wizard, testnet and testjoin commands.`, TraverseChildren: true, } )
NetworkCmd controls network configuration
var WizardCmd = &cobra.Command{
Use: "wizard",
Short: "wizard to set up a Monet Network",
Long: `Wizard to set up a Monet Network
This command provides a wizard interface to the
"monetcli network" commands. This provides a guided interface
through the process of configuring a network.`,
RunE: runWizardCmd,
}
WizardCmd is the wizard subcommand
Functions ¶
func AddValidatorParamaterised ¶
func AddValidatorParamaterised(configDir string, moniker string, labelsafe string, addr string, pubkey string, ip string, isValidator bool) error
AddValidatorParamaterised adds an entry to the peers list.
func CheckConfigWithParams ¶
CheckConfigWithParams checks the monetcli configuration.
func CompileConfigWithParam ¶
CompileConfigWithParam "finishes" the monetcli configuration, compiling the POA smart contract in preparation for a call to monetcli config publish
func GenerateKeyPair ¶
func GenerateKeyPair(configDir string, moniker string, ip string, isValidator bool, passwordFile string, privateKeyFile string) error
GenerateKeyPair wraps monetcli keys functionality, adding more interactivity
func GetPeersLabelsList ¶
GetPeersLabelsList takes a tree and extracts a peer list from it
func GetPeersLabelsListFromToml ¶
GetPeersLabelsListFromToml processes a monetcli toml file and returns a string slice
func NewLocationCmd ¶
NewLocationCmd defines the CLI command config check
func PeersWizard ¶
PeersWizard implements interactive management of the Peers in the MonetCli Config
Types ¶
This section is empty.