Documentation ¶
Index ¶
- Constants
- func BlockVolumeCommands(name string) []cli.Command
- func ClusterCommands(name string) []cli.Command
- func DaemonMode(c *cli.Context) bool
- func DriverCommands() []cli.Command
- func DriverName(c *cli.Context) string
- func FileVolumeCommands(name string) []cli.Command
- type Format
- type VolumeSzUnits
Constants ¶
View Source
const ( // DaemonAlias command aliases for daemon mode. DaemonAlias = "daemon, d" // DaemonFlag key for the daeomon parameter DaemonFlag = "daemon" // DriverFlag key for for the driver parameter. DriverFlag = "driver" )
Variables ¶
This section is empty.
Functions ¶
func BlockVolumeCommands ¶
BlockVolumeCommands exports CLI comamnds for a Block VolumeDriver.
func ClusterCommands ¶
ClusterCommands exports CLI comamnds for File VolumeDriver
func DaemonMode ¶
DaemonMode returns true if we are running as daemon
func DriverCommands ¶
DriverCommands exports the list of CLI driver subcommands.
func DriverName ¶
DriverName as specified in the -<DriverFlag> parameter.
func FileVolumeCommands ¶
FileVolumeCommands exports CLI comamnds for File VolumeDriver
Types ¶
type Format ¶
type Format struct { Cmd string `json:"cmd,omitempty"` Status string `json:"status,omitempty"` Err string `json:"error,omitempty"` Desc string `json:"desc,omitempty"` UUID []string `json:"uuid,omitempty"` Result interface{} `json:"result,omitempty"` }
Format standardizes the screen output of commands.
type VolumeSzUnits ¶
type VolumeSzUnits uint64
VolumeSzUnits number representing size units.
const ( // KiB 1024 bytes KiB VolumeSzUnits = 1 << (10 * iota) // MiB 1024 KiB MiB // GiB 1024 MiB GiB // TiB 1024 GiB TiB // PiB 1024 PiB PiB )
Click to show internal directories.
Click to hide internal directories.