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

Function NewClient

api/cloudcontroller/ccv3/client.go:119–126  ·  view source on GitHub ↗

NewClient returns a new Client.

(config Config)

Source from the content-addressed store, hash-verified

117
118// NewClient returns a new Client.
119func NewClient(config Config) *Client {
120 return &Client{
121 clock: new(internal.RealTime),
122 jobPollingInterval: config.JobPollingInterval,
123 jobPollingTimeout: config.JobPollingTimeout,
124 Requester: NewRequester(config),
125 }
126}
127
128// TestClient returns a new client explicitly meant for internal testing. This
129// should not be used for production code.

Callers 2

target_test.goFile · 0.70

Calls 1

NewRequesterFunction · 0.85

Tested by

no test coverage detected