cmds

package
v1.2.0-dev Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HEKETI_CLI_VERSION = "(dev)"
)
View Source
var RootCmd = &cobra.Command{
	Use:   "heketi-cli",
	Short: "Command line program for Heketi",
	Long:  "Command line program for Heketi",
	Example: `  $ export HEKETI_CLI_SERVER=http://localhost:8080
  $ heketi-cli volume list`,
	Run: func(cmd *cobra.Command, args []string) {
		if version {
			fmt.Printf("heketi-cli %v\n", HEKETI_CLI_VERSION)
		}
	},
}

Functions

func NewHeketiCli

func NewHeketiCli(heketiVersion string, mstderr io.Writer, mstdout io.Writer) *cobra.Command

Types

type ConfigFile

type ConfigFile struct {
	Clusters []ConfigFileCluster `json:"clusters"`
}

type ConfigFileCluster

type ConfigFileCluster struct {
	Nodes []ConfigFileNode `json:"nodes"`
}

type ConfigFileNode

type ConfigFileNode struct {
	Devices []string                 `json:"devices"`
	Node    glusterfs.NodeAddRequest `json:"node"`
}

Config file

type Options

type Options struct {
	Url, Key, User string
	Json           bool
}

Main arguments

Jump to

Keyboard shortcuts

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