UNPKG

761 BTypeScriptView Raw
1import { Monitor } from '@neo-one/monitor-esnext-esm';
2import { Environment } from '../types';
3import { Provider } from './Provider';
4export interface Options {
5 readonly projectID: string;
6 readonly bucket: string;
7 readonly prefix: string;
8 readonly keepBackupCount?: number;
9 readonly maxSizeBytes?: number;
10}
11export declare class GCloudProvider extends Provider {
12 private readonly environment;
13 private readonly options;
14 constructor({ environment, options }: {
15 readonly environment: Environment;
16 readonly options: Options;
17 });
18 canRestore(): Promise<boolean>;
19 restore(monitorIn: Monitor): Promise<void>;
20 backup(monitorIn: Monitor): Promise<void>;
21 private getLatestTime;
22 private getStorage;
23}