forked from TrueCloudLab/frostfs-node
56d4410913
Changes: * replace `iotuil` elements with the ones from `os` package; * replace `os.Filemode` with `fs.FileMode`; * use `signal.NotifyContext` instead of `NewGracefulContext` (removed). Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
19 lines
296 B
Go
19 lines
296 B
Go
package meta
|
|
|
|
import (
|
|
"io/fs"
|
|
)
|
|
|
|
// Info groups the information about DB.
|
|
type Info struct {
|
|
// Full path to the metabase.
|
|
Path string
|
|
|
|
// Permission of database file.
|
|
Permission fs.FileMode
|
|
}
|
|
|
|
// DumpInfo returns information about the DB.
|
|
func (db *DB) DumpInfo() Info {
|
|
return db.info
|
|
}
|