Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Add expand volume route

See merge request enix/dothill-api-go!10
  • Loading branch information
arcln committed Dec 6, 2019
2 parents deb7d96 + b19576c commit 357b677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ func (client *Client) UnmapVolume(name, host string) (*Response, *ResponseStatus
return client.Request(fmt.Sprintf("/unmap/volume/host/\"%s\"/\"%s\"", host, name))
}

// ExpandVolume : extend a volume if there is enough space on the vdisk
func (client *Client) ExpandVolume(name, size string) (*Response, *ResponseStatus, error) {
return client.Request(fmt.Sprintf("/expand/volume/size/\"%s\"/\"%s\"", size, name))
}

// DeleteVolume : deletes a volume
func (client *Client) DeleteVolume(name string) (*Response, *ResponseStatus, error) {
return client.Request(fmt.Sprintf("/delete/volumes/\"%s\"", name))
Expand Down

0 comments on commit 357b677

Please sign in to comment.