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 authored and whyrusleeping committed Sep 4, 2017
1 parent c79bccf commit c310e3d
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 @@ -355,8 +355,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 c310e3d

Please sign in to comment.