Documentation ¶
Index ¶
- Variables
- func ChangeDateFormatToUnixDate(snapshotDisks []SnapshotInfo) error
- func CreateSnapshot(volName string, snapName string, namespace string) error
- func CreateVolume(vname, size, namespace string) error
- func DeleteVolume(vname string, namespace string) error
- func GetConnectionStatus() string
- func GetStatus() (string, error)
- func GetURL() string
- func Initialize()
- func ListPools() (*v1alpha1.CStorPoolList, error)
- func ListSnapshot(volName string, namespace string) error
- func ListVolumes(obj interface{}) error
- func Print(format string, obj interface{}) error
- func ReadPool(poolName string) (*v1alpha1.CStorPool, error)
- func RevertSnapshot(volName string, snapName string, namespace string) error
- func SortSnapshotDisksByDateTime(snapshotDisks []SnapshotInfo)
- func VolumeStats(volName, namespace string) (v1alpha1.VolumeMetricsList, error)
- type SnapshotInfo
Constants ¶
This section is empty.
Variables ¶
var MAPIAddr string
MAPIAddr stores address of mapi server if passed through flag
var MAPIAddrPort string
MAPIAddrPort stores port number of mapi server if passed through flag
Functions ¶
func ChangeDateFormatToUnixDate ¶
func ChangeDateFormatToUnixDate(snapshotDisks []SnapshotInfo) error
ChangeDateFormatToUnixDate changes the created date from RFC3339 format to UnixDate format
func CreateSnapshot ¶
CreateSnapshot creates a snapshot of volume by API request to m-apiserver
func CreateVolume ¶
CreateVolume creates a volume by invoking the API call to m-apiserver
func DeleteVolume ¶
DeleteVolume will request maya-apiserver to delete volume (vname)
func GetConnectionStatus ¶
func GetConnectionStatus() string
GetConnectionStatus return the status of the connecion
func ListPools ¶
func ListPools() (*v1alpha1.CStorPoolList, error)
ListPools returns a obj StoragePoolList from api-server
func ListSnapshot ¶
ListSnapshot lists snapshots of volume by API request to m-apiserver
func RevertSnapshot ¶
RevertSnapshot reverts a snapshot of volume by API request to m-apiserver
func SortSnapshotDisksByDateTime ¶
func SortSnapshotDisksByDateTime(snapshotDisks []SnapshotInfo)
SortSnapshotDisksByDateTime orders the snapshot disks with respect to date and time
func VolumeStats ¶
func VolumeStats(volName, namespace string) (v1alpha1.VolumeMetricsList, error)
VolumeStats returns the VolumeMetrics fetched from apisever endpoint