(provider *gophercloud.ProviderClient)
| 250 | } |
| 251 | |
| 252 | func (gohanClientCLI *GohanClientCLI) getGohanEndpointURL(provider *gophercloud.ProviderClient) (string, error) { |
| 253 | endpointOpts := gophercloud.EndpointOpts{ |
| 254 | Type: gohanClientCLI.opts.gohanServiceName, |
| 255 | Region: gohanClientCLI.opts.gohanRegion, |
| 256 | Availability: gophercloud.AvailabilityAdmin, |
| 257 | } |
| 258 | endpoint, err := provider.EndpointLocator(endpointOpts) |
| 259 | if err != nil { |
| 260 | return "", err |
| 261 | } |
| 262 | return strings.TrimSuffix(endpoint, "/"), nil |
| 263 | } |
| 264 | |
| 265 | func (gohanClientCLI *GohanClientCLI) getSchemas() ([]*schema.Schema, error) { |
| 266 | jsonResponse := make(map[string]interface{}) |
no outgoing calls
no test coverage detected