storage

package
v0.0.0-...-c5633df Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrStorageRegistryDying is used to indicate to *third parties* that the
	// storage registry worker is dying, instead of catacomb.ErrDying, which is
	// unsuitable for propagating inter-worker.
	// This error indicates to consuming workers that their dependency has
	// become unmet and a restart by the dependency engine is imminent.
	ErrStorageRegistryDying = errors.ConstError("storage registry worker is dying")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstModelStorageRegistry

type ConstModelStorageRegistry func() storage.ProviderRegistry

ConstModelStorageRegistry is a function that returns the same storage registry every time it is called.

func (ConstModelStorageRegistry) GetStorageRegistry

GetStorageRegistry returns a storage registry for the given namespace.

type ModelStorageRegistryGetter

type ModelStorageRegistryGetter interface {
	// GetStorageRegistry returns a storage registry for the given namespace.
	GetStorageRegistry(context.Context) (storage.ProviderRegistry, error)
}

ModelStorageRegistryGetter is the interface that is used to get a storage registry.

type StorageRegistryGetter

type StorageRegistryGetter interface {
	// GetStorageRegistry returns a storage registry for the given namespace.
	GetStorageRegistry(context.Context, string) (storage.ProviderRegistry, error)
}

StorageRegistryGetter is the interface that is used to get a storage registry.

Jump to

Keyboard shortcuts

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