network

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
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

func CheckConfigWithParams(configDir string) error

CheckConfigWithParams checks the monetcli configuration.

func CompileConfigWithParam

func CompileConfigWithParam(configDir string) error

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

func GetPeersLabelsList(tree *toml.Tree) []string

GetPeersLabelsList takes a tree and extracts a peer list from it

func GetPeersLabelsListFromToml

func GetPeersLabelsListFromToml(configDir string) ([]string, error)

GetPeersLabelsListFromToml processes a monetcli toml file and returns a string slice

func NewLocationCmd

func NewLocationCmd() *cobra.Command

NewLocationCmd defines the CLI command config check

func PeersWizard

func PeersWizard(configDir string) error

PeersWizard implements interactive management of the Peers in the MonetCli Config

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL