MCPcopy
hub / github.com/docker/compose / NewArchiveBuilder

Function NewArchiveBuilder

internal/sync/tar.go:129–135  ·  view source on GitHub ↗
(writer io.Writer)

Source from the content-addressed store, hash-verified

127}
128
129func NewArchiveBuilder(writer io.Writer) *ArchiveBuilder {
130 tw := tar.NewWriter(writer)
131 return &ArchiveBuilder{
132 tw: tw,
133 copyBuf: &bytes.Buffer{},
134 }
135}
136
137func (a *ArchiveBuilder) Close() error {
138 return a.tw.Close()

Callers 1

tarArchiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected