registry

package
v0.0.0-...-e91ad15 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AddActionBackend

func AddActionBackend(actionBackend backends.ObjectClientBackend)

func AddEventBackend

func AddEventBackend(eventBackend backends.EventStorageBackend)

func AddObjectBackend

func AddObjectBackend(objBackend backends.ObjectStorageBackend)

func GetActionBackend

func GetActionBackend(name string) backends.ObjectClientBackend

func GetEventBackend

func GetEventBackend(name string) backends.EventStorageBackend

func GetObjectBackend

func GetObjectBackend(name string) backends.ObjectStorageBackend

func RegisterStorageBackends

func RegisterStorageBackends()

func RemoveActionBackend

func RemoveActionBackend(name string)

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) AddActionBackend

func (r *Registry) AddActionBackend(actionBackend backends.ObjectClientBackend)

func (*Registry) AddEventBackend

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

func (*Registry) AddObjectBackend

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

func (*Registry) GetActionBackend

func (r *Registry) GetActionBackend(name string) backends.ObjectClientBackend

func (*Registry) GetEventBackend

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

func (*Registry) GetObjectBackend

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

func (*Registry) RemoveActionBackend

func (r *Registry) RemoveActionBackend(name string)

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