Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
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.
type Config ¶
type Config struct {
HttpHost string
HttpRelativeURLs bool
HttpSecret string
HttpPrefix string
Router *mux.Router // main application router, configured with dispatchers
Driver storagedriver.StorageDriver // driver maintains the app global storage driver instance.
RepoRemover distribution.RepositoryRemover // repoRemover provides ability to delete repos
AccessController auth.AccessController // main access controller for application
PrometheusEnabled bool
}
type Context ¶
type Context struct {
// App points to the application structure that created this context.
*App
context.Context
// Repository is the repository for the current request. All requests
// should be scoped to a single repository. This field may be nil.
Repository distribution.Repository
// RepositoryRemover provides method to delete a repository
RepositoryRemover distribution.RepositoryRemover
// 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 errcode.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.
Click to show internal directories.
Click to hide internal directories.