InstanceTarWriter provides an InstanceWriter implementation that handles ID shifting and hardlink tracking.
| 19 | |
| 20 | // InstanceTarWriter provides an InstanceWriter implementation that handles ID shifting and hardlink tracking. |
| 21 | type InstanceTarWriter struct { |
| 22 | tarWriter *tar.Writer |
| 23 | idmapSet *idmap.Set |
| 24 | linkMap map[uint64]string |
| 25 | } |
| 26 | |
| 27 | // NewInstanceTarWriter returns an InstanceTarWriter for the provided target Writer and id map. |
| 28 | func NewInstanceTarWriter(writer io.Writer, idmapSet *idmap.Set) *InstanceTarWriter { |
nothing calls this directly
no outgoing calls
no test coverage detected