@fluidframework/container-definitions Package
Packages > @fluidframework/container-definitions
Enumerations
Enumeration | Description |
---|---|
AttachState | |
BindState | |
ContainerErrorType | Different error types the Container may report out to the Host |
LoaderHeader | Accepted header keys for requests coming to the Loader |
Functions
Function | Description |
---|---|
getFileBlobType(mimeType) | Convert from mimeType to disctiminator between different IGenericBlob cases |
Interfaces
Interface | Description |
---|---|
IAudience | Audience represents all clients connected to the op stream, both read-only and read/write. |
IBaseBlob | Properties common to all Blobs |
IBlobManager | Provides access to blobs in storage |
ICodeAllowList | Code AllowListing Interface |
ICodeLoader | Code loading interface |
IConnectionDetails | Contract representing the result of a newly established connection to the server for syncing deltas |
IContainer | The Host's view of the Container and its connection to storage |
IContainerContext | The ContainerContext is a proxy standing between the Container and the Container's IRuntime. This allows the Container to terminate the connection to the IRuntime.Specifically, there is an event on Container, onContextChanged, which mean a new code proposal has been loaded, so the old IRuntime is no longer valid, as its ContainerContext has been revoked, and the Container has created a new ContainerContext. |
IContainerEvents | Events emitted by the Container "upwards" to the Loader and Host |
IDataBlob | Blob containing unspecified data |
IDeltaHandlerStrategy | Interface used to define a strategy for handling incoming delta messages |
IDeltaManager | Manages the transmission of ops between the runtime and storage. |
IDeltaManagerEvents | Events emitted by the Delta Manager |
IDeltaQueue | Queue of ops to be sent to or processed from storage |
IDeltaQueueEvents | Events emmitted by a Delta Queue |
IDeltaSender | Contract supporting delivery of outbound messages to the server |
IErrorBase | Base interface for all errors and warnings at container level |
IFluidCodeDetails | Data structure used to describe the code to load on the Fluid document |
IFluidCodeResolver | Fluid code resolvers take a Fluid code details, and resolve the full Fluid package including absolute urls for the browser file entries. The Fluid code resolver is coupled to a specific cdn and knows how to resolve the code detail for loading from that cdn. This include resolving to the most recent version of package that supports the provided code details. |
IFluidModule | |
IFluidPackage | Fluid-specific properties expected on a package to be loaded by the Fluid code loader |
IFluidTokenProvider | |
IGenericError | Generic wrapper for an unrecognized/uncategorized error object |
IImageBlob | Blob containing image data |
ILoader | The Host's view of the Loader, used for loading Containers |
ILoaderHeader | Set of Request Headers that the Loader understands and may inspect or modify |
IPackage | Typescript interface definition for fields within a npm module's package.json. |
IPackageConfig | Package manager configuration. Provides a key value mapping of config values |
IPerson | Person definition in a npm script |
IProvideDeltaSender | |
IProvideFluidTokenProvider | |
IProvideRuntimeFactory | |
IProxyLoaderFactory | Abstraction layer to support different Loaders in different Node execution contexts |
IResolvedFluidCodeDetails | The interface returned from a IFluidCodeResolver which represents IFluidCodeDetails that have been resolved and are ready to load |
IRuntime | The IRuntime represents an instantiation of a code package within a Container. Primarily held by the ContainerContext to be able to interact with the running instance of the Container. |
IRuntimeFactory | Exported module definitionProvides the entry point for the ContainerContext to load the proper IRuntime to start up the running instance of the Container. |
IRuntimeState | Represents the data that will be preserved from the previous IRuntime during a context reload. |
IThrottlingWarning | Warning emitted when requests to storage are being throttled |
IVideoBlob | Blob containing video data |
Variables
Variable | Description |
---|---|
IDeltaSender | |
IFluidTokenProvider | |
IRuntimeFactory | |
isFluidPackage | Check if the package.json defines a Fluid module, which requires a fluid entry |
Type Aliases
Type Alias | Description |
---|---|
ContainerWarning | Represents warnings raised on container. |
ICriticalContainerError | Represents errors raised on container. |
IGenericBlob | Union type of all possible types of Blobs |
Enumerations
AttachState enum
Signature:
export declare enum AttachState
Enumeration Members
Member | Value | Description |
---|---|---|
Attached | "Attached" |
|
Attaching | "Attaching" |
|
Detached | "Detached" |
BindState enum
Signature:
export declare enum BindState
Enumeration Members
Member | Value | Description |
---|---|---|
Binding | "Binding" |
|
Bound | "Bound" |
|
NotBound | "NotBound" |
ContainerErrorType enum
Different error types the Container may report out to the Host
Signature:
export declare enum ContainerErrorType
Enumeration Members
Member | Value | Description |
---|---|---|
genericError | "genericError" |
Some error, most likely an exception caught by runtime and propagated to container as critical error |
throttlingError | "throttlingError" |
Throttling error from server. Server is busy and is asking not to reconnect for some time |
LoaderHeader enum
Accepted header keys for requests coming to the Loader
Signature:
export declare enum LoaderHeader
Enumeration Members
Member | Value | Description |
---|---|---|
cache | "fluid-cache" |
Use cache for this container. If true, we will load a container from cache if one with the same id/version exists or create a new container and cache it if it does not. If false, always load a new container and don't cache it. Currently only used to opt-out of caching, as it will default to true but will be false (even if specified as true) if the reconnect header is false or the pause header is true, since these containers should not be cached. |
clientDetails | "fluid-client-details" |
|
executionContext | "execution-context" |
|
pause | "pause" |
Start the container in a paused, unconnected state. Defaults to false |
reconnect | "fluid-reconnect" |
|
sequenceNumber | "fluid-sequence-number" |
|
version | "version" |
One of the following: null or "null": use ops, no snapshots undefined: fetch latest snapshot otherwise, version sha to load snapshot |
Functions
getFileBlobType
Convert from mimeType to disctiminator between different IGenericBlob cases
Signature:
export declare function getFileBlobType(mimeType: string): "generic" | "image" | "video" | "text";
Parameters
Parameter | Type | Description |
---|---|---|
mimeType | string |
Returns:
“generic” | “image” | “video” | “text”
Variables
IDeltaSender
Signature:
IDeltaSender: keyof IProvideDeltaSender
IFluidTokenProvider
Signature:
IFluidTokenProvider: keyof IProvideFluidTokenProvider
IRuntimeFactory
Signature:
IRuntimeFactory: keyof IProvideRuntimeFactory
isFluidPackage
Check if the package.json defines a Fluid module, which requires a fluid
entry
Signature:
isFluidPackage: (pkg: IPackage) => pkg is IFluidPackage
Type Aliases
ContainerWarning
Represents warnings raised on container.
Signature:
export declare type ContainerWarning = IErrorBase;
ICriticalContainerError
Represents errors raised on container.
Signature:
export declare type ICriticalContainerError = IErrorBase;
IGenericBlob
Union type of all possible types of Blobs
Signature:
export declare type IGenericBlob = IDataBlob | IImageBlob | IVideoBlob;