@@ -36,10 +36,6 @@ import (
36
36
const ImpliedDirectoryMode = 0o755
37
37
38
38
type (
39
- // Compression is the state represents if compressed or not.
40
- //
41
- // Deprecated: use [compression.Compression].
42
- Compression = compression.Compression
43
39
// WhiteoutFormat is the format of whiteouts unpacked
44
40
WhiteoutFormat int
45
41
@@ -95,14 +91,6 @@ func NewDefaultArchiver() *Archiver {
95
91
// in order for the test to pass.
96
92
type breakoutError error
97
93
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
-
106
94
const (
107
95
AUFSWhiteoutFormat WhiteoutFormat = 0 // AUFSWhiteoutFormat is the default format for whiteouts
108
96
OverlayWhiteoutFormat WhiteoutFormat = 1 // OverlayWhiteoutFormat formats whiteout according to the overlay standard.
@@ -126,27 +114,6 @@ func IsArchivePath(path string) bool {
126
114
return err == nil
127
115
}
128
116
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
-
150
117
// TarModifierFunc is a function that can be passed to ReplaceFileTarWrapper to
151
118
// modify the contents or header of an entry in the archive. If the file already
152
119
// 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
235
202
return pipeReader
236
203
}
237
204
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
-
245
205
// FileInfoHeader creates a populated Header from fi.
246
206
//
247
207
// Compared to the archive/tar package, this function fills in less information
0 commit comments