Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group +kubebuilder:object:generate=true +groupName=delivery.ocm.software
Index ¶
- Constants
- Variables
- type ComponentDescriptor
- type ComponentDescriptorList
- type ComponentDescriptorSpec
- type ComponentDescriptorStatus
- type ComponentVersion
- func (in *ComponentVersion) DeepCopy() *ComponentVersion
- func (in *ComponentVersion) DeepCopyInto(out *ComponentVersion)
- func (in *ComponentVersion) DeepCopyObject() runtime.Object
- func (in ComponentVersion) GetRequeueAfter() time.Duration
- func (in ComponentVersion) LookupReferenceForIdentity(key ocmdesc.IdentitySelector) Reference
- type ComponentVersionList
- type ComponentVersionSpec
- type ComponentVersionStatus
- type ConfigReference
- type Configuration
- type ConfigurationList
- type Identity
- type Localization
- type LocalizationList
- type MutationSpec
- type MutationStatus
- type PatchStrategicMerge
- type PatchStrategicMergeSource
- type PatchStrategicMergeSourceRef
- type PatchStrategicMergeTarget
- type Reference
- type ReferencesConfig
- type Repository
- type Resource
- type ResourceList
- type ResourceRef
- type ResourceSpec
- type ResourceStatus
- type SecretRef
- type SecretRefValue
- type Signature
- type Snapshot
- func (in *Snapshot) DeepCopy() *Snapshot
- func (in *Snapshot) DeepCopyInto(out *Snapshot)
- func (in *Snapshot) DeepCopyObject() runtime.Object
- func (in Snapshot) GetConditions() []metav1.Condition
- func (in *Snapshot) GetStatusConditions() *[]metav1.Condition
- func (in *Snapshot) SetConditions(conditions []metav1.Condition)
- type SnapshotList
- type SnapshotSpec
- type SnapshotStatus
- type SnapshotTemplateSpec
- type Source
- type Version
Constants ¶
const ( SnapshotReady = "SnapshotReady" SnapshotReadyReason = "SnapshotReadyReason" )
const ( ComponentNameKey = "component-name" ComponentVersionKey = "component-version" ResourceNameKey = "resource-name" ResourceVersionKey = "resource-version" SourceNameKey = "source-name" SourceNamespaceKey = "source-namespace" SourceArtifactChecksumKey = "source-artifact-checksum" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "delivery.ocm.software", 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 ComponentDescriptor ¶
type ComponentDescriptor struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ComponentDescriptorSpec `json:"spec,omitempty"` Status ComponentDescriptorStatus `json:"status,omitempty"` }
ComponentDescriptor is the Schema for the componentdescriptors API
func (*ComponentDescriptor) DeepCopy ¶
func (in *ComponentDescriptor) DeepCopy() *ComponentDescriptor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentDescriptor.
func (*ComponentDescriptor) DeepCopyInto ¶
func (in *ComponentDescriptor) DeepCopyInto(out *ComponentDescriptor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentDescriptor) DeepCopyObject ¶
func (in *ComponentDescriptor) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ComponentDescriptor) GetResource ¶
func (in ComponentDescriptor) GetResource(name string) *v3alpha1.Resource
GetResource return a given resource in a component descriptor if it exists.
type ComponentDescriptorList ¶
type ComponentDescriptorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ComponentDescriptor `json:"items"` }
ComponentDescriptorList contains a list of ComponentDescriptor
func (*ComponentDescriptorList) DeepCopy ¶
func (in *ComponentDescriptorList) DeepCopy() *ComponentDescriptorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentDescriptorList.
func (*ComponentDescriptorList) DeepCopyInto ¶
func (in *ComponentDescriptorList) DeepCopyInto(out *ComponentDescriptorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentDescriptorList) DeepCopyObject ¶
func (in *ComponentDescriptorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentDescriptorSpec ¶
type ComponentDescriptorSpec struct { v3alpha1.ComponentVersionSpec `json:",inline"` Version string `json:"version"` }
ComponentDescriptorSpec adds a version to the top level component descriptor definition.
func (*ComponentDescriptorSpec) DeepCopy ¶
func (in *ComponentDescriptorSpec) DeepCopy() *ComponentDescriptorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentDescriptorSpec.
func (*ComponentDescriptorSpec) DeepCopyInto ¶
func (in *ComponentDescriptorSpec) DeepCopyInto(out *ComponentDescriptorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentDescriptorStatus ¶
type ComponentDescriptorStatus struct { }
ComponentDescriptorStatus defines the observed state of ComponentDescriptor
func (*ComponentDescriptorStatus) DeepCopy ¶
func (in *ComponentDescriptorStatus) DeepCopy() *ComponentDescriptorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentDescriptorStatus.
func (*ComponentDescriptorStatus) DeepCopyInto ¶
func (in *ComponentDescriptorStatus) DeepCopyInto(out *ComponentDescriptorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentVersion ¶
type ComponentVersion struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ComponentVersionSpec `json:"spec,omitempty"` Status ComponentVersionStatus `json:"status,omitempty"` }
ComponentVersion is the Schema for the ComponentVersions API
func (*ComponentVersion) DeepCopy ¶
func (in *ComponentVersion) DeepCopy() *ComponentVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentVersion.
func (*ComponentVersion) DeepCopyInto ¶
func (in *ComponentVersion) DeepCopyInto(out *ComponentVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentVersion) DeepCopyObject ¶
func (in *ComponentVersion) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ComponentVersion) GetRequeueAfter ¶
func (in ComponentVersion) GetRequeueAfter() time.Duration
GetRequeueAfter returns the duration after which the ComponentVersion must be reconciled again.
func (ComponentVersion) LookupReferenceForIdentity ¶ added in v0.1.0
func (in ComponentVersion) LookupReferenceForIdentity(key ocmdesc.IdentitySelector) Reference
LookupReferenceForIdentity returns the reference that matches up with the given identity selector.
type ComponentVersionList ¶
type ComponentVersionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ComponentVersion `json:"items"` }
ComponentVersionList contains a list of ComponentVersion
func (*ComponentVersionList) DeepCopy ¶
func (in *ComponentVersionList) DeepCopy() *ComponentVersionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentVersionList.
func (*ComponentVersionList) DeepCopyInto ¶
func (in *ComponentVersionList) DeepCopyInto(out *ComponentVersionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ComponentVersionList) DeepCopyObject ¶
func (in *ComponentVersionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ComponentVersionSpec ¶
type ComponentVersionSpec struct { // +required Interval metav1.Duration `json:"interval"` // Every Component Version has a name. // Name and version are the identifier for a Component Version and therefor for the artifact set described by it. // A component name SHOULD reference a location where the component’s resources (typically source code, and/or documentation) are hosted. // It MUST be a DNS compliant name with lowercase characters and MUST contain a name after the domain. // Examples: // - github.com/pathToYourRepo // +required Component string `json:"component"` // Component versions refer to specific snapshots of a component. A common scenario being the release of a component. // +required Version Version `json:"version"` // +required Repository Repository `json:"repository"` // +optional Verify []Signature `json:"verify,omitempty"` // +optional References ReferencesConfig `json:"references,omitempty"` }
ComponentVersionSpec defines the desired state of ComponentVersion
func (*ComponentVersionSpec) DeepCopy ¶
func (in *ComponentVersionSpec) DeepCopy() *ComponentVersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentVersionSpec.
func (*ComponentVersionSpec) DeepCopyInto ¶
func (in *ComponentVersionSpec) DeepCopyInto(out *ComponentVersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentVersionStatus ¶
type ComponentVersionStatus struct { ComponentDescriptor Reference `json:"componentDescriptor,omitempty"` ReconciledVersion string `json:"reconciledVersion,omitempty"` Verified bool `json:"verified,omitempty"` }
ComponentVersionStatus defines the observed state of ComponentVersion
func (*ComponentVersionStatus) DeepCopy ¶
func (in *ComponentVersionStatus) DeepCopy() *ComponentVersionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentVersionStatus.
func (*ComponentVersionStatus) DeepCopyInto ¶
func (in *ComponentVersionStatus) DeepCopyInto(out *ComponentVersionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigReference ¶ added in v0.1.0
type ConfigReference struct { // +required Resource Source `json:"resource"` }
func (*ConfigReference) DeepCopy ¶ added in v0.1.0
func (in *ConfigReference) DeepCopy() *ConfigReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigReference.
func (*ConfigReference) DeepCopyInto ¶ added in v0.1.0
func (in *ConfigReference) DeepCopyInto(out *ConfigReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MutationSpec `json:"spec,omitempty"` Status MutationStatus `json:"status,omitempty"` }
Configuration is the Schema for the configurations API
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationList ¶
type ConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Configuration `json:"items"` }
ConfigurationList contains a list of Configuration
func (*ConfigurationList) DeepCopy ¶
func (in *ConfigurationList) DeepCopy() *ConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationList.
func (*ConfigurationList) DeepCopyInto ¶
func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigurationList) DeepCopyObject ¶
func (in *ConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Identity ¶ added in v0.1.0
Identity defines a cache entry. It is used to generate a hash that is then used by the caching layer to identify an entry. +kubebuilder:validation:MaxProperties=20
func (Identity) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Identity.
func (Identity) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Localization ¶
type Localization struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MutationSpec `json:"spec,omitempty"` Status MutationStatus `json:"status,omitempty"` }
Localization is the Schema for the localizations API
func (*Localization) DeepCopy ¶
func (in *Localization) DeepCopy() *Localization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Localization.
func (*Localization) DeepCopyInto ¶
func (in *Localization) DeepCopyInto(out *Localization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Localization) DeepCopyObject ¶
func (in *Localization) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalizationList ¶
type LocalizationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Localization `json:"items"` }
LocalizationList contains a list of Localization
func (*LocalizationList) DeepCopy ¶
func (in *LocalizationList) DeepCopy() *LocalizationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalizationList.
func (*LocalizationList) DeepCopyInto ¶
func (in *LocalizationList) DeepCopyInto(out *LocalizationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalizationList) DeepCopyObject ¶
func (in *LocalizationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MutationSpec ¶
type MutationSpec struct { // +required Interval metav1.Duration `json:"interval"` // +required ComponentVersionRef meta.NamespacedObjectReference `json:"componentVersionRef"` // +required Source Source `json:"source"` // +optional ConfigRef *ConfigReference `json:"configRef,omitempty"` // +required SnapshotTemplate SnapshotTemplateSpec `json:"snapshotTemplate"` // +optional Values map[string]string `json:"values,omitempty"` // +optional PatchStrategicMerge *PatchStrategicMerge `json:"patchStrategicMerge,omitempty"` }
MutationSpec defines a common spec between Localization and Configuration.
func (*MutationSpec) DeepCopy ¶
func (in *MutationSpec) DeepCopy() *MutationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutationSpec.
func (*MutationSpec) DeepCopyInto ¶
func (in *MutationSpec) DeepCopyInto(out *MutationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MutationSpec) GetRequeueAfter ¶
func (in MutationSpec) GetRequeueAfter() time.Duration
GetRequeueAfter returns the duration after which the Localization must be reconciled again.
func (MutationSpec) GetSourceSnapshotKey ¶ added in v0.1.0
func (in MutationSpec) GetSourceSnapshotKey() types.NamespacedName
GetSourceSnapshotKey is a convenient wrapper to get the NamespacedName for a snapshot reference on the object.
type MutationStatus ¶
type MutationStatus struct { // ObservedGeneration is the last reconciled generation. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // +optional LatestSnapshotDigest string `json:"latestSnapshotDigest,omitempty"` LatestConfigVersion string `json:"latestConfigVersion,omitempty"` }
MutationStatus defines a common status for Localizations and Configurations.
func (*MutationStatus) DeepCopy ¶
func (in *MutationStatus) DeepCopy() *MutationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutationStatus.
func (*MutationStatus) DeepCopyInto ¶
func (in *MutationStatus) DeepCopyInto(out *MutationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PatchStrategicMerge ¶
type PatchStrategicMerge struct { // +required Source PatchStrategicMergeSource `json:"source"` // +required Target PatchStrategicMergeTarget `json:"target"` }
PatchStrategicMerge contains the source and target details required to perform a strategic merge
func (*PatchStrategicMerge) DeepCopy ¶
func (in *PatchStrategicMerge) DeepCopy() *PatchStrategicMerge
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchStrategicMerge.
func (*PatchStrategicMerge) DeepCopyInto ¶
func (in *PatchStrategicMerge) DeepCopyInto(out *PatchStrategicMerge)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PatchStrategicMergeSource ¶
type PatchStrategicMergeSource struct { // +required SourceRef PatchStrategicMergeSourceRef `json:"sourceRef"` // +required Path string `json:"path"` }
PatchStrategicMergeSource contains the details required to retrieve the source from a Flux source
func (*PatchStrategicMergeSource) DeepCopy ¶
func (in *PatchStrategicMergeSource) DeepCopy() *PatchStrategicMergeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchStrategicMergeSource.
func (*PatchStrategicMergeSource) DeepCopyInto ¶
func (in *PatchStrategicMergeSource) DeepCopyInto(out *PatchStrategicMergeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PatchStrategicMergeSourceRef ¶ added in v0.1.0
type PatchStrategicMergeSourceRef struct { // +kubebuilder:validation:Enum=OCIRepository;GitRepository;Bucket // +required Kind string `json:"kind"` // +required Name string `json:"name"` // +required Namespace string `json:"namespace"` }
PatchStrategicMergeSourceRef contains the flux source identity metadata
func (*PatchStrategicMergeSourceRef) DeepCopy ¶ added in v0.1.0
func (in *PatchStrategicMergeSourceRef) DeepCopy() *PatchStrategicMergeSourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchStrategicMergeSourceRef.
func (*PatchStrategicMergeSourceRef) DeepCopyInto ¶ added in v0.1.0
func (in *PatchStrategicMergeSourceRef) DeepCopyInto(out *PatchStrategicMergeSourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PatchStrategicMergeTarget ¶
type PatchStrategicMergeTarget struct {
Path string `json:"path"`
}
PatchStrategicMergeTarget provides details about the merge target
func (*PatchStrategicMergeTarget) DeepCopy ¶
func (in *PatchStrategicMergeTarget) DeepCopy() *PatchStrategicMergeTarget
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchStrategicMergeTarget.
func (*PatchStrategicMergeTarget) DeepCopyInto ¶
func (in *PatchStrategicMergeTarget) DeepCopyInto(out *PatchStrategicMergeTarget)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Reference ¶
type Reference struct { // +required Name string `json:"name"` // +required Version string `json:"version"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless References []Reference `json:"references,omitempty"` // +optional ExtraIdentity map[string]string `json:"extraIdentity,omitempty"` // +optional ComponentDescriptorRef meta.NamespacedObjectReference `json:"componentDescriptorRef,omitempty"` }
Reference contains all referred components and their versions.
func (*Reference) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Reference.
func (*Reference) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReferencesConfig ¶
type ReferencesConfig struct { // +optional Expand bool `json:"expand,omitempty"` }
func (*ReferencesConfig) DeepCopy ¶
func (in *ReferencesConfig) DeepCopy() *ReferencesConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReferencesConfig.
func (*ReferencesConfig) DeepCopyInto ¶
func (in *ReferencesConfig) DeepCopyInto(out *ReferencesConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct { //TODO@souleb: do we need a scheme for the url? // add description for each field // Do we need a type field? (e.g. oci, git, s3, etc.) URL string `json:"url"` SecretRef SecretRef `json:"secretRef"` }
Repository defines the OCM Repository.
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.
type Resource ¶
type Resource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSpec `json:"spec,omitempty"` Status ResourceStatus `json:"status,omitempty"` }
Resource is the Schema for the resources API
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Resource) GetRequeueAfter ¶
GetRequeueAfter returns the duration after which the Resource must be reconciled again.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Resource `json:"items"` }
ResourceList contains a list of Resource
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceList) DeepCopyObject ¶
func (in *ResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceRef ¶ added in v0.1.0
type ResourceRef struct { // +required Name string `json:"name"` // +optional Version string `json:"version,omitempty"` // +optional ExtraIdentity map[string]string `json:"extraIdentity,omitempty"` // ReferencePath is a list of references with identities that include this resource. // referencePath: // - name: installer // +optional ReferencePath []map[string]string `json:"referencePath,omitempty"` }
ResourceRef define a resource. TODO: Change this to ocmmetav1.ResourceReference The ocmmetav1.ResourceReference can also contain version!
func (*ResourceRef) DeepCopy ¶ added in v0.1.0
func (in *ResourceRef) DeepCopy() *ResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.
func (*ResourceRef) DeepCopyInto ¶ added in v0.1.0
func (in *ResourceRef) DeepCopyInto(out *ResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { // +required Interval metav1.Duration `json:"interval"` // +required ComponentVersionRef meta.NamespacedObjectReference `json:"componentVersionRef"` // Resource names a Source that this Resource watches. // +required Resource ResourceRef `json:"resource"` // +required SnapshotTemplate SnapshotTemplateSpec `json:"snapshotTemplate"` }
ResourceSpec defines the desired state of Resource
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceStatus ¶
type ResourceStatus struct { // ObservedGeneration is the last reconciled generation. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // +optional LastAppliedResourceVersion string `json:"lastAppliedResourceVersion,omitempty"` }
ResourceStatus defines the observed state of Resource
func (*ResourceStatus) DeepCopy ¶
func (in *ResourceStatus) DeepCopy() *ResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
func (*ResourceStatus) DeepCopyInto ¶
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct {
Name string `json:"name"`
}
SecretRef is a reference to a secret used to access the OCI repository.
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRefValue ¶ added in v0.1.0
type SecretRefValue struct {
SecretRef SecretRef `json:"secretRef"`
}
SecretRefValue clearly denotes that the requested option is a Secret.
func (*SecretRefValue) DeepCopy ¶ added in v0.1.0
func (in *SecretRefValue) DeepCopy() *SecretRefValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRefValue.
func (*SecretRefValue) DeepCopyInto ¶ added in v0.1.0
func (in *SecretRefValue) DeepCopyInto(out *SecretRefValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Signature ¶
type Signature struct { // Name of the signature. Name string `json:"name"` // Key which is used for verification. PublicKey SecretRefValue `json:"publicKey"` }
Signature defines the details of a signature to use for verification.
func (*Signature) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Signature.
func (*Signature) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Snapshot ¶
type Snapshot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SnapshotSpec `json:"spec,omitempty"` Status SnapshotStatus `json:"status,omitempty"` }
Snapshot is the Schema for the snapshots API
func (*Snapshot) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Snapshot.
func (*Snapshot) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Snapshot) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Snapshot) GetConditions ¶
GetConditions returns the status conditions of the object.
func (*Snapshot) GetStatusConditions ¶ added in v0.1.0
GetStatusConditions returns a pointer to the Status.Conditions slice. Deprecated: use GetConditions instead.
func (*Snapshot) SetConditions ¶
SetConditions sets the status conditions on the object.
type SnapshotList ¶
type SnapshotList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Snapshot `json:"items"` }
SnapshotList contains a list of Snapshot
func (*SnapshotList) DeepCopy ¶
func (in *SnapshotList) DeepCopy() *SnapshotList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotList.
func (*SnapshotList) DeepCopyInto ¶
func (in *SnapshotList) DeepCopyInto(out *SnapshotList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SnapshotList) DeepCopyObject ¶
func (in *SnapshotList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SnapshotSpec ¶
type SnapshotSpec struct { Identity Identity `json:"identity"` // +optional CreateFluxSource bool `json:"createFluxSource,omitempty"` Digest string `json:"digest"` Tag string `json:"tag"` }
SnapshotSpec defines the desired state of Snapshot
func (*SnapshotSpec) DeepCopy ¶
func (in *SnapshotSpec) DeepCopy() *SnapshotSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotSpec.
func (*SnapshotSpec) DeepCopyInto ¶
func (in *SnapshotSpec) DeepCopyInto(out *SnapshotSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotStatus ¶
type SnapshotStatus struct { // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // Digest is calculated by the caching layer. // +optional LastReconciledDigest string `json:"digest,omitempty"` // Tag defines the explicit tag that was used to create the related snapshot and cache entry. // +optional LastReconciledTag string `json:"tag,omitempty"` // RepositoryURL has the concrete URL pointing to the local registry including the service name. // +optional RepositoryURL string `json:"repositoryURL,omitempty"` }
SnapshotStatus defines the observed state of Snapshot
func (*SnapshotStatus) DeepCopy ¶
func (in *SnapshotStatus) DeepCopy() *SnapshotStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotStatus.
func (*SnapshotStatus) DeepCopyInto ¶
func (in *SnapshotStatus) DeepCopyInto(out *SnapshotStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SnapshotTemplateSpec ¶
type SnapshotTemplateSpec struct { // +required Name string `json:"name"` //TODO@souleb: add a description, is that actually used? // +optional Labels map[string]string `json:"labels,omitempty"` // +optional Annotations map[string]string `json:"annotations,omitempty"` // +optional CreateFluxSource bool `json:"createFluxSource,omitempty"` }
SnapshotTemplateSpec defines the template used to create snapshots
func (*SnapshotTemplateSpec) DeepCopy ¶
func (in *SnapshotTemplateSpec) DeepCopy() *SnapshotTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SnapshotTemplateSpec.
func (*SnapshotTemplateSpec) DeepCopyInto ¶
func (in *SnapshotTemplateSpec) DeepCopyInto(out *SnapshotTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Source ¶ added in v0.1.0
type Source struct { // +optional SourceRef *meta.NamespacedObjectKindReference `json:"sourceRef,omitempty"` // +optional ResourceRef *ResourceRef `json:"resourceRef,omitempty"` }
Source defines a possible incoming format for sources that this object needs for further configuration/localization steps. +kubebuilder:validation:MinProperties=1
func (*Source) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Version ¶
type Version struct {
Semver string `json:"semver,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.