| 497 | } |
| 498 | |
| 499 | type namespacedWriter struct { |
| 500 | ctx context.Context |
| 501 | ref string |
| 502 | namespace string |
| 503 | db *DB |
| 504 | provider interface { |
| 505 | content.Provider |
| 506 | content.Ingester |
| 507 | } |
| 508 | l *sync.RWMutex |
| 509 | |
| 510 | w content.Writer |
| 511 | |
| 512 | bref string |
| 513 | started time.Time |
| 514 | desc ocispec.Descriptor |
| 515 | } |
| 516 | |
| 517 | func (nw *namespacedWriter) Close() error { |
| 518 | if nw.w != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected