manifest

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the OCI manifest endpoint. See: https://github.com/opencontainers/distribution-spec/blob/master/spec.md#manifest

func NewServer

func NewServer(options ...ServerOption) (*Server, error)

NewServer returns a fully initialized Server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ServerOption

type ServerOption func(*Server)

ServerOption applies a parameter to a Server.

func OptionMetricsCollector

func OptionMetricsCollector(collector *metrics.Collector) ServerOption

OptionMetricsCollector sets the http.Handler to use for the metrics endpoint.

func OptionUndefinedHandler

func OptionUndefinedHandler(handler http.Handler) ServerOption

OptionUndefinedHandler 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