Documentation ¶
Index ¶
- func EnvironStorageProviders(envType string) ([]storage.ProviderType, bool)
- func IsProviderSupported(envType string, providerType storage.ProviderType) bool
- func RegisterEnvironStorageProviders(envType string, providers ...storage.ProviderType)
- func RegisterProvider(providerType storage.ProviderType, p storage.Provider)
- func StorageProvider(providerType storage.ProviderType) (storage.Provider, error)
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 StorageProvider ¶
func StorageProvider(providerType storage.ProviderType) (storage.Provider, error)
StorageProvider returns the previously registered provider with the given type.
Types ¶
This section is empty.