Documentation ¶
Index ¶
- func ConvStrArrayToPtr(strArr []string) []*string
- func GetMappedRBDs() (map[string]string, error)
- func GetRBDStatus(pool, image *string) (map[string]interface{}, error)
- func GetRadosPools() ([]*string, error)
- func GetVolumeID(pool, image *string) *string
- func RBDCreate(pool *string, image *string, sizeGB *int64, objectSize *string, ...) error
- func RBDHasWatchers(pool *string, image *string) (bool, error)
- func RBDMap(pool, image *string) (string, error)
- func RBDRemove(pool *string, image *string) error
- func RBDUnmap(device *string) error
- type RBDImage
- type RBDInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvStrArrayToPtr ¶
ConvStrArrayToPtr converts the slice of strings to a slice of pointers to str
func GetMappedRBDs ¶
GetMappedRBDs returns a map of RBDs currently mapped to the *local* host
func GetRBDStatus ¶
GetRBDStatus returns a map of RBD status info
func GetRadosPools ¶
GetRadosPools returns a slice containing all the pool names
func GetVolumeID ¶
GetVolumeID returns an RBD Volume formatted as <pool>.<imageName>
func RBDCreate ¶
func RBDCreate( pool *string, image *string, sizeGB *int64, objectSize *string, features []*string) error
RBDCreate creates a new RBD volume on the cluster
func RBDHasWatchers ¶
RBDHasWatchers returns true if RBD image has watchers
Types ¶
type RBDImage ¶
type RBDImage struct { Name string `json:"image"` Size int64 `json:"size"` Format uint `json:"format"` Pool string }
RBDImage holds details about an RBD image
func GetRBDImages ¶
GetRBDImages returns a slice of RBD image info
type RBDInfo ¶
type RBDInfo struct { Name string `json:"name"` Size int64 `json:"size"` Objects int64 `json:"objects"` Order int64 `json:"order"` ObjectSize int64 `json:"object_size"` BlockNamePrefix string `json:"block_name_prefix"` Format int64 `json:"format"` Features []string `json:"features"` Pool string }
RBDInfo holds low-level details about an RBD image
Click to show internal directories.
Click to hide internal directories.