Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe context for the operation, allowing for cancellation and timeouts.
cfg*ConfigThe new configuration to apply to the DataStore.

Returns

TypeDescription
errorAn error if the configuration refresh fails, otherwise nil.