Documentation ¶
Overview ¶
Package network wraps docker network and ensures exposure of HTTP end-points to containers attached to said network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
Handle for a network managed by a Pool
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
Network wraps a docker network and server listening for requests on the gateway IP, used as meta-data service.
func (*Network) SetHandler ¶
SetHandler allows setting an http.Handler for requests to the gateway IP on port 80. This maybe called multiple times to overwrite the handler and it maybe be called with nil to unset the handler.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool tracks a set of networks ensuring that they can be re-used
Click to show internal directories.
Click to hide internal directories.