api: add sandbox Delete API

By exporting the existing sandbox delete() function.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao
2018-04-18 11:43:43 +08:00
parent 5165de0d76
commit ef89131b85
5 changed files with 10 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ func DeleteSandbox(sandboxID string) (VCSandbox, error) {
}
// Delete it.
if err := p.delete(); err != nil {
if err := p.Delete(); err != nil {
return nil, err
}