sharedStorage.ts 853 Bytes
Newer Older
1
2
3
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

4
import { SharedStorageConfig } from 'common/experimentConfig';
5
6
7
8
9
10
import { StorageService } from './storageService'

export type SharedStorageType = 'NFS' | 'AzureBlob'
export type LocalMountedType = 'usermount' | 'nnimount' | 'nomount'

export abstract class SharedStorageService {
11
    public abstract config(config: SharedStorageConfig): Promise<void>;
12
13
14
15
    public abstract get canLocalMounted(): boolean;
    public abstract get storageService(): StorageService;
    public abstract get localMountCommand(): string;
    public abstract get remoteMountCommand(): string;
16
    public abstract get remoteUmountCommand(): string;
17
18
    public abstract get localWorkingRoot(): string;
    public abstract get remoteWorkingRoot(): string;
19
    public abstract cleanUp(): Promise<void>;
20
}