forked from TrueCloudLab/frostfs-node
a875d80491
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
19 lines
293 B
Go
19 lines
293 B
Go
package meta
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// Info groups the information about DB.
|
|
type Info struct {
|
|
// Full path to the metabase.
|
|
Path string
|
|
|
|
// Permission of database file.
|
|
Permission os.FileMode
|
|
}
|
|
|
|
// DumpInfo returns information about the DB.
|
|
func (db *DB) DumpInfo() Info {
|
|
return db.info
|
|
}
|