func Get(name string, options map[string]interface{}, storageDriver storagedriver.StorageDriver) (storagedriver.StorageDriver, error)
Get constructs a StorageMiddleware with the given options using the named backend.
func Register(name string, initFunc InitFunc) error
Register is used to register an InitFunc for a StorageMiddleware backend with the given name.
InitFunc is the type of a StorageMiddleware factory function and is used to register the constructor for different StorageMiddleware backends.
type InitFunc func(storageDriver storagedriver.StorageDriver, options map[string]interface{}) (storagedriver.StorageDriver, error)
Name | Synopsis |
---|---|
.. | |
cloudfront | Package middleware - cloudfront wrapper for storage libs N.B. currently only works with S3, not arbitrary sites |
redirect |