MCPcopy Create free account
hub / github.com/cloudwan/gohan / getGohanEndpointURL

Method getGohanEndpointURL

cli/client/client.go:252–263  ·  view source on GitHub ↗
(provider *gophercloud.ProviderClient)

Source from the content-addressed store, hash-verified

250}
251
252func (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
265func (gohanClientCLI *GohanClientCLI) getSchemas() ([]*schema.Schema, error) {
266 jsonResponse := make(map[string]interface{})

Callers 2

NewGohanClientCLIFunction · 0.95
client_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected