DataStore
This class is a simplified interface for accessing and storing data in one of the Cloud stores. It abstracts multi-cloud support, currently relying on Stow for this functionality.
Methods
RefreshConfig()
@classmethod
def RefreshConfig(
ctx: context.Context,
cfg: *Config
) - > error
Refreshes the configuration for the DataStore. This method updates the internal configuration settings, which might involve re-initializing connections or other state based on the new configuration.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, allowing for cancellation and timeouts. |
| cfg | *Config | The new configuration to apply to the DataStore. |
Returns
| Type | Description |
|---|---|
error | An error if the configuration refresh fails, otherwise nil. |