From cee4bddbc0f034a7c04a75efead60ab4ab974c61 Mon Sep 17 00:00:00 2001 From: Matt Nikkel Date: Mon, 6 Dec 2021 13:46:31 -0500 Subject: [PATCH] Add ImageTxts collection API definition --- .../hauler.cattle.io/v1alpha1/imagetxt.go | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkg/apis/hauler.cattle.io/v1alpha1/imagetxt.go diff --git a/pkg/apis/hauler.cattle.io/v1alpha1/imagetxt.go b/pkg/apis/hauler.cattle.io/v1alpha1/imagetxt.go new file mode 100644 index 0000000..c9c71f3 --- /dev/null +++ b/pkg/apis/hauler.cattle.io/v1alpha1/imagetxt.go @@ -0,0 +1,30 @@ +package v1alpha1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +const ( + ImageTxtsContentKind = "ImageTxts" +) + +type ImageTxts struct { + *metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec ImageTxtsSpec `json:"spec,omitempty"` +} + +type ImageTxtsSpec struct { + ImageTxts []ImageTxt `json:"imageTxts,omitempty"` +} + +type ImageTxt struct { + Ref string `json:"ref,omitempty"` + Sources ImageTxtSources `json:"sources,omitempty"` +} + +type ImageTxtSources struct { + Include []string `json:"include,omitempty"` + Exclude []string `json:"exclude,omitempty"` +}