From: Thomas Müller Date: Thu, 3 Apr 2014 14:57:26 +0000 (+0200) Subject: Update backends and their configurations X-Git-Tag: v7.0.0alpha2~476^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0ebc1dfb1108b7cbe0fa134def00aa6ce0066b3;p=nextcloud-server.git Update backends and their configurations --- diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php index f49d2973234..0017b22caad 100644 --- a/apps/files_external/appinfo/app.php +++ b/apps/files_external/appinfo/app.php @@ -44,12 +44,25 @@ OC_Mount_Config::registerBackend('\OC\Files\Storage\AmazonS3', array( 'bucket' => 'Bucket'), 'has_dependencies' => true)); +OC_Mount_Config::registerBackend('\OC\Files\Storage\AmazonS3', array( + 'backend' => 'Amazon S3 and compliant', + 'configuration' => array( + 'key' => 'Access Key', + 'secret' => '*Secret Key', + 'bucket' => 'Bucket', + 'hostname' => '&Hostname (optional)', + 'port' => '&Port (optional)', + 'region' => '&Region (optional)', + 'use_ssl' => '!Enable SSL', + 'use_path_style' => '!Enable Path Style'), + 'has_dependencies' => true)); + OC_Mount_Config::registerBackend('\OC\Files\Storage\Dropbox', array( 'backend' => 'Dropbox', 'configuration' => array( 'configured' => '#configured', 'app_key' => 'App key', - 'app_secret' => 'App secret', + 'app_secret' => '*App secret', 'token' => '#token', 'token_secret' => '#token_secret'), 'custom' => 'dropbox', @@ -69,40 +82,69 @@ OC_Mount_Config::registerBackend('\OC\Files\Storage\Google', array( 'backend' => 'Google Drive', 'configuration' => array( 'configured' => '#configured', - 'token' => '#token', - 'token_secret' => '#token secret'), + 'client_id' => 'Client ID', + 'client_secret' => '*Client secret', + 'token' => '#token'), 'custom' => 'google', 'has_dependencies' => true)); -OC_Mount_Config::registerBackend('\OC\Files\Storage\SWIFT', array( - 'backend' => 'OpenStack Swift', + +OC_Mount_Config::registerBackend('\OC\Files\Storage\Swift', array( + 'backend' => 'OpenStack Object Storage', 'configuration' => array( - 'host' => 'URL', - 'user' => 'Username', - 'token' => '*Token', - 'root' => '&Root', - 'secure' => '!Secure ftps://'), + 'user' => 'Username (required)', + 'bucket' => 'Bucket (required)', + 'region' => '&Region (optional for OpenStack Object Storage)', + 'key' => '*API Key (required for Rackspace Cloud Files)', + 'tenant' => '&Tenantname (required for OpenStack Object Storage)', + 'password' => '*Password (required for OpenStack Object Storage)', + 'service_name' => '&Service Name (required for OpenStack Object Storage)', + 'url' => '&URL of identity endpoint (required for OpenStack Object Storage)', + 'timeout' => '&Timeout of HTTP requests in seconds (optional)', + ), 'has_dependencies' => true)); -OC_Mount_Config::registerBackend('\OC\Files\Storage\SMB', array( - 'backend' => 'SMB / CIFS', + +if (!OC_Util::runningOnWindows()) { + OC_Mount_Config::registerBackend('\OC\Files\Storage\SMB', array( + 'backend' => 'SMB / CIFS', + 'configuration' => array( + 'host' => 'URL', + 'user' => 'Username', + 'password' => '*Password', + 'share' => 'Share', + 'root' => '&Root'), + 'has_dependencies' => true)); + + OC_Mount_Config::registerBackend('\OC\Files\Storage\SMB_OC', array( + 'backend' => 'SMB / CIFS using OC login', + 'configuration' => array( + 'host' => 'URL', + 'username_as_share' => '!Username as share', + 'share' => '&Share', + 'root' => '&Root'), + 'has_dependencies' => true)); +} + +OC_Mount_Config::registerBackend('\OC\Files\Storage\DAV', array( + 'backend' => 'WebDAV', 'configuration' => array( 'host' => 'URL', 'user' => 'Username', 'password' => '*Password', - 'share' => 'Share', - 'root' => '&Root'), + 'root' => '&Root', + 'secure' => '!Secure https://'), 'has_dependencies' => true)); -OC_Mount_Config::registerBackend('\OC\Files\Storage\DAV', array( - 'backend' => 'ownCloud / WebDAV', +OC_Mount_Config::registerBackend('\OC\Files\Storage\OwnCloud', array( + 'backend' => 'ownCloud', 'configuration' => array( 'host' => 'URL', 'user' => 'Username', 'password' => '*Password', - 'root' => '&Root', - 'secure' => '!Secure https://'), - 'has_dependencies' => true)); + 'root' => '&Remote subfolder', + 'secure' => '!Secure https://'))); + OC_Mount_Config::registerBackend('\OC\Files\Storage\SFTP', array( 'backend' => 'SFTP', @@ -111,3 +153,14 @@ OC_Mount_Config::registerBackend('\OC\Files\Storage\SFTP', array( 'user' => 'Username', 'password' => '*Password', 'root' => '&Root'))); + +OC_Mount_Config::registerBackend('\OC\Files\Storage\iRODS', array( + 'backend' => 'iRODS', + 'configuration' => array( + 'host' => 'Host', + 'port' => 'Port', + 'use_logon_credentials' => '!Use ownCloud login', + 'user' => 'Username', + 'password' => '*Password', + 'auth_mode' => 'Authentication Mode', + 'zone' => 'Zone')));