[#51] policy: Support Get and ListByPrefix methods #51
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
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
7 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#51
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/frostfs-contract:feature/support_iam_operations"
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?
Signed-off-by: Denis Kirillov d.kirillov@yadro.com
WIP: [#XX] policy: Support Get and ListByPrefix methodsto WIP: [#51] policy: Support Get and ListByPrefix methods3c8596090b
to9103b4f04d
9103b4f04d
toe4d7bd44a8
WIP: [#51] policy: Support Get and ListByPrefix methodsto [#51] policy: Support Get and ListByPrefix methodse4d7bd44a8
tod6ec60f5b8
d6ec60f5b8
to567a160ec3
567a160ec3
to0961e1fe7b
0961e1fe7b
to71d250a807
@ -79,1 +90,4 @@
}
// ListChainsByPrefix list all chains for the provided kind and entity by prefix.
func ListChainsByPrefix(entity Kind, entityName, prefix string) [][]byte {
I cannot decide should the return value be slice or iterator.
In IAM we are going to use two type entity name (
managed
andinline
) so it seems we can have more that 2048 chains for everyentityName
. But probably as prototype we can keep slice71d250a807
to768bb9d9da
768bb9d9da
to5cc34f98e9
@ -79,1 +90,4 @@
}
// ListChainsByPrefix list all chains for the provided kind and entity by prefix.
func ListChainsByPrefix(entity Kind, entityName, prefix string) [][]byte {
ListChains
already can list by prefix, what is the usecase for this?For
i
KindIAM = 'i'
So looks like you can just edit
ListChains
method definition or editListChains
method implementation to useListChainsByPrefix
method.663c53da84
to20f86e96b2