Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory StorageFactoryFunc)
Types ¶
type DestroyFunc ¶
type DestroyFunc func()
DestroyFunc is to destroy any resources used by the storage returned in Create() together.
func Create ¶
func Create(c storagebackend.Config) (storage.Interface, DestroyFunc, error)
Create creates a storage backend based on given config.
type StorageFactoryFunc ¶
type StorageFactoryFunc func(c storagebackend.Config) (storage.Interface, DestroyFunc, error)
Click to show internal directories.
Click to hide internal directories.