forked from TrueCloudLab/frostfs-s3-gw
[#429] Refactor tree service
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
dace32760a
commit
b03ae827fb
3 changed files with 90 additions and 66 deletions
|
@ -15,9 +15,9 @@ type TreeService interface {
|
|||
|
||||
// GetSettingsNode retrieves the settings node from the tree service and form data.BucketSettings.
|
||||
//
|
||||
// If node is not found returns ErrNotFound error.
|
||||
// If node is not found returns ErrNodeNotFound error.
|
||||
GetSettingsNode(context.Context, *cid.ID, string) (*data.BucketSettings, error)
|
||||
}
|
||||
|
||||
// ErrNotFound is returned from Tree service in case of not found error.
|
||||
var ErrNotFound = errors.New("not found")
|
||||
// ErrNodeNotFound is returned from Tree service in case of not found error.
|
||||
var ErrNodeNotFound = errors.New("not found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue