Skip to content

Commit

Permalink
Merge pull request #2478 from FayerZhang/master
Browse files Browse the repository at this point in the history
fix golint failures
  • Loading branch information
k8s-ci-robot authored Oct 25, 2019
2 parents 8337753 + dcd7a2b commit 6f5c470
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ type ProjectResource struct {
Status string `json:"status,omitempty"`
}

// ProjetResourceLinks specify the link for more information about the resource.
// ProjectResourceLinks specify the link for more information about the resource.
type ProjectResourceLinks struct {
Self string `json:"self"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Attach(client *gophercloud.ServiceClient, id string, opts AttachOptsBuilder
return
}

// BeginDetach will mark the volume as detaching.
// BeginDetaching will mark the volume as detaching.
func BeginDetaching(client *gophercloud.ServiceClient, id string) (r BeginDetachingResult) {
b := map[string]interface{}{"os-begin_detaching": make(map[string]interface{})}
_, r.Err = client.Post(actionURL(client, id), b, nil, &gophercloud.RequestOpts{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type DeleteOpts struct {
Cascade bool `q:"cascade"`
}

// ToLoadBalancerDeleteQuery formats a DeleteOpts into a query string.
// ToVolumeDeleteQuery formats a DeleteOpts into a query string.
func (opts DeleteOpts) ToVolumeDeleteQuery() (string, error) {
q, err := gophercloud.BuildQueryString(opts)
return q.String(), err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type DeleteOpts struct {
Cascade bool `q:"cascade"`
}

// ToLoadBalancerDeleteQuery formats a DeleteOpts into a query string.
// ToVolumeDeleteQuery formats a DeleteOpts into a query string.
func (opts DeleteOpts) ToVolumeDeleteQuery() (string, error) {
q, err := gophercloud.BuildQueryString(opts)
return q.String(), err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ type ListExtraSpecsResult struct {
extraSpecsResult
}

// CreateExtraSpecResult contains the result of a Create operation. Call its
// CreateExtraSpecsResult contains the result of a Create operation. Call its
// Extract method to interpret it as a map[string]interface.
type CreateExtraSpecsResult struct {
extraSpecsResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ type UpdateOptsBuilder interface {
ToClustersUpdateMap() (map[string]interface{}, error)
}

// ToClusterUpdateMap assembles a request body based on the contents of
// ToClustersUpdateMap assembles a request body based on the contents of
// UpdateOpts.
func (opts UpdateOpts) ToClustersUpdateMap() (map[string]interface{}, error) {
return gophercloud.BuildRequestBody(opts, "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (opts *AuthOptions) ToTokenV3CreateMap(scope map[string]interface{}) (map[s
return gophercloudAuthOpts.ToTokenV3CreateMap(scope)
}

// ToTokenV3CreateMap builds a scope request body from AuthOptions.
// ToTokenV3ScopeMap builds a scope request body from AuthOptions.
func (opts *AuthOptions) ToTokenV3ScopeMap() (map[string]interface{}, error) {
scope := gophercloud.AuthScope(opts.Scope)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func Delete(c *gophercloud.ServiceClient, id string) (r DeleteResult) {
return
}

// ListMemberOptsBuilder allows extensions to add additional parameters to the
// ListMembersOptsBuilder allows extensions to add additional parameters to the
// ListMembers request.
type ListMembersOptsBuilder interface {
ToMembersListQuery() (string, error)
Expand All @@ -218,7 +218,7 @@ type ListMembersOpts struct {
SortDir string `q:"sort_dir"`
}

// ToMemberListQuery formats a ListOpts into a query string.
// ToMembersListQuery formats a ListOpts into a query string.
func (opts ListMembersOpts) ToMembersListQuery() (string, error) {
q, err := gophercloud.BuildQueryString(opts)
return q.String(), err
Expand Down Expand Up @@ -335,7 +335,7 @@ func (opts UpdateMemberOpts) ToMemberUpdateMap() (map[string]interface{}, error)
return gophercloud.BuildRequestBody(opts, "member")
}

// Update allows Member to be updated.
// UpdateMember allows Member to be updated.
func UpdateMember(c *gophercloud.ServiceClient, poolID string, memberID string, opts UpdateMemberOptsBuilder) (r UpdateMemberResult) {
b, err := opts.ToMemberUpdateMap()
if err != nil {
Expand All @@ -348,7 +348,7 @@ func UpdateMember(c *gophercloud.ServiceClient, poolID string, memberID string,
return
}

// DisassociateMember will remove and disassociate a Member from a particular
// DeleteMember will remove and disassociate a Member from a particular
// Pool.
func DeleteMember(c *gophercloud.ServiceClient, poolID string, memberID string) (r DeleteMemberResult) {
_, r.Err = c.Delete(memberResourceURL(c, poolID, memberID), nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func Update(c *gophercloud.ServiceClient, stackName, stackID string, opts Update
return
}

// Update accepts an UpdateOpts struct and updates an existing stack using the
// UpdatePatch accepts an UpdateOpts struct and updates an existing stack using the
// http PATCH verb with the values provided. opts.TemplateOpts is not required.
func UpdatePatch(c *gophercloud.ServiceClient, stackName, stackID string, opts UpdatePatchOptsBuilder) (r UpdateResult) {
b, err := opts.ToStackUpdatePatchMap()
Expand Down

0 comments on commit 6f5c470

Please sign in to comment.