MCPcopy
hub / github.com/lxc/incus / InstanceTarWriter

Struct InstanceTarWriter

internal/instancewriter/instance_tar_writer.go:21–25  ·  view source on GitHub ↗

InstanceTarWriter provides an InstanceWriter implementation that handles ID shifting and hardlink tracking.

Source from the content-addressed store, hash-verified

19
20// InstanceTarWriter provides an InstanceWriter implementation that handles ID shifting and hardlink tracking.
21type 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.
28func NewInstanceTarWriter(writer io.Writer, idmapSet *idmap.Set) *InstanceTarWriter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected