Documentation ¶
Index ¶
- Variables
- func ContainsColl(ns string) bool
- func ContainsSpecifiedColl(nss []string) bool
- func DropTMPcoll(ctx context.Context, cn *mongo.Client) error
- func GetStorage(ctx context.Context, m connect.Client, node string, l log.LogEvent) (storage.Storage, error)
- func Initialize(ctx context.Context, stg storage.Storage) error
- func IsSelective(ids []string) bool
- func MakeSelectedPred(nss []string) archive.NSFilterFn
- func NewErrorGroup(limit int) *errorGroup
- func NewNSChunkSelector() nsChunkMap
- func NewUUIDChunkSelector() uuidChunkMap
- func ParseNS(ns string) (string, string)
- func Ref[T any](v T) *T
- func Reinitialize(ctx context.Context, stg storage.Storage) error
- func RetryableWrite(stg storage.Storage, name string, data []byte) error
- func StorageFromConfig(cfg *config.StorageConf, node string, l log.LogEvent) (storage.Storage, error)
- type ChunkSelector
- type RSMapFunc
Constants ¶
This section is empty.
Variables ¶
var ErrStorageUndefined = errors.New("storage undefined")
ErrStorageUndefined is an error for undefined storage
Functions ¶
func ContainsColl ¶
ContainsColl inspects if collection is explicitly specified by name within the namespace
func ContainsSpecifiedColl ¶
ContainsSpecifiedColl inspects if any collection exists for multi-ns
func GetStorage ¶
func GetStorage(ctx context.Context, m connect.Client, node string, l log.LogEvent) (storage.Storage, error)
GetStorage reads current storage config and creates and returns respective storage.Storage object.
func Initialize ¶
Initialize write current PBM version to PBM init file.
It does not handle "file already exists" error.
func IsSelective ¶
func MakeSelectedPred ¶
func MakeSelectedPred(nss []string) archive.NSFilterFn
func NewErrorGroup ¶
func NewErrorGroup(limit int) *errorGroup
func NewNSChunkSelector ¶
func NewNSChunkSelector() nsChunkMap
func NewUUIDChunkSelector ¶
func NewUUIDChunkSelector() uuidChunkMap
func Reinitialize ¶
Reinitialize delete existing PBM init file and create new once with current PBM version.
It expects that the file exists.
func StorageFromConfig ¶
func StorageFromConfig(cfg *config.StorageConf, node string, l log.LogEvent) (storage.Storage, error)
StorageFromConfig creates and returns a storage object based on a given config and node name. Node name is used for fetching endpoint url from config for specific cluster member (node).