package storagemiddleware
import "github.com/docker/distribution/registry/storage/driver/middleware"
Index ¶
- func Get(name string, options map[string]interface{}, storageDriver storagedriver.StorageDriver) (storagedriver.StorageDriver, error)
- func Register(name string, initFunc InitFunc) error
- type InitFunc
Functions ¶
func Get ¶
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 ¶
Register is used to register an InitFunc for a StorageMiddleware backend with the given name.
Types ¶
type InitFunc ¶
type InitFunc func(storageDriver storagedriver.StorageDriver, options map[string]interface{}) (storagedriver.StorageDriver, error)
InitFunc is the type of a StorageMiddleware factory function and is used to register the constructor for different StorageMiddleware backends.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
registry/storage/driver/middleware/cloudfront | Package middleware - cloudfront wrapper for storage libs N.B. currently only works with S3, not arbitrary sites |
- Version
- v2.0.0+incompatible
- Published
- Apr 16, 2015
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 10 hours ago –
Tools for package owners.