(config command.Config, ui command.UI, uaaClient *uaa.Client)
| 60 | } |
| 61 | |
| 62 | func NewAuthWrappedCloudControllerClient(config command.Config, ui command.UI, uaaClient *uaa.Client) *ccv3.Client { |
| 63 | var authWrapper ccv3.ConnectionWrapper |
| 64 | authWrapper = ccWrapper.NewUAAAuthentication(uaaClient, config) |
| 65 | if config.IsCFOnK8s() { |
| 66 | authWrapper = ccWrapper.NewKubernetesAuthentication( |
| 67 | config, |
| 68 | v7action.NewDefaultKubernetesConfigGetter(), |
| 69 | ) |
| 70 | } |
| 71 | |
| 72 | return NewWrappedCloudControllerClient(config, ui, authWrapper) |
| 73 | } |
| 74 | |
| 75 | func newWrappedUAAClient(config command.Config, ui command.UI) (*uaa.Client, error) { |
| 76 | var err error |
no test coverage detected