Add Delete method to Datastore (Fixes #13)
This commit is contained in:
parent
2b5a13d88e
commit
4423ac7952
|
@ -261,6 +261,11 @@ func (ds *Datastore) Close() {
|
||||||
close(ds.changesQueue)
|
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.
|
// SetTitle sets the datastore title to the given string.
|
||||||
func (ds *Datastore) SetTitle(t string) error {
|
func (ds *Datastore) SetTitle(t string) error {
|
||||||
if len(ds.info.title) == 0 {
|
if len(ds.info.title) == 0 {
|
||||||
|
|
Reference in New Issue
Block a user