Skip to content

Commit

Permalink
Small documentation fixes around all packages
Browse files Browse the repository at this point in the history
Tiny fixes.
  • Loading branch information
ozerovandrei committed Apr 15, 2018
1 parent 2191357 commit 603ae5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions selvpcclient/resell/v2/floatingips/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Package floatingips provides the ability to retrieve and manage floatingips through
Package floatingips provides the ability to retrieve and manage floating ips through
the Resell v2 API.
Example of getting a single floating ip referenced by its id
Expand All @@ -10,7 +10,7 @@ Example of getting a single floating ip referenced by its id
}
fmt.Println(floatingip)
Example of getting all floatingips
Example of getting all floating ips
allFloatingIPs, _, err := floatingips.List(ctx, resellClient)
if err != nil {
Expand All @@ -20,7 +20,7 @@ Example of getting all floatingips
fmt.Println(floatingIP)
}
Example of creating floating ips in project
Example of creating floating ips in a project
newFloatingIPsOpts := floatingips.FloatingIPOpts{
FloatingIPs: []floatingips.FloatingIPOpt{
Expand All @@ -39,7 +39,7 @@ Example of creating floating ips in project
fmt.Printf("%v\n", newFloatingIP)
}
Example of deleting a single floatingip
Example of deleting a single floating ip
_, err = floatingips.Delete(ctx, resellClient, "412a04ba-4cb2-4823-abd1-fcd48952b882")
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion selvpcclient/resell/v2/projects/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func Update(ctx context.Context, client *selvpcclient.ServiceClient, id string,
return result.Project, responseResult, nil
}

// Delete deletes a single projects by its id.
// Delete deletes a single project by its id.
func Delete(ctx context.Context, client *selvpcclient.ServiceClient, id string) (*selvpcclient.ResponseResult, error) {
url := strings.Join([]string{client.Endpoint, resourceURL, id}, "/")
responseResult, err := client.DoRequest(ctx, "DELETE", url, nil)
Expand Down
2 changes: 1 addition & 1 deletion selvpcclient/resell/v2/servers/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Server struct {
// Status represents a current status of the server.
Status string `json:"status"`

// Updated contains ISO-8601 timestamps of when the state of the server
// Updated contains the ISO-8601 timestamp of when the state of the server
// last changed.
Updated time.Time `json:"updated"`
}

0 comments on commit 603ae5e

Please sign in to comment.