Archived
1
0

Add Delete method to Datastore (Fixes #13)

This commit is contained in:
Arnaud Ysmal 2015-02-19 20:18:33 +01:00
parent 2b5a13d88e
commit 4423ac7952

View File

@ -261,6 +261,11 @@ func (ds *Datastore) Close() {
close(ds.changesQueue)
}
// Delete deletes the datastore.
func (ds *Datastore) Delete() error {
return ds.manager.DeleteDatastore(ds.info.ID)
}
// SetTitle sets the datastore title to the given string.
func (ds *Datastore) SetTitle(t string) error {
if len(ds.info.title) == 0 {