func (s *Snapshot) Delete(uuid string) ([]byte, error) { cs := cloudsigma.NewSnapshots() args := cs.NewDelete(uuid) args, err := cloud.setArgs(args) if err != nil { return nil, err } return cloud.sendRequest(args) }
func (s *Snapshots) List() ([]byte, error) { cs := cloudsigma.NewSnapshots() args := cs.NewList() args, err := cloud.setArgs(args) if err != nil { return nil, err } return cloud.sendRequest(args) }
func (s *Snapshot) Create(driveUuid string, name string) ([]byte, error) { o := cloudsigma.SnapshotRequest{Drive: driveUuid, Name: name} cs := cloudsigma.NewSnapshots() args := cs.NewCreate(o) args, err := cloud.setArgs(args) if err != nil { return nil, err } return cloud.sendRequest(args) }