[#1840] blobstor: Return Path
from components
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
9b241e4a17
commit
328691c94f
3 changed files with 11 additions and 0 deletions
|
@ -237,6 +237,11 @@ func (b *Blobovniczas) Type() string {
|
||||||
return Type
|
return Type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path implements common.Storage.
|
||||||
|
func (b *Blobovniczas) Path() string {
|
||||||
|
return b.rootPath
|
||||||
|
}
|
||||||
|
|
||||||
// SetCompressor implements common.Storage.
|
// SetCompressor implements common.Storage.
|
||||||
func (b *Blobovniczas) SetCompressor(cc *compression.Config) {
|
func (b *Blobovniczas) SetCompressor(cc *compression.Config) {
|
||||||
b.compression = cc
|
b.compression = cc
|
||||||
|
|
|
@ -10,6 +10,7 @@ type Storage interface {
|
||||||
Close() error
|
Close() error
|
||||||
|
|
||||||
Type() string
|
Type() string
|
||||||
|
Path() string
|
||||||
SetCompressor(cc *compression.Config)
|
SetCompressor(cc *compression.Config)
|
||||||
|
|
||||||
Get(GetPrm) (GetRes, error)
|
Get(GetPrm) (GetRes, error)
|
||||||
|
|
|
@ -347,6 +347,11 @@ func (*FSTree) Type() string {
|
||||||
return Type
|
return Type
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path implements common.Storage.
|
||||||
|
func (t *FSTree) Path() string {
|
||||||
|
return t.RootPath
|
||||||
|
}
|
||||||
|
|
||||||
// SetCompressor implements common.Storage.
|
// SetCompressor implements common.Storage.
|
||||||
func (t *FSTree) SetCompressor(cc *compression.Config) {
|
func (t *FSTree) SetCompressor(cc *compression.Config) {
|
||||||
t.Config = cc
|
t.Config = cc
|
||||||
|
|
Loading…
Reference in a new issue