@artilleryio/platform-fargate
Version:
Fargate support for Artillery
1 lines • 536 B
JavaScript
const S3ObjectStore=require("./s3-object-store")["S3ObjectStore"];class ObjectStore{constructor(opts){if("aws"!==opts.backend)throw new Error("Unknown backend");this.impl=new S3ObjectStore(opts)}async get(key,bucket){return this.impl.get(key,bucket)}async put(key,body,bucket){return this.impl.put(key,body,bucket)}async del(key,bucket){return this.impl.del(key,bucket)}async list(path,bucket){return this.impl.list(path,bucket)}}function create(opts){return new ObjectStore(opts)}module.exports={ObjectStore:ObjectStore,create:create};