blob

package
v0.0.0-...-0a0144f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

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.

Directories

Path Synopsis
internal
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL