@@ -18,69 +18,92 @@ import (
1818// Type aliases for tar/gzip primitives.
1919type (
2020 // FileEntry represents a file to include in a tar archive.
21+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.FileEntry.
2122 FileEntry = artifact.FileEntry
2223 // TarOptions configures reproducible tar archive creation.
24+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.TarOptions.
2325 TarOptions = artifact.TarOptions
2426 // GzipOptions configures reproducible gzip compression.
27+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.GzipOptions.
2528 GzipOptions = artifact.GzipOptions
2629)
2730
2831// Function forwarding for tar primitives.
2932var (
3033 // DefaultTarOptions returns default options for reproducible tar archives.
34+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.DefaultTarOptions.
3135 DefaultTarOptions = artifact .DefaultTarOptions
3236 // CreateTar creates a reproducible tar archive from the given files.
37+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.CreateTar.
3338 CreateTar = artifact .CreateTar
3439 // ExtractTar extracts files from a tar archive.
40+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.ExtractTar.
3541 ExtractTar = artifact .ExtractTar
3642 // ExtractTarWithLimit extracts files from a tar archive with a per-file size limit.
43+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.ExtractTarWithLimit.
3744 ExtractTarWithLimit = artifact .ExtractTarWithLimit
3845)
3946
4047// Function forwarding for gzip primitives.
4148var (
4249 // DefaultGzipOptions returns default options for reproducible gzip compression.
50+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.DefaultGzipOptions.
4351 DefaultGzipOptions = artifact .DefaultGzipOptions
4452 // Compress creates a reproducible gzip compressed byte slice.
53+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.Compress.
4554 Compress = artifact .Compress
4655 // Decompress decompresses gzip data.
56+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.Decompress.
4757 Decompress = artifact .Decompress
4858 // DecompressWithLimit decompresses gzip data with a size limit.
59+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.DecompressWithLimit.
4960 DecompressWithLimit = artifact .DecompressWithLimit
5061 // CompressTar creates a reproducible .tar.gz from the given files.
62+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.CompressTar.
5163 CompressTar = artifact .CompressTar
5264 // DecompressTar extracts files from a .tar.gz archive.
65+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.DecompressTar.
5366 DecompressTar = artifact .DecompressTar
5467)
5568
5669// Function forwarding for platform helpers.
5770var (
5871 // PlatformString returns the platform in "os/arch" or "os/arch/variant" format.
72+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.PlatformString.
5973 PlatformString = artifact .PlatformString
6074 // ParsePlatform parses a platform string in "os/arch" or "os/arch/variant" format.
75+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.ParsePlatform.
6176 ParsePlatform = artifact .ParsePlatform
6277 // DefaultPlatforms are the default platforms for artifacts.
78+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.DefaultPlatforms.
6379 DefaultPlatforms = artifact .DefaultPlatforms
6480)
6581
6682// Size limit constants re-exported from the artifact package.
6783const (
6884 // MaxTarFileSize is the maximum size of a single file in a tar archive (100MB).
85+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.MaxTarFileSize.
6986 MaxTarFileSize = artifact .MaxTarFileSize
7087 // MaxDecompressedSize is the maximum size of decompressed data (100MB).
88+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.MaxDecompressedSize.
7189 MaxDecompressedSize = artifact .MaxDecompressedSize
7290 // MaxManifestSize is the maximum size of a manifest (1MB).
91+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.MaxManifestSize.
7392 MaxManifestSize = artifact .MaxManifestSize
7493 // MaxBlobSize is the maximum size of a blob (100MB).
94+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.MaxBlobSize.
7595 MaxBlobSize = artifact .MaxBlobSize
7696)
7797
7898// OS and architecture constants for OCI platform specifications.
7999const (
80100 // OSLinux is the Linux OS identifier used in OCI platform specs.
101+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.OSLinux.
81102 OSLinux = artifact .OSLinux
82103 // ArchAMD64 is the x86-64 architecture identifier used in OCI platform specs.
104+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.ArchAMD64.
83105 ArchAMD64 = artifact .ArchAMD64
84106 // ArchARM64 is the 64-bit ARM architecture identifier used in OCI platform specs.
107+ // Deprecated: use github.com/stacklok/toolhive-core/oci/artifact.ArchARM64.
85108 ArchARM64 = artifact .ArchARM64
86109)
0 commit comments