Method
AddGraphEncryptKey
(_ context.Context, id db.GraphID, gek *db.GraphEncryptKey)
Source from the content-addressed store, hash-verified
| 127 | } |
| 128 | |
| 129 | func (d *DB) AddGraphEncryptKey(_ context.Context, id db.GraphID, gek *db.GraphEncryptKey) error { |
| 130 | g, ok := d.graphs[id] |
| 131 | if !ok { |
| 132 | return db.NotExists("graph", id) |
| 133 | } |
| 134 | g.keys = append(g.keys, gek) |
| 135 | return nil |
| 136 | } |
| 137 | |
| 138 | func (d *DB) GraphEncryptKeys(_ context.Context, id db.GraphID) ([]*db.GraphEncryptKey, error) { |
| 139 | g, ok := d.graphs[id] |
Callers
nothing calls this directly
Tested by
no test coverage detected