Beispiel #1
0
func doBackupList(c *cli.Context) error {
	var err error

	destURL, err := util.GetFlag(c, "", true, err)
	volumeName, err := util.GetName(c, "volume", false, err)
	if err != nil {
		return err

	}
	list, err := objectstore.List(volumeName, destURL, DRIVERNAME)
	if err != nil {
		return err
	}
	fmt.Println(list)
	return nil
}
Beispiel #2
0
func (d *Driver) ListBackup(destURL string, opts map[string]string) (map[string]map[string]string, error) {
	return objectstore.List(opts[convoydriver.OPT_VOLUME_UUID], destURL, d.Name())
}
Beispiel #3
0
func (d *Driver) ListBackup(destURL string, opts map[string]string) (map[string]map[string]string, error) {
	d.mutex.RLock()
	defer d.mutex.RUnlock()

	return objectstore.List(opts[convoydriver.OPT_VOLUME_NAME], destURL, d.Name())
}