generated from TrueCloudLab/basic
WIP: morph: Fix container resource name transformer #31
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No labels
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/policy-engine#31
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/policy-engine:fix/transform_container_target"
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: Airat Arifullin aarifullin@yadro.com
cbbd0b2e26
to74dade0e43
74dade0e43
toa7bb0e6b8b
@ -50,3 +51,3 @@
// Container name can be too long and, thus, cannot be
// used as a key name for policy-contract storage.
name = base58.FastBase58Encoding([]byte(target.Name))
encoded := sha256.Sum224([]byte(target.Name))
What about raw
[]byte
slice? it's 32 bytes. Well, it is hash, so taking a prefix is almost equivalent to thisSum224
.And why
224
?morph: Fix container resource name transformerto WIP: morph: Fix container resource name transformerPull request closed