2018-09-14 16:07:20 +00:00
|
|
|
import * as plugins from './smartbucket.plugins';
|
|
|
|
|
|
|
|
export interface ISmartBucketConfig {
|
2019-10-14 18:55:07 +00:00
|
|
|
provider: 'digitalocean';
|
2018-09-14 16:07:20 +00:00
|
|
|
projectId: string;
|
|
|
|
bucketName: string;
|
2019-07-07 08:48:24 +00:00
|
|
|
}
|
2018-09-14 16:07:20 +00:00
|
|
|
|
|
|
|
export class SmartBucket {
|
2019-10-14 18:55:07 +00:00
|
|
|
public config: ISmartBucketConfig;
|
|
|
|
|
2019-10-14 21:53:41 +00:00
|
|
|
public minioClient = new plugins.minio.Client({
|
|
|
|
endPoint: 'ams3.digitaloceanspaces.com',
|
|
|
|
port: 9000,
|
|
|
|
useSSL: true,
|
|
|
|
accessKey: 'Q3AM3UQ867SPQQA43P2F',
|
|
|
|
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
|
|
|
|
});
|
|
|
|
|
2018-09-14 16:07:20 +00:00
|
|
|
/**
|
|
|
|
* the constructor of SmartBucket
|
|
|
|
*/
|
|
|
|
constructor(configArg: ISmartBucketConfig) {
|
|
|
|
this.config = configArg;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* initializes the Smartbucket
|
|
|
|
*/
|
2019-10-14 21:53:41 +00:00
|
|
|
public async init() {
|
|
|
|
|
|
|
|
}
|
2018-09-14 16:07:20 +00:00
|
|
|
}
|