Skip to main content

RegisterStowKind

Registers a new kind of stow store.

def RegisterStowKind(
kind: string,
f: func(string) DataReference
) - > error

Registers a new kind of stow store. This function is used to extend the system with custom storage types.

Parameters

NameTypeDescription
kindstringThe unique identifier for the new stow store kind.
ffunc(string) DataReferenceThe function that creates a DataReference for the specified kind. This function takes a string (likely a path or identifier) and returns a DataReference object.

Returns

TypeDescription
errorAn error if the kind is already registered, otherwise nil.