MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / ClientFactory

Interface ClientFactory

clients/client_factory.go:13–17  ·  view source on GitHub ↗

ClientFactory is a factory for creating XxxClientOperations instances

Source from the content-addressed store, hash-verified

11
12// ClientFactory is a factory for creating XxxClientOperations instances
13type ClientFactory interface {
14 NewMtaClient(host, spaceID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient.MtaClientOperations
15 NewRestClient(host string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) restclient.RestClientOperations
16 NewMtaV2Client(host, spaceGUID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient_v2.MtaV2ClientOperations
17}
18
19// DefaultClientFactory a default implementation of the ClientFactory
20type DefaultClientFactory struct {

Callers 13

executeInternalMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65
NewMtaClientMethod · 0.65
executeInternalMethod · 0.65
NewRestClientMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65
executeInternalMethod · 0.65

Implementers 3

TestClientFactorycommands/test_client_factory.go
BaseCommandcommands/base_command.go
DefaultClientFactoryclients/client_factory.go

Calls

no outgoing calls

Tested by

no test coverage detected