Documentation ¶
Index ¶
- Constants
- func AttachVolumeCompleted(c *config.CloudCredentials, serverID, volumeID string) error
- func CheckVolumeExists(credentials *config.CloudCredentials, name string, sizeGB int) (*cloudvolumes.Volume, error)
- func CreateCinderCompleted(c *config.CloudCredentials, opts *cloudvolumes.CreateOpts) (string, error)
- func CreateSnapshot(c *config.CloudCredentials, opts *snapshots.CreateOpts) (*snapshots.Snapshot, error)
- func CreateSnapshotCompleted(credentials *config.CloudCredentials, name string, volumeID string) (*snapshots.Snapshot, error)
- func CreateVolumeCompleted(c *config.CloudCredentials, otps *cloudvolumes.CreateOpts) (string, error)
- func DeleteSnapshot(c *config.CloudCredentials, snapshotID string) error
- func DeleteVolume(c *config.CloudCredentials, id string) error
- func DetachVolumeCompleted(c *config.CloudCredentials, serverID, volumeID string) error
- func ExpandVolume(c *config.CloudCredentials, id string, newSize int) error
- func GetServer(c *config.CloudCredentials, serverID string) (*serversv2.Server, error)
- func GetSnapshot(c *config.CloudCredentials, id string) (*snapshots.Snapshot, error)
- func GetVolume(c *config.CloudCredentials, id string) (*cloudvolumes.Volume, error)
- func ListSnapshots(c *config.CloudCredentials, opts snapshots.ListOpts) (*snapshots.PagedList, error)
- func ListVolumes(c *config.CloudCredentials, opts cloudvolumes.ListOpts) ([]cloudvolumes.Volume, error)
- func WaitForVolumeAttaching(c *config.CloudCredentials, volumeID string) error
- func WaitSnapshotReady(c *config.CloudCredentials, snapshotID string) error
Constants ¶
View Source
const ( EvsAvailableStatus = "available" EvsAttachingStatus = "attaching" EvsInUseStatus = "in-use" )
Variables ¶
This section is empty.
Functions ¶
func AttachVolumeCompleted ¶
func AttachVolumeCompleted(c *config.CloudCredentials, serverID, volumeID string) error
func CheckVolumeExists ¶
func CheckVolumeExists(credentials *config.CloudCredentials, name string, sizeGB int) (*cloudvolumes.Volume, error)
func CreateCinderCompleted ¶
func CreateCinderCompleted(c *config.CloudCredentials, opts *cloudvolumes.CreateOpts) (string, error)
func CreateSnapshot ¶
func CreateSnapshot(c *config.CloudCredentials, opts *snapshots.CreateOpts) (*snapshots.Snapshot, error)
func CreateSnapshotCompleted ¶
func CreateVolumeCompleted ¶
func CreateVolumeCompleted(c *config.CloudCredentials, otps *cloudvolumes.CreateOpts) (string, error)
func DeleteSnapshot ¶
func DeleteSnapshot(c *config.CloudCredentials, snapshotID string) error
func DeleteVolume ¶
func DeleteVolume(c *config.CloudCredentials, id string) error
func DetachVolumeCompleted ¶
func DetachVolumeCompleted(c *config.CloudCredentials, serverID, volumeID string) error
func ExpandVolume ¶
func ExpandVolume(c *config.CloudCredentials, id string, newSize int) error
func GetSnapshot ¶
func GetVolume ¶
func GetVolume(c *config.CloudCredentials, id string) (*cloudvolumes.Volume, error)
func ListSnapshots ¶
func ListVolumes ¶
func ListVolumes(c *config.CloudCredentials, opts cloudvolumes.ListOpts) ([]cloudvolumes.Volume, error)
func WaitForVolumeAttaching ¶
func WaitForVolumeAttaching(c *config.CloudCredentials, volumeID string) error
func WaitSnapshotReady ¶
func WaitSnapshotReady(c *config.CloudCredentials, snapshotID string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.