@@ -36,10 +36,6 @@ import (
3636const ImpliedDirectoryMode = 0o755
3737
3838type (
39- // Compression is the state represents if compressed or not.
40- //
41- // Deprecated: use [compression.Compression].
42- Compression = compression.Compression
4339 // WhiteoutFormat is the format of whiteouts unpacked
4440 WhiteoutFormat int
4541
@@ -95,14 +91,6 @@ func NewDefaultArchiver() *Archiver {
9591// in order for the test to pass.
9692type breakoutError error
9793
98- const (
99- Uncompressed = compression .None // Deprecated: use [compression.None].
100- Bzip2 = compression .Bzip2 // Deprecated: use [compression.Bzip2].
101- Gzip = compression .Gzip // Deprecated: use [compression.Gzip].
102- Xz = compression .Xz // Deprecated: use [compression.Xz].
103- Zstd = compression .Zstd // Deprecated: use [compression.Zstd].
104- )
105-
10694const (
10795 AUFSWhiteoutFormat WhiteoutFormat = 0 // AUFSWhiteoutFormat is the default format for whiteouts
10896 OverlayWhiteoutFormat WhiteoutFormat = 1 // OverlayWhiteoutFormat formats whiteout according to the overlay standard.
@@ -126,27 +114,6 @@ func IsArchivePath(path string) bool {
126114 return err == nil
127115}
128116
129- // DetectCompression detects the compression algorithm of the source.
130- //
131- // Deprecated: use [compression.Detect].
132- func DetectCompression (source []byte ) compression.Compression {
133- return compression .Detect (source )
134- }
135-
136- // DecompressStream decompresses the archive and returns a ReaderCloser with the decompressed archive.
137- //
138- // Deprecated: use [compression.DecompressStream].
139- func DecompressStream (archive io.Reader ) (io.ReadCloser , error ) {
140- return compression .DecompressStream (archive )
141- }
142-
143- // CompressStream compresses the dest with specified compression algorithm.
144- //
145- // Deprecated: use [compression.CompressStream].
146- func CompressStream (dest io.Writer , comp compression.Compression ) (io.WriteCloser , error ) {
147- return compression .CompressStream (dest , comp )
148- }
149-
150117// TarModifierFunc is a function that can be passed to ReplaceFileTarWrapper to
151118// modify the contents or header of an entry in the archive. If the file already
152119// exists in the archive the TarModifierFunc will be called with the Header and
@@ -235,13 +202,6 @@ func ReplaceFileTarWrapper(inputTarStream io.ReadCloser, mods map[string]TarModi
235202 return pipeReader
236203}
237204
238- // FileInfoHeaderNoLookups creates a partially-populated tar.Header from fi.
239- //
240- // Deprecated: use [tarheader.FileInfoHeaderNoLookups].
241- func FileInfoHeaderNoLookups (fi os.FileInfo , link string ) (* tar.Header , error ) {
242- return tarheader .FileInfoHeaderNoLookups (fi , link )
243- }
244-
245205// FileInfoHeader creates a populated Header from fi.
246206//
247207// Compared to the archive/tar package, this function fills in less information
0 commit comments