Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openstack/compute/v2/extensions/diskconfig/doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Package diskconfig provides information and interaction with the the Disk
// Package diskconfig provides information and interaction with the Disk
// Config extension that works with the OpenStack Compute service.
package diskconfig
2 changes: 1 addition & 1 deletion openstack/compute/v2/flavors/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// ErrCannotInterpret is returned by an Extract call if the response body doesn't have the expected structure.
var ErrCannotInterpet = errors.New("Unable to interpret a response body.")

// GetResult temporarily holds the reponse from a Get call.
// GetResult temporarily holds the response from a Get call.
type GetResult struct {
gophercloud.Result
}
Expand Down
2 changes: 1 addition & 1 deletion openstack/compute/v2/images/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func ListDetail(client *gophercloud.ServiceClient, opts ListOptsBuilder) paginat
}

// Get acquires additional detail about a specific image by ID.
// Use ExtractImage() to intepret the result as an openstack Image.
// Use ExtractImage() to interpret the result as an openstack Image.
func Get(client *gophercloud.ServiceClient, id string) GetResult {
var result GetResult
_, result.Err = perigee.Request("GET", getURL(client, id), perigee.Options{
Expand Down
2 changes: 1 addition & 1 deletion openstack/compute/v2/servers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func Get(client *gophercloud.ServiceClient, id string) GetResult {
return result
}

// UpdateOptsBuilder allows extentions to add additional attributes to the Update request.
// UpdateOptsBuilder allows extensions to add additional attributes to the Update request.
type UpdateOptsBuilder interface {
ToServerUpdateMap() map[string]interface{}
}
Expand Down
2 changes: 1 addition & 1 deletion openstack/identity/v3/endpoints/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Create(client *gophercloud.ServiceClient, opts EndpointOpts) CreateResult {
return result
}

// ListOpts allows finer control over the the endpoints returned by a List call.
// ListOpts allows finer control over the endpoints returned by a List call.
// All fields are optional.
type ListOpts struct {
Availability gophercloud.Availability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// FloatingIP represents a floating IP resource. A floating IP is an external
// IP address that is mapped to an internal port and, optionally, a specific
// IP address on a private network. In other words, it enables access to an
// instance on a private network from an external network. For thsi reason,
// instance on a private network from an external network. For this reason,
// floating IPs can only be defined on networks where the `router:external'
// attribute (provided by the external network extension) is set to True.
type FloatingIP struct {
Expand Down
2 changes: 1 addition & 1 deletion openstack/networking/v2/ports/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (opts ListOpts) ToPortListQuery() (string, error) {
// the returned collection for greater efficiency.
//
// Default policy settings return only those ports that are owned by the tenant
// who submits the request, unless the request is submitted by an user with
// who submits the request, unless the request is submitted by a user with
// administrative rights.
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager {
url := listURL(c)
Expand Down
2 changes: 1 addition & 1 deletion openstack/networking/v2/subnets/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (opts ListOpts) ToSubnetListQuery() (string, error) {
// the returned collection for greater efficiency.
//
// Default policy settings return only those subnets that are owned by the tenant
// who submits the request, unless the request is submitted by an user with
// who submits the request, unless the request is submitted by a user with
// administrative rights.
func List(c *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager {
url := listURL(c)
Expand Down
2 changes: 1 addition & 1 deletion openstack/utils/choose_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var goodStatus = map[string]bool{
"stable": true,
}

// ChooseVersion queries the base endpoint of a API to choose the most recent non-experimental alternative from a service's
// ChooseVersion queries the base endpoint of an API to choose the most recent non-experimental alternative from a service's
// published versions.
// It returns the highest-Priority Version among the alternatives that are provided, as well as its corresponding endpoint.
func ChooseVersion(identityBase string, identityEndpoint string, recognized []*Version) (*Version, string, error) {
Expand Down