registry

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewFuncs = map[string]NewFunc{}

NewFuncs is a map containing all the registered storage backends.

Functions

func Register

func Register(name string, f NewFunc)

Register registers a new storage backend function. Not safe for concurrent use. Safe for use from package init.

Types

type NewFunc

type NewFunc func(map[string]interface{}) (storage.FS, error)

NewFunc is the function that storage implementations should register at init time.

Jump to

Keyboard shortcuts

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