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
| Name | Type | Description |
|---|---|---|
| kind | string | The unique identifier for the new stow store kind. |
| f | func(string) DataReference | The 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
| Type | Description |
|---|---|
error | An error if the kind is already registered, otherwise nil. |