-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1a726a
commit b32c60f
Showing
12 changed files
with
81 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
"hauler.dev/go/hauler/pkg/consts" | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
) | ||
|
||
const ( | ||
Version = "v1alpha1" | ||
ContentGroup = "content.hauler.cattle.io" | ||
CollectionGroup = "collection.hauler.cattle.io" | ||
) | ||
|
||
var ( | ||
ContentGroupVersion = schema.GroupVersion{Group: ContentGroup, Version: Version} | ||
ContentGroupVersion = schema.GroupVersion{Group: consts.ContentGroup, Version: consts.APIVersion} | ||
// SchemeBuilder = &scheme.Builder{GroupVersion: ContentGroupVersion} | ||
|
||
CollectionGroupVersion = schema.GroupVersion{Group: CollectionGroup, Version: Version} | ||
CollectionGroupVersion = schema.GroupVersion{Group: consts.CollectionGroup, Version: consts.APIVersion} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,73 @@ | ||
package consts | ||
|
||
const ( | ||
// container media types | ||
OCIManifestSchema1 = "application/vnd.oci.image.manifest.v1+json" | ||
DockerManifestSchema2 = "application/vnd.docker.distribution.manifest.v2+json" | ||
DockerManifestListSchema2 = "application/vnd.docker.distribution.manifest.list.v2+json" | ||
OCIImageIndexSchema = "application/vnd.oci.image.index.v1+json" | ||
DockerConfigJSON = "application/vnd.docker.container.image.v1+json" | ||
DockerLayer = "application/vnd.docker.image.rootfs.diff.tar.gzip" | ||
DockerForeignLayer = "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip" | ||
DockerUncompressedLayer = "application/vnd.docker.image.rootfs.diff.tar" | ||
OCILayer = "application/vnd.oci.image.layer.v1.tar+gzip" | ||
OCIArtifact = "application/vnd.oci.empty.v1+json" | ||
|
||
DockerConfigJSON = "application/vnd.docker.container.image.v1+json" | ||
DockerLayer = "application/vnd.docker.image.rootfs.diff.tar.gzip" | ||
DockerForeignLayer = "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip" | ||
DockerUncompressedLayer = "application/vnd.docker.image.rootfs.diff.tar" | ||
OCILayer = "application/vnd.oci.image.layer.v1.tar+gzip" | ||
OCIArtifact = "application/vnd.oci.empty.v1+json" | ||
|
||
// ChartConfigMediaType is the reserved media type for the Helm chart manifest config | ||
// helm chart media types | ||
ChartConfigMediaType = "application/vnd.cncf.helm.config.v1+json" | ||
ChartLayerMediaType = "application/vnd.cncf.helm.chart.content.v1.tar+gzip" | ||
ProvLayerMediaType = "application/vnd.cncf.helm.chart.provenance.v1.prov" | ||
|
||
// ChartLayerMediaType is the reserved media type for Helm chart package content | ||
ChartLayerMediaType = "application/vnd.cncf.helm.chart.content.v1.tar+gzip" | ||
|
||
// ProvLayerMediaType is the reserved media type for Helm chart provenance files | ||
ProvLayerMediaType = "application/vnd.cncf.helm.chart.provenance.v1.prov" | ||
|
||
// FileLayerMediaType is the reserved media type for File content layers | ||
FileLayerMediaType = "application/vnd.content.hauler.file.layer.v1" | ||
|
||
// FileLocalConfigMediaType is the reserved media type for File config | ||
// file media types | ||
FileLayerMediaType = "application/vnd.content.hauler.file.layer.v1" | ||
FileLocalConfigMediaType = "application/vnd.content.hauler.file.local.config.v1+json" | ||
FileDirectoryConfigMediaType = "application/vnd.content.hauler.file.directory.config.v1+json" | ||
FileHttpConfigMediaType = "application/vnd.content.hauler.file.http.config.v1+json" | ||
|
||
// MemoryConfigMediaType is the reserved media type for Memory config for a generic set of bytes stored in memory | ||
// memory media types | ||
MemoryConfigMediaType = "application/vnd.content.hauler.memory.config.v1+json" | ||
|
||
// WasmArtifactLayerMediaType is the reserved media type for WASM artifact layers | ||
// wasm media types | ||
WasmArtifactLayerMediaType = "application/vnd.wasm.content.layer.v1+wasm" | ||
WasmConfigMediaType = "application/vnd.wasm.config.v1+json" | ||
|
||
// WasmConfigMediaType is the reserved media type for WASM configs | ||
WasmConfigMediaType = "application/vnd.wasm.config.v1+json" | ||
|
||
// unknown media types | ||
UnknownManifest = "application/vnd.hauler.cattle.io.unknown.v1+json" | ||
UnknownLayer = "application/vnd.content.hauler.unknown.layer" | ||
Unknown = "unknown" | ||
|
||
// vendor prefixes | ||
OCIVendorPrefix = "vnd.oci" | ||
DockerVendorPrefix = "vnd.docker" | ||
HaulerVendorPrefix = "vnd.hauler" | ||
OCIImageIndexFile = "index.json" | ||
|
||
KindAnnotationName = "kind" | ||
KindAnnotationImage = "dev.cosignproject.cosign/image" | ||
KindAnnotationIndex = "dev.cosignproject.cosign/imageIndex" | ||
|
||
CarbideRegistry = "rgcrprod.azurecr.us" | ||
// annotation keys | ||
KindAnnotationName = "kind" | ||
KindAnnotationImage = "dev.cosignproject.cosign/image" | ||
KindAnnotationIndex = "dev.cosignproject.cosign/imageIndex" | ||
ImageAnnotationKey = "hauler.dev/key" | ||
ImageAnnotationPlatform = "hauler.dev/platform" | ||
ImageAnnotationRegistry = "hauler.dev/registry" | ||
|
||
DefaultStoreName = "store" | ||
// content kinds | ||
ImagesContentKind = "Images" | ||
ChartsContentKind = "Charts" | ||
FilesContentKind = "Files" | ||
DriverContentKind = "Driver" | ||
ImageTxtsContentKind = "ImageTxts" | ||
ChartsCollectionKind = "ThickCharts" | ||
|
||
// content groups | ||
ContentGroup = "content.hauler.cattle.io" | ||
CollectionGroup = "collection.hauler.cattle.io" | ||
|
||
// other constraints | ||
CarbideRegistry = "rgcrprod.azurecr.us" | ||
APIVersion = "v1alpha1" | ||
DefaultNamespace = "hauler" | ||
DefaultTag = "latest" | ||
DefaultStoreName = "store" | ||
DefaultRetries = 3 | ||
RetriesInterval = 5 | ||
OCIImageIndexFile = "index.json" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.