NewRestClient creates a new Rest client
(host string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory)
| 22 | |
| 23 | // NewRestClient creates a new Rest client |
| 24 | func 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 | |
| 30 | func (c RestClient) PurgeConfiguration(org, space string) error { |
| 31 | params := &operations.PurgeConfigurationParams{ |