Print devicemapper status details in docker info

This adds a generic Status call in the Driver api and
implements if for the devicemapper backend.

The status is an array of key/value strings rather than a map so that
we can guarantee some static order of the docker info output.
This commit is contained in:
Alexander Larsson
2013-11-15 11:04:02 +01:00
parent 062810caed
commit 243843c078
7 changed files with 40 additions and 10 deletions
+2
View File
@@ -19,6 +19,8 @@ type Driver interface {
Get(id string) (dir string, err error)
Size(id string) (bytes int64, err error)
Status() [][2]string
Cleanup() error
}
+4
View File
@@ -27,6 +27,10 @@ func (d *Driver) String() string {
return "dummy"
}
func (d *Driver) Status() [][2]string {
return nil
}
func (d *Driver) Cleanup() error {
return nil
}