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

Method NewMtaClient

commands/base_command.go:149–151  ·  view source on GitHub ↗

NewMtaClient creates a new MTA deployer REST client

(host string, cfTarget util.CloudFoundryTarget)

Source from the content-addressed store, hash-verified

147
148// NewMtaClient creates a new MTA deployer REST client
149func (c *BaseCommand) NewMtaClient(host string, cfTarget util.CloudFoundryTarget) mtaclient.MtaClientOperations {
150 return c.clientFactory.NewMtaClient(host, cfTarget.Space.Guid, c.transport, c.tokenFactory)
151}
152
153// NewMtaV2Client creates a new MTAV2 deployer REST client
154func (c *BaseCommand) NewMtaV2Client(host string, cfTarget util.CloudFoundryTarget) mtaclient_v2.MtaV2ClientOperations {

Callers 2

ExecuteActionMethod · 0.95
CheckOngoingOperationMethod · 0.95

Calls 1

NewMtaClientMethod · 0.65

Tested by

no test coverage detected