[#417] List parts using tree service

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-05-24 16:07:47 +03:00 committed by Alex Vanin
parent bc0bdc7767
commit 58f2bf44b1
4 changed files with 59 additions and 38 deletions

View file

@ -58,6 +58,7 @@ type TreeService interface {
// and returns objectID of a previous part which must be deleted in NeoFS.
// If a part is being added for the first time, the previous part ID will be nil.
AddPart(ctx context.Context, cnrID *cid.ID, multipartNodeID uint64, info *data.PartInfo) (oldObjIDToDelete *oid.ID, err error)
GetParts(ctx context.Context, cnrID *cid.ID, multipartNodeID uint64) ([]*data.PartInfo, error)
}
// ErrNodeNotFound is returned from Tree service in case of not found error.