@fluidframework/file-driver Package
Packages > @fluidframework/file-driver
Classes
Class | Description |
---|---|
FileDeltaStorageService | Provides access to the underlying delta storage on the local file storage for file driver. |
FileDocumentService | The DocumentService manages the different endpoints for connecting to underlying storage for file document service. |
FileDocumentServiceFactory | Factory for creating the file document service. Use this if you want to use the local file storage as underlying storage. |
FluidFetchReader | Document storage service for the file driver. |
Replayer | Replay service used to play ops using the delta connection. |
ReplayFileDeltaConnection |
Interfaces
Interface | Description |
---|---|
ISnapshotWriterStorage |
Variables
Variable | Description |
---|---|
FileSnapshotWriterClassFactory | |
FileStorageDocumentName | |
FluidFetchReaderFileSnapshotWriter |
Type Aliases
Type Alias | Description |
---|---|
ReaderConstructor |
Variables
FileSnapshotWriterClassFactory
Signature:
FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
new (...args: any[]): {
blobsWriter: Map<string, ArrayBufferLike>;
commitsWriter: {
[key: string]: api.ITree;
};
latestWriterTree?: api.ISnapshotTree | undefined;
docId?: string | undefined;
reset(): void;
onCommitHandler(dataStoreName: string, tree: api.ITree): void;
onSnapshotHandler(snapshot: IFileSnapshot): void;
readBlob(sha: string): Promise<ArrayBufferLike>;
getVersions(versionId: string, count: number): Promise<api.IVersion[]>;
getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>;
write(tree: api.ITree, parents: string[], message: string, ref: string): Promise<api.IVersion>;
writeOutFullSnapshot(tree: api.ITree): Promise<void>;
sortTree(tree: api.ITree): void;
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
repositoryUrl: string;
readonly policies?: IDocumentStorageServicePolicies | undefined;
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
};
} & TBase
FileStorageDocumentName
Signature:
FileStorageDocumentName = "FileStorageDocId"
FluidFetchReaderFileSnapshotWriter
Signature:
FluidFetchReaderFileSnapshotWriter: {
new (...args: any[]): {
blobsWriter: Map<string, ArrayBufferLike>;
commitsWriter: {
[key: string]: api.ITree;
};
latestWriterTree?: api.ISnapshotTree | undefined;
docId?: string | undefined;
reset(): void;
onCommitHandler(dataStoreName: string, tree: api.ITree): void;
onSnapshotHandler(snapshot: IFileSnapshot): void;
readBlob(sha: string): Promise<ArrayBufferLike>;
getVersions(versionId: string, count: number): Promise<api.IVersion[]>;
getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>;
write(tree: api.ITree, parents: string[], message: string, ref: string): Promise<api.IVersion>;
writeOutFullSnapshot(tree: api.ITree): Promise<void>;
sortTree(tree: api.ITree): void;
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
repositoryUrl: string;
readonly policies?: IDocumentStorageServicePolicies | undefined;
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
};
} & typeof FluidFetchReader
Type Aliases
ReaderConstructor
Signature:
export declare type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;