MCPcopy Index your code
hub / github.com/devspace-sh/devspace / NewArchiver

Function NewArchiver

pkg/devspace/sync/tar.go:199–207  ·  view source on GitHub ↗

NewArchiver creates a new archiver

(basePath string, writer *tar.Writer, ignoreMatcher ignoreparser.IgnoreParser)

Source from the content-addressed store, hash-verified

197
198// NewArchiver creates a new archiver
199func NewArchiver(basePath string, writer *tar.Writer, ignoreMatcher ignoreparser.IgnoreParser) *Archiver {
200 return &Archiver{
201 basePath: basePath,
202
203 ignoreMatcher: ignoreMatcher,
204 writer: writer,
205 writtenFiles: make(map[string]*FileInformation),
206 }
207}
208
209// WrittenFiles returns the written files by the archiver
210func (a *Archiver) WrittenFiles() map[string]*FileInformation {

Callers 2

writeTarFunction · 0.92
compressMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected