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"` +}