feat: update

This commit is contained in:
2026-06-06 09:15:46 +03:30
parent 802c9b91f7
commit 16f76364f7
3 changed files with 44 additions and 1 deletions
+5 -1
View File
@@ -58,7 +58,11 @@ func (c *Client) CreateVolume(ctx context.Context, req provisioner.CreateVolumeR
}
func (c *Client) DeleteVolume(ctx context.Context, volumeID string) error {
return c.doJSON(ctx, http.MethodDelete, "/v1/volumes/"+escapePath(volumeID), nil, nil)
err := c.doJSON(ctx, http.MethodDelete, "/v1/volumes/"+escapePath(volumeID), nil, nil)
if isNotFound(err) {
return nil
}
return err
}
func (c *Client) VolumeExists(ctx context.Context, volumeID string) (bool, error) {