directRepository is an implementation of repository that directly manipulates underlying storage.
| 129 | |
| 130 | // directRepository is an implementation of repository that directly manipulates underlying storage. |
| 131 | type directRepository struct { |
| 132 | immutableDirectRepositoryParameters |
| 133 | |
| 134 | blobs blob.Storage |
| 135 | cmgr *content.WriteManager |
| 136 | omgr *object.Manager |
| 137 | mmgr *manifest.Manager |
| 138 | sm *content.SharedManager |
| 139 | |
| 140 | afterFlush []RepositoryWriterCallback |
| 141 | } |
| 142 | |
| 143 | // DeriveKey derives encryption key of the provided length from the master key. |
| 144 | func (r *directRepository) DeriveKey(purpose string, keyLength int) (derivedKey []byte, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected