2019-09-27 15:41:04 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
import { BucketCursor, BucketPage, BucketsApi } from '@/types/buckets';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mock for BucketsApi
|
|
|
|
*/
|
|
|
|
export class BucketsMock implements BucketsApi {
|
2021-08-05 12:07:45 +01:00
|
|
|
get(_projectId: string, _before: Date, _cursor: BucketCursor): Promise<BucketPage> {
|
2020-03-18 17:07:29 +00:00
|
|
|
return Promise.resolve(new BucketPage());
|
2019-09-27 15:41:04 +01:00
|
|
|
}
|
2020-11-13 11:41:35 +00:00
|
|
|
|
2021-08-05 12:07:45 +01:00
|
|
|
getAllBucketNames(_projectId: string): Promise<string[]> {
|
2020-11-13 11:41:35 +00:00
|
|
|
return Promise.resolve(['test']);
|
|
|
|
}
|
2019-09-27 15:41:04 +01:00
|
|
|
}
|