registry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewObjectBackends []func() backends.ObjectStorageBackend
	NewEventBackends  []func() backends.EventStorageBackend
)

Functions

func AddEventBackend

func AddEventBackend(eventBackend backends.EventStorageBackend)

func AddObjectBackend

func AddObjectBackend(objBackend backends.ObjectStorageBackend)

func GetEventBackend

func GetEventBackend(name string) backends.EventStorageBackend

func GetObjectBackend

func GetObjectBackend(name string) backends.ObjectStorageBackend

func RegisterStorageBackends

func RegisterStorageBackends()

func RemoveEventBackend

func RemoveEventBackend(name string)

func RemoveObjectBackend

func RemoveObjectBackend(name string)

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewBackendRegistry

func NewBackendRegistry() *Registry

func (*Registry) AddEventBackend

func (r *Registry) AddEventBackend(eventBackend backends.EventStorageBackend)

func (*Registry) AddObjectBackend

func (r *Registry) AddObjectBackend(objBackend backends.ObjectStorageBackend)

func (*Registry) GetEventBackend

func (r *Registry) GetEventBackend(name string) backends.EventStorageBackend

func (*Registry) GetObjectBackend

func (r *Registry) GetObjectBackend(name string) backends.ObjectStorageBackend

func (*Registry) RemoveEventBackend

func (r *Registry) RemoveEventBackend(name string)

func (*Registry) RemoveObjectBackend

func (r *Registry) RemoveObjectBackend(name string)

Jump to

Keyboard shortcuts

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