Documentation
¶
Index ¶
- func Create(ctx context.Context, name string, config cmap.CustomMap) (p storageType.Plugin, err error)
- func Get(ctx context.Context, storageCfg cmap.CustomMap) (storageTY.Plugin, error)
- func Register(name string, fn CreatorFn)
- func RunImport(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, ...) error
- type CreatorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunImport ¶ added in v2.1.1
func RunImport(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, apiMap map[string]backupTY.Backup, importFunc func(apiMap map[string]backupTY.Backup, targetDir, fileType string, ignoreEmptyDir bool) error, updateRestoreApiMapFn updateRestoreApiMap) error
should be run at startup in-memory database will be empty at startup time this function checks the "storage.DoStartupImport" and performs the operation, if the database supports
Types ¶
Click to show internal directories.
Click to hide internal directories.