(ctx context.Context, snap *Snapshot, commit ksuid.KSUID)
| 213 | } |
| 214 | |
| 215 | func (s *Store) putBase(ctx context.Context, snap *Snapshot, commit ksuid.KSUID) error { |
| 216 | b, err := snap.serialize() |
| 217 | if err != nil { |
| 218 | return err |
| 219 | } |
| 220 | return storage.Put(ctx, s.engine, s.basePathOf(commit), bytes.NewReader(b)) |
| 221 | } |
| 222 | |
| 223 | func (s *Store) basePathOf(commit ksuid.KSUID) *storage.URI { |
| 224 | return s.path.JoinPath(commit.String() + ".base.bsup") |
no test coverage detected