Skip to main content
Version: v1

@fluidframework/file-driver Package

Interfaces

InterfaceDescription
ISnapshotWriterStorage

Classes

ClassDescription
FileDeltaStorageServiceProvides access to the underlying delta storage on the local file storage for file driver.
FileDocumentServiceThe DocumentService manages the different endpoints for connecting to underlying storage for file document service.
FileDocumentServiceFactoryFactory for creating the file document service. Use this if you want to use the local file storage as underlying storage.
FluidFetchReaderDocument storage service for the file driver.
ReplayerReplay service used to play ops using the delta connection.
ReplayFileDeltaConnection

Types

TypeAliasDescription
ReaderConstructor

Variables

VariableTypeDescription
FileSnapshotWriterClassFactory<TBase extends ReaderConstructor>(Base: TBase) => { new (...args: any[]): { blobsWriter: Map<string, ArrayBufferLike>; latestWriterTree?: api.ISnapshotTree | undefined; docId?: string | undefined; reset(): void; onSnapshotHandler(snapshot: IFileSnapshot): void; readBlob(sha: string): Promise<ArrayBufferLike>; getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>; getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>; uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>; buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>; repositoryUrl: string; readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined; createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>; downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>; readonly disposed?: boolean | undefined; dispose?: ((error?: Error | undefined) => void) | undefined; }; } & TBase
FileStorageDocumentName
FluidFetchReaderFileSnapshotWriter{ new (...args: any[]): { blobsWriter: Map<string, ArrayBufferLike>; latestWriterTree?: api.ISnapshotTree | undefined; docId?: string | undefined; reset(): void; onSnapshotHandler(snapshot: IFileSnapshot): void; readBlob(sha: string): Promise<ArrayBufferLike>; getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>; getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>; uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>; buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>; repositoryUrl: string; readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined; createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>; downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>; readonly disposed?: boolean | undefined; dispose?: ((error?: Error | undefined) => void) | undefined; }; } & typeof FluidFetchReader

Variable Details

FileSnapshotWriterClassFactory

Signature

FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
new (...args: any[]): {
blobsWriter: Map<string, ArrayBufferLike>;
latestWriterTree?: api.ISnapshotTree | undefined;
docId?: string | undefined;
reset(): void;
onSnapshotHandler(snapshot: IFileSnapshot): void;
readBlob(sha: string): Promise<ArrayBufferLike>;
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>;
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
repositoryUrl: string;
readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
readonly disposed?: boolean | undefined;
dispose?: ((error?: Error | undefined) => void) | undefined;
};
} & TBase

Type: <TBase extends ReaderConstructor>(Base: TBase) => { new (...args: any[]): { blobsWriter: Map<string, ArrayBufferLike>; latestWriterTree?: api.ISnapshotTree | undefined; docId?: string | undefined; reset(): void; onSnapshotHandler(snapshot: IFileSnapshot): void; readBlob(sha: string): Promise<ArrayBufferLike>; getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>; getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>; uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>; buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>; repositoryUrl: string; readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined; createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>; downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>; readonly disposed?: boolean | undefined; dispose?: ((error?: Error | undefined) => void) | undefined; }; } & TBase

FileStorageDocumentName

Signature

FileStorageDocumentName = "FileStorageDocId"

FluidFetchReaderFileSnapshotWriter

Signature

FluidFetchReaderFileSnapshotWriter: {
new (...args: any[]): {
blobsWriter: Map<string, ArrayBufferLike>;
latestWriterTree?: api.ISnapshotTree | undefined;
docId?: string | undefined;
reset(): void;
onSnapshotHandler(snapshot: IFileSnapshot): void;
readBlob(sha: string): Promise<ArrayBufferLike>;
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>;
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
repositoryUrl: string;
readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
readonly disposed?: boolean | undefined;
dispose?: ((error?: Error | undefined) => void) | undefined;
};
} & typeof FluidFetchReader

Type: { new (...args: any[]): { blobsWriter: Map<string, ArrayBufferLike>; latestWriterTree?: api.ISnapshotTree | undefined; docId?: string | undefined; reset(): void; onSnapshotHandler(snapshot: IFileSnapshot): void; readBlob(sha: string): Promise<ArrayBufferLike>; getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>; getSnapshotTree(version?: api.IVersion | undefined): Promise<api.ISnapshotTree | null>; uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>; buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>; repositoryUrl: string; readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined; createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>; downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>; readonly disposed?: boolean | undefined; dispose?: ((error?: Error | undefined) => void) | undefined; }; } & typeof FluidFetchReader