reduct-js
Version:
ReductStore Client SDK for Javascript/NodeJS/Typescript
37 lines (36 loc) • 971 B
TypeScript
export declare enum QuotaType {
NONE = 0,
FIFO = 1,
HARD = 2
}
/**
* Represents bucket settings
*/
export declare class BucketSettings {
/**
* Maximal block size in a block
*/
readonly maxBlockSize?: bigint;
/**
* Maximum number of records in a block
*/
readonly maxBlockRecords?: bigint;
/**
* Quota type. The storage supports two types:
* NONE: A bucket will consume the whole free disk space.
* FIFO: A bucket removes the oldest block of some entry, when it reaches the quota limit.
*/
readonly quotaType?: QuotaType;
/**
* Quota size in bytes
*/
readonly quotaSize?: bigint;
static parse(data: OriginalBucketSettings): BucketSettings;
static serialize(settings: BucketSettings): OriginalBucketSettings;
}
export type OriginalBucketSettings = {
quota_size?: bigint;
max_block_size?: bigint;
quota_type?: string;
max_block_records?: bigint;
};