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

MethodReturn TypeDescription
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

ParameterTypeDescription
codeDetailsIFluidCodeDetails

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

ParameterTypeDescription
snapshotstring

Returns

Return type: Promise<IContainer>