Documentation ¶
Index ¶
- Constants
- func GetDefaultProxyEndpoint() (string, error)
- func RegisterRequestMunger(method, apiPath string, munger requestMungerFunc)
- func RegisterResponseMunger(method, apiPath string, munger responseMungerFunc)
- func Serve(endpoint string, dialer func() (net.Conn, error)) error
- func Start(port uint32, dockerSocket string, args []string) error
- type RequestContextValue
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 RegisterRequestMunger ¶
func RegisterRequestMunger(method, apiPath string, munger requestMungerFunc)
func RegisterResponseMunger ¶
func RegisterResponseMunger(method, apiPath string, munger responseMungerFunc)
func Serve ¶
Serve up the docker proxy at the given endpoint, using the given function to create a connection to the real dockerd.
Types ¶
type RequestContextValue ¶
type RequestContextValue map[interface{}]interface{}
RequestContextValue contains things we attach to incoming requests
Click to show internal directories.
Click to hide internal directories.