generated from TrueCloudLab/basic
WIP: morph: Fix container resource name transformer #31
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
Labels
No Label
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 New Issue
There is no content yet.
Delete Branch "aarifullin/policy-engine:fix/transform_container_target"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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