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

Function GetNewClientsAndConnectToCF

command/v7/shared/new_clients.go:15–36  ·  view source on GitHub ↗
(config command.Config, ui command.UI, minVersionV3 string)

Source from the content-addressed store, hash-verified

13)
14
15func GetNewClientsAndConnectToCF(config command.Config, ui command.UI, minVersionV3 string) (*ccv3.Client, *uaa.Client, *router.Client, error) {
16 var err error
17
18 uaaClient, err := newWrappedUAAClient(config, ui)
19 if err != nil {
20 return nil, nil, nil, err
21 }
22
23 routingClient, err := newWrappedRoutingClient(config, ui, uaaClient)
24 if err != nil {
25 return nil, nil, nil, err
26 }
27
28 ccClient := NewAuthWrappedCloudControllerClient(config, ui, uaaClient)
29
30 ccClient, err = connectToCF(config, ui, ccClient, minVersionV3)
31 if err != nil {
32 return nil, nil, nil, err
33 }
34
35 return ccClient, uaaClient, routingClient, err
36}
37
38func NewWrappedCloudControllerClient(config command.Config, ui command.UI, extraWrappers ...ccv3.ConnectionWrapper) *ccv3.Client {
39 ccWrappers := []ccv3.ConnectionWrapper{}

Callers 4

SetupMethod · 0.92
ReloadMethod · 0.92
SetupMethod · 0.92

Calls 4

newWrappedUAAClientFunction · 0.85
newWrappedRoutingClientFunction · 0.85
connectToCFFunction · 0.85

Tested by

no test coverage detected