cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Package cmd defines the commands of the stratumn-node executable.

Index

Constants

View Source
const (
	// InventoryFlagName is the name of the flag to pass the ansible inventory file.
	InventoryFlagName = "inventory"

	// DefaultInventory is the default name for the Stratumn test network inventory file.
	DefaultInventory = "network.ini"

	// PlaybookFlagName is the name of the flag for the ansible playbook.
	PlaybookFlagName = "playbook"

	// DefaultPlaybook is the path to the ansible deployment playbook.
	DefaultPlaybook = "main.yml"

	// RemoteUserFlagName is the name of the flag for setting the remote user's name.
	RemoteUserFlagName = "user"

	// DefaultRemoteUser is the name of the user on the remote hosts.
	DefaultRemoteUser = "ubuntu"

	// DeploymentKeyFlagName is the name of the flag for the deployment key.
	DeploymentKeyFlagName = "key"

	// DefaultDeploymentKey is the path to the private key setup on the cloud platform.
	DefaultDeploymentKey = "/keybase/team/stratumn_eng/stratumn_node_test_network/stratumn-node-test-key.pem"

	// AnsibleConfigFlagName is the name of the flag ansible configuration file path.
	AnsibleConfigFlagName = "ansible-cfg"

	// DefaultAnsibleConfig is the path to the ansible configuration file.
	DefaultAnsibleConfig = "ansible.cfg"

	// DefaultPythonRequirements is the path to the python requirements file.
	DefaultPythonRequirements = "requirements.txt"

	// DefaultAnsibleRequirements is the path to the ansible requirements file.
	DefaultAnsibleRequirements = "requirements.yml"
)
View Source
const (
	PrivateCoordinatorFlagName     = "private-coordinator"
	PrivateWithCoordinatorFlagName = "private-with-coordinator"
	CoordinatorAddrFlagName        = "coordinator-addr"
)

Flags used by the init command.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "stratumn-node",
	Short: "Stratumn Node is a node in a P2P network",
}

RootCmd represents the base command when called without any subcommands.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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