driverhttp

package
v0.0.0-...-8a2e51b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 36

Documentation

Index

Constants

View Source
const (
	StatusInternalServerError = http.StatusOK
	StatusOK                  = http.StatusOK
)

At present, Docker ignores HTTP status codes, and requires errors to be returned in the response body. To comply with this API, we will return 200 in all cases

Variables

This section is empty.

Functions

func EnvWithContext

func EnvWithContext(ctx context.Context, env dockerdriver.Env) dockerdriver.Env

func EnvWithLogger

func EnvWithLogger(logger lager.Logger, env dockerdriver.Env) dockerdriver.Env

func EnvWithMonitor

func EnvWithMonitor(logger lager.Logger, ctx context.Context, res http.ResponseWriter) dockerdriver.Env

func NewHandler

func NewHandler(logger lager.Logger, client dockerdriver.Driver) (http.Handler, error)

func NewHttpDriverEnv

func NewHttpDriverEnv(logger lager.Logger, ctx context.Context) dockerdriver.Env

func NewRemoteClient

func NewRemoteClient(url string, tls *dockerdriver.TLSConfig) (*remoteClient, error)

func NewRemoteClientWithClient

func NewRemoteClientWithClient(url string, tls *dockerdriver.TLSConfig, client http_wrap.Client, clock clock.Clock) *remoteClient

Types

type RemoteClientFactory

type RemoteClientFactory interface {
	NewRemoteClient(url string, tls *dockerdriver.TLSConfig) (dockerdriver.Driver, error)
}

func NewRemoteClientFactory

func NewRemoteClientFactory() RemoteClientFactory

Jump to

Keyboard shortcuts

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