storage

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, name string, config cmap.CustomMap) (p storageType.Plugin, err error)

func Get added in v2.1.1

func Get(ctx context.Context, storageCfg cmap.CustomMap) (storageTY.Plugin, error)

Init storage service

func Register

func Register(name string, fn CreatorFn)

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

type CreatorFn

type CreatorFn func(ctx context.Context, config cmap.CustomMap) (storageType.Plugin, error)

CreatorFn func type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL