ape: Validate chain resource name #944
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#944
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:feature/937-validate-ape"
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?
Close #937
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
@ -0,0 +20,4 @@
// ValidateResourceName validates resource name components - container and object id, namespace.
// Also validates matching resource name to templates of policy engine's native scheme.
func ValidateResourceName(name string) error {
This function is too complex and must be separated to mane simple validators.
Separated on two independent, added a bit more comments.
9347f2e5f5
toa467dc1afd
a467dc1afd
to483a67b170