Add utility methods #106
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
pool
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#106
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-sdk-go:feature/101-addr-equals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add methods:
IterateUserAttributes
inContainer
Equals
inAddress
Close #101 #97
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
Addto WPIP: AddEquals
forAddress
Equals
forAddress
WPIP: Addto WIP: AddEquals
forAddress
Equals
forAddress
WIP: Addto Add utility methodsEquals
forAddress
@ -172,0 +174,4 @@
//
// Note that comparison using '==' operator is not recommended since it MAY result
// in loss of compatibility.
func (x Address) Equals(addr1 Address) bool {
addr1 looks strange. Maybe
other
?Updated.
46826792aa
toe88304d61a
@ -161,0 +162,4 @@
val.IterateUserAttributes(func(key, val string) {
i++
})
require.Equal(t, 1, i)
May be I am missing something, why is it
1
here?Cause we are adding attribute when initialize container here https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/src/branch/master/container/test/generate.go#L18
e88304d61a
to6ea2f36441
6ea2f36441
toe13edb20cd
UserAttributes
method to return only user attributes of an object #271