Add FTP storage method

This commit is contained in:
2013-08-29 23:39:06 -04:00
parent 47c785b4d3
commit aef7e308d0
2 changed files with 127 additions and 1 deletions

View File

@ -24,8 +24,13 @@ func GetStorage(config *conf.ConfigFile) (Storage, error) {
if err != nil {
return nil, err
}
case "ftp":
storage, err = NewFTPStorage(config)
if err != nil {
return nil, err
}
default:
return nil, errors.New("Error: storage method '" + storageMethod + "' not implemented.")
return nil, errors.New("Error: storage method '" + storageMethod + "' not found.")
}
return storage, nil