MCPcopy Index your code
hub / github.com/plexdrive/plexdrive / boltStoreObject

Function boltStoreObject

drive/cache.go:238–245  ·  view source on GitHub ↗
(tx *bolt.Tx, object *APIObject)

Source from the content-addressed store, hash-verified

236}
237
238func boltStoreObject(tx *bolt.Tx, object *APIObject) error {
239 b := tx.Bucket(bObjects)
240 v, err := json.Marshal(object)
241 if nil != err {
242 return err
243 }
244 return b.Put([]byte(object.ObjectID), v)
245}
246
247func boltGetObject(tx *bolt.Tx, id string) (*APIObject, error) {
248 b := tx.Bucket(bObjects)

Callers 1

boltUpdateObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected