MCPcopy Index your code
hub / github.com/cloudfoundry/multiapps-cli-plugin / NewTestClientFactory

Function NewTestClientFactory

commands/test_client_factory.go:18–26  ·  view source on GitHub ↗
(mtaClient mtaclient.MtaClientOperations,
	mtaV2client mtaclient_v2.MtaV2ClientOperations,
	restClient restclient.RestClientOperations)

Source from the content-addressed store, hash-verified

16}
17
18func NewTestClientFactory(mtaClient mtaclient.MtaClientOperations,
19 mtaV2client mtaclient_v2.MtaV2ClientOperations,
20 restClient restclient.RestClientOperations) *TestClientFactory {
21 return &TestClientFactory{
22 RestClient: restClient,
23 MtaClient: mtaClient,
24 MtaV2Client: mtaV2client,
25 }
26}
27
28func (f *TestClientFactory) NewMtaClient(host, spaceID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient.MtaClientOperations {
29 return f.MtaClient

Calls

no outgoing calls

Tested by

no test coverage detected