cmds

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeketiStorageJobName      = "heketi-storage-copy-job"
	HeketiStorageEndpointName = "heketi-storage-endpoints"
	HeketiStorageSecretName   = "heketi-storage-secret"
	HeketiStorageVolTagName   = "heketi-storage"

	HeketiStorageVolumeSize    = 32
	HeketiStorageVolumeSizeStr = "32Gi"
)
View Source
const (
	DURABILITY_STRING_REPLICATE       = "replicate"
	DURABILITY_STRING_DISTRIBUTE_ONLY = "none"
	DURABILITY_STRING_EC              = "disperse"
)

Variables

View Source
var (
	HEKETI_CLI_VERSION = "(dev)"
)
View Source
var (

	// Override this from command line
	HeketiStorageJobContainer = "heketi/heketi: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    api.NodeAddRequest `json:"node"`
}

Config file

type KubeList

type KubeList struct {
	APIVersion string        `json:"apiVersion"`
	Kind       string        `json:"kind"`
	Items      []interface{} `json:"items"`
}

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