Documentation ¶
Index ¶
- type DeleteHandler
- type DeleteHandlerOption
- type DownloadHandler
- type ExistHandler
- type Router
- type RouterOption
- func OptionDownloadHandler(handler http.Handler) RouterOption
- func OptionExistHandler(handler http.Handler) RouterOption
- func OptionRemoveHandler(handler http.Handler) RouterOption
- func OptionUndefinedHandler(handler http.Handler) RouterOption
- func OptionUploadHandler(handler http.Handler) RouterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteHandler ¶
type DeleteHandler struct {
// contains filtered or unexported fields
}
DeleteHandler implements the blob deletion endpoint.
func NewDeleteHandler ¶
func NewDeleteHandler(options ...DeleteHandlerOption) (*DeleteHandler, error)
func (*DeleteHandler) ServeHTTP ¶
func (h *DeleteHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type DeleteHandlerOption ¶
type DeleteHandlerOption func(*DeleteHandler)
DeleteHandlerOption applies a parameter to a DeleteHandler.
func DeleteOptionMetrics ¶
func DeleteOptionMetrics(collector *metrics.Collector) DeleteHandlerOption
DeleteOptionMetrics sets the http.Handler to use for the metrics endpoint.
type DownloadHandler ¶
type DownloadHandler struct {
// contains filtered or unexported fields
}
DownloadHandler implements the blob download endpoint.
func (*DownloadHandler) ServeHTTP ¶
func (h *DownloadHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type ExistHandler ¶
type ExistHandler struct {
// contains filtered or unexported fields
}
ExistHandler implements the blob existence check endpoint.
func (*ExistHandler) ServeHTTP ¶
func (h *ExistHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router implements the OCI blobs endpoint. See: https://github.com/opencontainers/distribution-spec/blob/master/spec.md#blob
func NewRouter ¶
func NewRouter(options ...RouterOption) (*Router, error)
NewRouter returns a fully initialized Server.
type RouterOption ¶
type RouterOption func(*Router)
RouterOption applies a parameter to a Server.
func OptionDownloadHandler ¶
func OptionDownloadHandler(handler http.Handler) RouterOption
OptionDownloadHandler sets the http.Handler to use for the unknown endpoint.
func OptionExistHandler ¶
func OptionExistHandler(handler http.Handler) RouterOption
OptionExistHandler sets the http.Handler to use for the unknown endpoint.
func OptionRemoveHandler ¶
func OptionRemoveHandler(handler http.Handler) RouterOption
OptionRemoveHandler sets the http.Handler to use for the unknown endpoint.
func OptionUndefinedHandler ¶
func OptionUndefinedHandler(handler http.Handler) RouterOption
OptionUndefinedHandler sets the http.Handler to use for the unknown endpoint.
func OptionUploadHandler ¶
func OptionUploadHandler(handler http.Handler) RouterOption
OptionUploadHandler sets the http.Handler to use for the unknown endpoint.