Add UserAttributes method to return only user attributes of an object #271

Closed
opened 2024-09-16 12:39:30 +00:00 by a-savchuk · 0 comments
Member

In #97 and #106, we introduce only the container's IterateUserAttributes method. However, in nspcc-dev/neofs-sdk-go#314 it's also suggested to add the object's UserAttributes method.

This was pointed out in this comment:

if !strings.HasPrefix(attrKey, v2object.SysAttributePrefix) && !strings.HasPrefix(attrKey, v2object.SysAttributePrefixNeoFS) {
// FIXME(@cthulhu-rider): https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/issues/97
// Use dedicated method to skip system attributes.
cmd.Printf(" %s: %s\n", attrKey, attrs[i].Value())
}

In #97 and #106, we introduce only the container's `IterateUserAttributes` method. However, in [nspcc-dev/neofs-sdk-go#314](https://github.com/nspcc-dev/neofs-sdk-go/issues/314) it's also suggested to add the object's `UserAttributes` method. This was pointed out in this comment: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/96308a26c6ab73c416464e3da2f0e859915abc93/cmd/frostfs-cli/modules/container/list_objects.go#L73-L77
a-savchuk added the
enhancement
label 2024-09-16 12:39:30 +00:00
a-savchuk self-assigned this 2024-09-16 12:39:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-sdk-go#271
No description provided.