Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the atlas v1alpha1 API group +kubebuilder:object:generate=true +groupName=atlas.jpereira.co.uk
Index ¶
- Constants
- Variables
- type AtlasStatus
- type Condition
- type ConditionType
- type Conditions
- type Product
- type ProductList
- type ProductLocation
- type ProductRelease
- type ProductReleaseList
- type ProductReleaseSpec
- type ProductReleaseStatus
- type ProductSpec
- type ProductStatus
- type Repository
- type RepositoryList
- type RepositorySpec
- type RepositoryStatus
- func (in *RepositoryStatus) AddCondition(condition ConditionType, status corev1.ConditionStatus, message string)
- func (in RepositoryStatus) Condition(condition ConditionType) corev1.ConditionStatus
- func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
- func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
- type Version
Constants ¶
const ImageUnreachable corev1.ConditionStatus = "ImageUnreachable"
const MetadataFormat corev1.ConditionStatus = "MetadataFormat"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "atlas.jpereira.co.uk", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AtlasStatus ¶
type AtlasStatus struct { Conditions Conditions `json:"conditions,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
func (*AtlasStatus) DeepCopy ¶
func (in *AtlasStatus) DeepCopy() *AtlasStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AtlasStatus.
func (*AtlasStatus) DeepCopyInto ¶
func (in *AtlasStatus) DeepCopyInto(out *AtlasStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // Type of condition. // +required Type ConditionType `json:"type" description:"type of status condition"` // Status of the condition, one of True, False, Unknown. // +required Status corev1.ConditionStatus `json:"status" description:"status of the condition, one of True, False, Unknown"` // A human readable message indicating details about the transition. // +optional Message string `json:"message,omitempty" description:"human-readable message indicating details about last transition"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionType ¶
type ConditionType string
ConditionType is a camel-cased condition type.
const ( // ConditionReady specifies that the resource is ready. // For long-running resources. ConditionReady ConditionType = "Ready" // ConditionSucceeded specifies that the resource has finished. // For resource which run to completion. ConditionSucceeded ConditionType = "Succeeded" )
type Conditions ¶
type Conditions []Condition
Conditions is the schema for the conditions portion of the payload
func (Conditions) DeepCopy ¶
func (in Conditions) DeepCopy() Conditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conditions.
func (Conditions) DeepCopyInto ¶
func (in Conditions) DeepCopyInto(out *Conditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Product ¶
type Product struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProductSpec `json:"spec,omitempty"` Status ProductStatus `json:"status,omitempty"` }
Product is the Schema for the products API
func (*Product) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Product.
func (*Product) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Product) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProductList ¶
type ProductList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Product `json:"items"` }
ProductList contains a list of Product
func (*ProductList) DeepCopy ¶
func (in *ProductList) DeepCopy() *ProductList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductList.
func (*ProductList) DeepCopyInto ¶
func (in *ProductList) DeepCopyInto(out *ProductList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProductList) DeepCopyObject ¶
func (in *ProductList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProductLocation ¶
type ProductLocation struct { // +kubebuilder:validation:Required ImageRepo string `json:"imageRepo,omitempty"` // +kubebuilder:validation:Required ImageSHA string `json:"imageSha,omitempty"` // +kubebuilder:validation:Required Version Version `json:"version,omitempty"` }
func (*ProductLocation) DeepCopy ¶
func (in *ProductLocation) DeepCopy() *ProductLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductLocation.
func (*ProductLocation) DeepCopyInto ¶
func (in *ProductLocation) DeepCopyInto(out *ProductLocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProductLocation) Equals ¶
func (in *ProductLocation) Equals(other ProductLocation) bool
func (*ProductLocation) VersionMatch ¶
func (in *ProductLocation) VersionMatch(other ProductLocation) bool
type ProductRelease ¶
type ProductRelease struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProductReleaseSpec `json:"spec,omitempty"` Status ProductReleaseStatus `json:"status,omitempty"` }
ProductRelease is the Schema for the productreleases API
func (*ProductRelease) CompareVersion ¶
func (in *ProductRelease) CompareVersion(version version) bool
func (*ProductRelease) DeepCopy ¶
func (in *ProductRelease) DeepCopy() *ProductRelease
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductRelease.
func (*ProductRelease) DeepCopyInto ¶
func (in *ProductRelease) DeepCopyInto(out *ProductRelease)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProductRelease) DeepCopyObject ¶
func (in *ProductRelease) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProductReleaseList ¶
type ProductReleaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ProductRelease `json:"items"` }
ProductReleaseList contains a list of ProductRelease
func (*ProductReleaseList) DeepCopy ¶
func (in *ProductReleaseList) DeepCopy() *ProductReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductReleaseList.
func (*ProductReleaseList) DeepCopyInto ¶
func (in *ProductReleaseList) DeepCopyInto(out *ProductReleaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProductReleaseList) DeepCopyObject ¶
func (in *ProductReleaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProductReleaseSpec ¶
type ProductReleaseSpec struct { Slug string `json:"slug,omitempty"` Version Version `json:"version,omitempty"` Image string `json:"image,omitempty"` }
ProductReleaseSpec defines the desired state of ProductRelease
func (*ProductReleaseSpec) DeepCopy ¶
func (in *ProductReleaseSpec) DeepCopy() *ProductReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductReleaseSpec.
func (*ProductReleaseSpec) DeepCopyInto ¶
func (in *ProductReleaseSpec) DeepCopyInto(out *ProductReleaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductReleaseStatus ¶
type ProductReleaseStatus struct {
AtlasStatus `json:",inline"`
}
ProductReleaseStatus defines the observed state of ProductRelease
func (*ProductReleaseStatus) DeepCopy ¶
func (in *ProductReleaseStatus) DeepCopy() *ProductReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductReleaseStatus.
func (*ProductReleaseStatus) DeepCopyInto ¶
func (in *ProductReleaseStatus) DeepCopyInto(out *ProductReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductSpec ¶
type ProductSpec struct { // +kubebuilder:validation:Required Name string `json:"name,omitempty"` // +kubebuilder:validation:Required Slug string `json:"slug,omitempty"` Import bool `json:"import,omitempty"` BaseRegistryLocation string `json:"baseRegistryLocation,omitempty"` Description string `json:"description,omitempty"` Versions []ProductLocation `json:"versions,omitempty"` }
ProductSpec defines the desired state of Product
func (*ProductSpec) DeepCopy ¶
func (in *ProductSpec) DeepCopy() *ProductSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductSpec.
func (*ProductSpec) DeepCopyInto ¶
func (in *ProductSpec) DeepCopyInto(out *ProductSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductStatus ¶
type ProductStatus struct { AtlasStatus `json:",inline"` Versions []ProductLocation `json:"versions,omitempty"` }
ProductStatus defines the observed state of Product
func (*ProductStatus) DeepCopy ¶
func (in *ProductStatus) DeepCopy() *ProductStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProductStatus.
func (*ProductStatus) DeepCopyInto ¶
func (in *ProductStatus) DeepCopyInto(out *ProductStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RepositorySpec `json:"spec,omitempty"` Status RepositoryStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status Repository is the Schema for the repositories API
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Repository) DeepCopyObject ¶
func (in *Repository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Repository `json:"items"` }
RepositoryList contains a list of Repository
func (*RepositoryList) DeepCopy ¶
func (in *RepositoryList) DeepCopy() *RepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList.
func (*RepositoryList) DeepCopyInto ¶
func (in *RepositoryList) DeepCopyInto(out *RepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryList) DeepCopyObject ¶
func (in *RepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositorySpec ¶
type RepositorySpec struct { Tag string `json:"tag,omitempty"` ServiceAccount string `json:"serviceAccount,omitempty"` }
RepositorySpec defines the desired state of Repository
func (*RepositorySpec) DeepCopy ¶
func (in *RepositorySpec) DeepCopy() *RepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec.
func (*RepositorySpec) DeepCopyInto ¶
func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryStatus ¶
type RepositoryStatus struct { AtlasStatus `json:",inline"` LatestImage string `json:"latestImage,omitempty"` }
RepositoryStatus defines the observed state of Repository
func (*RepositoryStatus) AddCondition ¶
func (in *RepositoryStatus) AddCondition(condition ConditionType, status corev1.ConditionStatus, message string)
func (RepositoryStatus) Condition ¶
func (in RepositoryStatus) Condition(condition ConditionType) corev1.ConditionStatus
func (*RepositoryStatus) DeepCopy ¶
func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus.
func (*RepositoryStatus) DeepCopyInto ¶
func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Version ¶
type Version struct { Major string `json:"major,omitempty"` Minor string `json:"minor,omitempty"` Patch string `json:"patch,omitempty"` }
func (*Version) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.