KeyPathWithPrefix returns a keypath with a prefix
(keypath KeyPath, prefix string)
| 350 | |
| 351 | // KeyPathWithPrefix returns a keypath with a prefix |
| 352 | func KeyPathWithPrefix(keypath KeyPath, prefix string) KeyPath { |
| 353 | if len(prefix) == 0 { |
| 354 | return keypath |
| 355 | } |
| 356 | |
| 357 | return append([]string{prefix}, keypath...) |
| 358 | } |
| 359 | |
| 360 | // MetaFileName returns the object name for the block meta given a block id and tenantid |
| 361 | func MetaFileName(blockID uuid.UUID, tenantID, prefix string) string { |
no outgoing calls
no test coverage detected