MCPcopy
hub / github.com/cloudfoundry/cli / CustomWrapper

Struct CustomWrapper

api/cloudcontroller/wrapper/custom_wrapper.go:7–10  ·  view source on GitHub ↗

CustomWrapper is a wrapper that can execute arbitrary code via the CustomMake function on every request that passes through Make.

Source from the content-addressed store, hash-verified

5// CustomWrapper is a wrapper that can execute arbitrary code via the
6// CustomMake function on every request that passes through Make.
7type CustomWrapper struct {
8 connection cloudcontroller.Connection
9 CustomMake func(connection cloudcontroller.Connection, request *cloudcontroller.Request, passedResponse *cloudcontroller.Response) error
10}
11
12func (e *CustomWrapper) Make(request *cloudcontroller.Request, passedResponse *cloudcontroller.Response) error {
13 return e.CustomMake(e.connection, request, passedResponse)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected