registry

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvironStorageProviders

func EnvironStorageProviders(envType string) ([]storage.ProviderType, bool)

EnvironStorageProviders returns storage provider types for the specified environment.

func IsProviderSupported

func IsProviderSupported(envType string, providerType storage.ProviderType) bool

Returns true is provider is supported for the environment.

func RegisterEnvironStorageProviders

func RegisterEnvironStorageProviders(envType string, providers ...storage.ProviderType)

RegisterEnvironStorageProviders records which storage provider types are valid for an environment. This is to be called from the environ provider's init(). Also registered will be provider types common to all environments.

func RegisterProvider

func RegisterProvider(providerType storage.ProviderType, p storage.Provider)

RegisterProvider registers a new storage provider of the given type.

If the provider is nil, then any previously registered provider with the same type will be unregistered; this is purely available for testing.

func ResetEnvironStorageProviders

func ResetEnvironStorageProviders(envType string)

ResetEnvironStorageProviders clears out the supported storage providers for the specified environment type. This is provided for testing purposes.

func StorageProvider

func StorageProvider(providerType storage.ProviderType) (storage.Provider, error)

StorageProvider returns the previously registered provider with the given type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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