package registry
import "github.com/docker/distribution/registry"
Index ¶
- type App
- func NewApp(configuration configuration.Configuration) *App
- func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Context
Types ¶
type App ¶
type App struct { Config configuration.Configuration // contains filtered or unexported fields }
App is a global registry application object. Shared resources can be placed on this object that will be accessible from all requests. Any writable fields should be protected.
func NewApp ¶
func NewApp(configuration configuration.Configuration) *App
NewApp takes a configuration and returns a configured app, ready to serve requests. The app only implements ServeHTTP and can be wrapped in other handlers accordingly.
func (*App) ServeHTTP ¶
func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Context ¶
type Context struct { // App points to the application structure that created this context. *App // Repository is the repository for the current request. All requests // should be scoped to a single repository. This field may be nil. Repository storage.Repository // Errors is a collection of errors encountered during the request to be // returned to the client API. If errors are added to the collection, the // handler *must not* start the response via http.ResponseWriter. Errors v2.Errors // contains filtered or unexported fields }
Context should contain the request specific context for use in across handlers. Resources that don't need to be shared across handlers should not be on this object.
Source Files ¶
app.go context.go helpers.go hmac.go images.go layer.go layerupload.go tags.go util.go
- Version
- v2.0.0-alpha.1+incompatible
- Published
- Jan 28, 2015
- Platform
- js/wasm
- Imports
- 23 packages
- Last checked
- 12 minutes ago –
Tools for package owners.