Update go dependencies
This commit is contained in:
parent
d5cf22c129
commit
063cc68d1c
1321 changed files with 52830 additions and 31081 deletions
8
vendor/github.com/gophercloud/gophercloud/openstack/client.go
generated
vendored
8
vendor/github.com/gophercloud/gophercloud/openstack/client.go
generated
vendored
|
|
@ -406,3 +406,11 @@ func NewMessagingV2(client *gophercloud.ProviderClient, clientID string, eo goph
|
|||
func NewContainerV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error) {
|
||||
return initClientOpts(client, eo, "container")
|
||||
}
|
||||
|
||||
// NewKeyManagerV1 creates a ServiceClient that may be used with the v1 key
|
||||
// manager service.
|
||||
func NewKeyManagerV1(client *gophercloud.ProviderClient, eo gophercloud.EndpointOpts) (*gophercloud.ServiceClient, error) {
|
||||
sc, err := initClientOpts(client, eo, "key-manager")
|
||||
sc.ResourceBase = sc.Endpoint + "v1/"
|
||||
return sc, err
|
||||
}
|
||||
|
|
|
|||
9
vendor/github.com/gophercloud/gophercloud/openstack/utils/base_endpoint.go
generated
vendored
9
vendor/github.com/gophercloud/gophercloud/openstack/utils/base_endpoint.go
generated
vendored
|
|
@ -18,11 +18,12 @@ func BaseEndpoint(endpoint string) (string, error) {
|
|||
|
||||
u.RawQuery, u.Fragment = "", ""
|
||||
|
||||
base = u.String()
|
||||
versionRe := regexp.MustCompile("v[0-9.]+/?")
|
||||
if version := versionRe.FindString(u.Path); version != "" {
|
||||
base = strings.Replace(u.String(), version, "", -1)
|
||||
} else {
|
||||
base = u.String()
|
||||
|
||||
if version := versionRe.FindString(base); version != "" {
|
||||
versionIndex := strings.Index(base, version)
|
||||
base = base[:versionIndex]
|
||||
}
|
||||
|
||||
return base, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue