[#189] blobstor: Implement DumpInfo method
Implement method to get the information about the BLOB storage. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
dae8d3de5b
commit
eaa7068e3c
4 changed files with 29 additions and 11 deletions
|
@ -37,8 +37,10 @@ func defaultCfg() *cfg {
|
|||
fsTree: fsTree{
|
||||
depth: defaultShallowDepth,
|
||||
dirNameLen: hex.EncodedLen(dirNameLen),
|
||||
perm: defaultPerm,
|
||||
rootDir: "./",
|
||||
Info: Info{
|
||||
Permissions: defaultPerm,
|
||||
RootPath: "./",
|
||||
},
|
||||
},
|
||||
compressor: noOpCompressor,
|
||||
decompressor: noOpDecompressor,
|
||||
|
@ -108,7 +110,7 @@ func WithCompressObjects(comp bool, log *logger.Logger) Option {
|
|||
// of the fs tree to write the objects.
|
||||
func WithTreeRootPath(rootDir string) Option {
|
||||
return func(c *cfg) {
|
||||
c.fsTree.rootDir = rootDir
|
||||
c.fsTree.RootPath = rootDir
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -116,6 +118,6 @@ func WithTreeRootPath(rootDir string) Option {
|
|||
// bits of the fs tree.
|
||||
func WithTreeRootPerm(perm os.FileMode) Option {
|
||||
return func(c *cfg) {
|
||||
c.fsTree.perm = perm
|
||||
c.fsTree.Permissions = perm
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue