(method, url string, opts *gophercloud.RequestOpts)
| 41 | } |
| 42 | |
| 43 | func (gohanClientCLI *GohanClientCLI) request(method, url string, opts *gophercloud.RequestOpts) (interface{}, error) { |
| 44 | if opts == nil { |
| 45 | opts = &gophercloud.RequestOpts{ |
| 46 | JSONBody: map[string]interface{}{}, |
| 47 | } |
| 48 | } |
| 49 | gohanClientCLI.logRequest(method, url, gohanClientCLI.provider.TokenID, opts.JSONBody.(map[string]interface{})) |
| 50 | return gohanClientCLI.handleResponse(gohanClientCLI.provider.Request(method, url, opts)) |
| 51 | } |
| 52 | |
| 53 | func (gohanClientCLI *GohanClientCLI) getCommands() []gohanCommand { |
| 54 | commands := []gohanCommand{} |
no test coverage detected