Method
AddGraphSalt
(_ context.Context, id db.GraphID, salt *db.GraphSalt)
Source from the content-addressed store, hash-verified
| 110 | } |
| 111 | |
| 112 | func (d *DB) AddGraphSalt(_ context.Context, id db.GraphID, salt *db.GraphSalt) error { |
| 113 | g, ok := d.graphs[id] |
| 114 | if !ok { |
| 115 | return db.NotExists("graph", id) |
| 116 | } |
| 117 | g.salts = append(g.salts, salt) |
| 118 | return nil |
| 119 | } |
| 120 | |
| 121 | func (d *DB) GraphSalts(_ context.Context, id db.GraphID) ([]*db.GraphSalt, error) { |
| 122 | g, ok := d.graphs[id] |
Callers
nothing calls this directly
Tested by
no test coverage detected