smartbucket/ts/smartbucket.classes.smartbucket.ts
2019-10-14 23:53:41 +02:00

34 lines
666 B
TypeScript

import * as plugins from './smartbucket.plugins';
export interface ISmartBucketConfig {
provider: 'digitalocean';
projectId: string;
bucketName: string;
}
export class SmartBucket {
public config: ISmartBucketConfig;
public minioClient = new plugins.minio.Client({
endPoint: 'ams3.digitaloceanspaces.com',
port: 9000,
useSSL: true,
accessKey: 'Q3AM3UQ867SPQQA43P2F',
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
});
/**
* the constructor of SmartBucket
*/
constructor(configArg: ISmartBucketConfig) {
this.config = configArg;
}
/**
* initializes the Smartbucket
*/
public async init() {
}
}