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

Method TargetCF

api/cloudcontroller/ccv3/target.go:29–33  ·  view source on GitHub ↗

TargetCF sets the client to use the Cloud Controller specified in the configuration. Any other configuration is also applied to the client.

(settings TargetSettings)

Source from the content-addressed store, hash-verified

27// TargetCF sets the client to use the Cloud Controller specified in the
28// configuration. Any other configuration is also applied to the client.
29func (client *Client) TargetCF(settings TargetSettings) {
30 client.CloudControllerURL = settings.URL
31 client.InitializeConnection(settings)
32 client.InitializeRouter(settings.URL)
33}

Callers 1

NewTestClientFunction · 0.95

Calls 2

InitializeConnectionMethod · 0.65
InitializeRouterMethod · 0.65

Tested by 1

NewTestClientFunction · 0.76