2018-02-20 15:57:34 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Module dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Public node modules.
|
|
|
|
const _ = require('lodash');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
provider: 's3',
|
|
|
|
name: 'Amazon Web Service S3',
|
|
|
|
auth: {
|
|
|
|
public: {
|
|
|
|
label: 'Access API Token',
|
|
|
|
type: 'text'
|
|
|
|
},
|
|
|
|
private: {
|
|
|
|
label: 'Secret Access Token',
|
|
|
|
type: 'text'
|
|
|
|
},
|
|
|
|
region: {
|
|
|
|
label: 'Region',
|
|
|
|
type: 'enum',
|
|
|
|
values: [
|
|
|
|
'us-east-1',
|
|
|
|
'us-east-2',
|
|
|
|
'us-west-1',
|
|
|
|
'us-west-2',
|
|
|
|
'ca-central-1',
|
|
|
|
'ap-south-1',
|
|
|
|
'ap-northeast-1',
|
|
|
|
'ap-northeast-2',
|
|
|
|
'ap-northeast-3',
|
|
|
|
'ap-southeast-1',
|
|
|
|
'ap-southeast-2',
|
|
|
|
'cn-north-1',
|
|
|
|
'cn-northwest-1',
|
|
|
|
'eu-central-1',
|
|
|
|
'eu-west-1',
|
|
|
|
'eu-west-2',
|
|
|
|
'eu-west-3',
|
|
|
|
'sa-east-1'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
bucket: {
|
|
|
|
label: 'Bucket',
|
|
|
|
type: 'text'
|
|
|
|
}
|
|
|
|
},
|
2018-02-20 17:10:25 +01:00
|
|
|
init: (strapi, config) => {
|
|
|
|
return {
|
2018-02-20 15:57:34 +01:00
|
|
|
upload: (buffers) => {
|
|
|
|
|
|
|
|
},
|
|
|
|
delete: () => {
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|