Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerHTTPProxyTarget ¶
func ContainerHTTPProxyTarget(svc *arvados.ServiceWithPortRange, req *http.Request) string
If -- given the provided ContainerWebServices config section -- req is a container http proxy request, return the appropriate target (":{portnum}", a container UUID, or a container request UUID). Otherwise, return "".
Types ¶
type Config ¶
type Config struct {
// Services.ContainerWebServices section from cluster config.
ContainerWebServices *arvados.ServiceWithPortRange
// Return an error if request body exceeds this size. 0 means
// unlimited.
MaxRequestSize int
// If wrapCalls is not nil, it is called once for each API
// method, and the returned method is used in its place. This
// can be used to install hooks before and after each API call
// and alter responses; see localdb.WrapCallsInTransaction for
// an example.
WrapCalls func(api.RoutableFunc) api.RoutableFunc
}
Source Files
¶
- error.go
- request.go
- response.go
- router.go
Click to show internal directories.
Click to hide internal directories.