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) } else { cmd.Usage() } }, }
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.