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 ¶
func (c ConstModelStorageRegistry) GetStorageRegistry(ctx context.Context) (storage.ProviderRegistry, error)
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.
Click to show internal directories.
Click to hide internal directories.