Skip to content

Commit

Permalink
[nspcc-dev#1840] blobstor: Return Path from components
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
  • Loading branch information
fyrchik authored and aprasolova committed Oct 19, 2022
1 parent c830357 commit 63f975c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ func (b *Blobovniczas) Type() string {
return Type
}

// Path implements common.Storage.
func (b *Blobovniczas) Path() string {
return b.rootPath
}

// SetCompressor implements common.Storage.
func (b *Blobovniczas) SetCompressor(cc *compression.Config) {
b.compression = cc
Expand Down
1 change: 1 addition & 0 deletions pkg/local_object_storage/blobstor/common/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Storage interface {
Close() error

Type() string
Path() string
SetCompressor(cc *compression.Config)

Get(GetPrm) (GetRes, error)
Expand Down
5 changes: 5 additions & 0 deletions pkg/local_object_storage/blobstor/fstree/fstree.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ func (*FSTree) Type() string {
return Type
}

// Path implements common.Storage.
func (t *FSTree) Path() string {
return t.RootPath
}

// SetCompressor implements common.Storage.
func (t *FSTree) SetCompressor(cc *compression.Config) {
t.Config = cc
Expand Down

0 comments on commit 63f975c

Please sign in to comment.