ndnetcli

package
v0.0.0-...-0c16df0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DaemonCmd = cli.Command{
		Name:  "daemon",
		Usage: "daemon related commands",
		Subcommands: []cli.Command{
			DaemonStartCmd,
			DaemonStopCmd,
		},
	}

	DaemonStartCmd = cli.Command{
		Name:  "start",
		Usage: "Start the Nexenta Docker Daemon: `start [options] NAME`",
		Flags: []cli.Flag{
			cli.BoolFlag{
				Name:  "verbose, v",
				Usage: "Enable verbose/debug logging: `[--verbose]`",
			},
			cli.StringFlag{
				Name:  "config, c",
				Usage: "Config file for daemon (default: /opt/nedge/etc/ccow/ndnet.json): `[--config ndnet.json]`",
			},
		},
		Action: cmdDaemonStart,
	}

	DaemonStopCmd = cli.Command{
		Name:   "stop",
		Usage:  "Stop the Nedge Docker Daemon: `stop",
		Action: cmdDaemonStop,
	}
)
View Source
var (
	NetworkCmd = cli.Command{
		Name:  "network",
		Usage: "Network related commands",
		Subcommands: []cli.Command{
			NetworkCreateCmd,
			NetworkDeleteCmd,
			NetworkListCmd,
		},
		Flags: []cli.Flag{},
	}

	NetworkCreateCmd = cli.Command{
		Name:  "create",
		Usage: "create a new network: `create [options] NAME`",
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "name",
				Usage: "network name",
			},
		},
		Action: cmdCreateNetwork,
	}
	NetworkDeleteCmd = cli.Command{
		Name:   "delete",
		Usage:  "delete an existing network: `delete NAME`",
		Flags:  []cli.Flag{},
		Action: cmdDeleteNetwork,
	}
	NetworkListCmd = cli.Command{
		Name:  "list",
		Usage: "list existing networks",
		Flags: []cli.Flag{
			cli.StringFlag{
				Name:  "range",
				Value: "",
				Usage: ": range of network`",
			},
		},
		Action: cmdListNetworks,
	}
)

Functions

func DaemonStart

func DaemonStart(c *cli.Context)

func NdnetCmdNotFound

func NdnetCmdNotFound(c *cli.Context, command string)

func NdnetInitialize

func NdnetInitialize(c *cli.Context) error

func NewCli

func NewCli(version string) *cli.App

Types

This section is empty.

Jump to

Keyboard shortcuts

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