dockerproxy

package
v0.0.0-...-805811e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 23752375

DefaultPort is the default (vsock) port we're listening on.

Variables

This section is empty.

Functions

func GetDefaultProxyEndpoint

func GetDefaultProxyEndpoint() (string, error)

func RegisterRequestMunger

func RegisterRequestMunger(method, apiPath string, munger requestMungerFunc)

func RegisterResponseMunger

func RegisterResponseMunger(method, apiPath string, munger responseMungerFunc)

func Serve

func Serve(endpoint string, dialer func() (net.Conn, error)) error

Serve up the docker proxy at the given endpoint, using the given function to create a connection to the real dockerd.

func Start

func Start(port uint32, dockerSocket string, args []string) error

Start the dockerd process within this WSL distribution on the given vsock port as well as the unix socket at the given path. All other arguments are passed to dockerd as-is.

This function returns after dockerd has exited.

Types

type RequestContextValue

type RequestContextValue map[interface{}]interface{}

RequestContextValue contains things we attach to incoming requests

Directories

Path Synopsis
Package models contains the auto-generated OpenAPI models.
Package models contains the auto-generated OpenAPI models.
Package mungers includes the code to modify each moby API.
Package mungers includes the code to modify each moby API.

Jump to

Keyboard shortcuts

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