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

Function NewRestClient

clients/restclient/rest_client.go:24–28  ·  view source on GitHub ↗

NewRestClient creates a new Rest client

(host string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory)

Source from the content-addressed store, hash-verified

22
23// NewRestClient creates a new Rest client
24func NewRestClient(host string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) RestClientOperations {
25 t := baseclient.NewHTTPTransport(host, restBaseURL, rt)
26 client := New(t, strfmt.Default)
27 return RestClient{baseclient.BaseClient{tokenFactory}, client}
28}
29
30func (c RestClient) PurgeConfiguration(org, space string) error {
31 params := &operations.PurgeConfigurationParams{

Callers 3

NewMockRestClientFunction · 0.92
newRestClientFunction · 0.92
NewRetryableRestClientFunction · 0.85

Calls 2

NewHTTPTransportFunction · 0.92
NewFunction · 0.70

Tested by 2

NewMockRestClientFunction · 0.74
newRestClientFunction · 0.74