Skip to main content
Version: v1

IHostLoader Interface

The Host's view of the Loader, used for loading Containers

Signature

export interface IHostLoader extends ILoader

Extends: ILoader

Methods

Method Return Type Description
createDetachedContainer(codeDetails) Promise<IContainer> Creates a new container using the specified chaincode but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.
rehydrateDetachedContainerFromSnapshot(snapshot) Promise<IContainer> Creates a new container using the specified snapshot but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Method Details

createDetachedContainer

Creates a new container using the specified chaincode but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Signature

createDetachedContainer(codeDetails: IFluidCodeDetails): Promise<IContainer>;

Parameters

Parameter Type Description
codeDetails IFluidCodeDetails

Returns

Return type: Promise<IContainer>

rehydrateDetachedContainerFromSnapshot

Creates a new container using the specified snapshot but in an unattached state. While unattached all updates will only be local until the user explicitly attaches the container to a service provider.

Signature

rehydrateDetachedContainerFromSnapshot(snapshot: string): Promise<IContainer>;

Parameters

Parameter Type Description
snapshot string

Returns

Return type: Promise<IContainer>