Skip to content

Commit

Permalink
badgerds: implement DiskSpec
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <[email protected]>
  • Loading branch information
magik6k committed Jul 19, 2017
1 parent 93b173b commit 3fafeec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions repo/fsrepo/datastores.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,11 @@ func BadgerdsDatastoreConfig(params map[string]interface{}) (DatastoreConfig, er
return &c, nil
}

func (c *badgerdsDatastoreConfig) DiskId() string {
return fmt.Sprintf("badgerds;%s", c.path)
func (c *badgerdsDatastoreConfig) DiskSpec() DiskSpec {
return map[string]interface{}{
"type": "badgerds",
"path": c.path,
}
}

func (c *badgerdsDatastoreConfig) Create(path string) (repo.Datastore, error) {
Expand Down

0 comments on commit 3fafeec

Please sign in to comment.