ObjectPrefix returns a prefix for the various objects that comprise a data object so they can all be deleted with the storage engine's DeleteByPrefix method.
(path *storage.URI)
| 114 | // a data object so they can all be deleted with the storage engine's |
| 115 | // DeleteByPrefix method. |
| 116 | func (o Object) ObjectPrefix(path *storage.URI) *storage.URI { |
| 117 | return path.JoinPath(o.ID.String()) |
| 118 | } |
| 119 | |
| 120 | func (o Object) SequenceURI(path *storage.URI) *storage.URI { |
| 121 | return SequenceURI(path, o.ID) |