Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForStatus ¶
WaitForStatus will continually poll the resource, checking for a particular status. It will do this for the amount of seconds defined.
Types ¶
type CreateOpts ¶
type ListResponse ¶ added in v0.9.7
type ListResponse struct {
Snapshots []Snapshot `json:"snapshots"`
}
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) (*ListResponse, error)
type RollbackInfo ¶ added in v0.9.7
type RollbackInfo struct {
VolumeID string `json:"volume_id"`
}
func Rollback ¶ added in v0.9.7
func Rollback(client *golangsdk.ServiceClient, snapshotID string, opts RollbackOpts) (*RollbackInfo, error)
type RollbackOpts ¶ added in v0.9.7
type RollbackResponse ¶ added in v0.9.7
type RollbackResponse struct {
Rollback RollbackInfo `json:"rollback"`
}
type Snapshot ¶
type Snapshot struct {
ID string `json:"id"`
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
Name string `json:"name"`
Description string `json:"description"`
VolumeID string `json:"volume_id"`
Status string `json:"status"`
Size int `json:"size"`
Metadata map[string]string `json:"metadata"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Snapshot, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, id string, opts UpdateOpts) (*Snapshot, error)
func (*Snapshot) UnmarshalJSON ¶
type UpdateOpts ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.