v1alpha2

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the zora v1alpha2 API group +kubebuilder:object:generate=true +groupName=zora.undistro.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "zora.undistro.io", Version: "v1alpha2"}

	// SchemeGroupVersion is a copy of GroupVersion, used by client-gen
	SchemeGroupVersion = GroupVersion

	// 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

func Resource added in v0.9.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CustomCheck

type CustomCheck struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CustomCheckSpec   `json:"spec,omitempty"`
	Status CustomCheckStatus `json:"status,omitempty"`
}

CustomCheck is the Schema for the customchecks API +genclient

func (*CustomCheck) DeepCopy

func (in *CustomCheck) DeepCopy() *CustomCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCheck.

func (*CustomCheck) DeepCopyInto

func (in *CustomCheck) DeepCopyInto(out *CustomCheck)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomCheck) DeepCopyObject

func (in *CustomCheck) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CustomCheck) FileName

func (r *CustomCheck) FileName() string

func (*CustomCheck) GetParams

func (r *CustomCheck) GetParams() map[string]interface{}

func (*CustomCheck) SetReadyStatus

func (r *CustomCheck) SetReadyStatus(ready bool, reason, msg string)

func (*CustomCheck) ToMarvin

func (r *CustomCheck) ToMarvin() *marvin.Check

type CustomCheckList

type CustomCheckList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CustomCheck `json:"items"`
}

CustomCheckList contains a list of CustomCheck

func (*CustomCheckList) DeepCopy

func (in *CustomCheckList) DeepCopy() *CustomCheckList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCheckList.

func (*CustomCheckList) DeepCopyInto

func (in *CustomCheckList) DeepCopyInto(out *CustomCheckList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomCheckList) DeepCopyObject

func (in *CustomCheckList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CustomCheckSpec

type CustomCheckSpec struct {
	v1alpha1.CustomCheckSpec `json:",inline"`

	Variables []Variable `json:"variables,omitempty"`
}

CustomCheckSpec defines the desired state of CustomCheck

func (*CustomCheckSpec) DeepCopy

func (in *CustomCheckSpec) DeepCopy() *CustomCheckSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCheckSpec.

func (*CustomCheckSpec) DeepCopyInto

func (in *CustomCheckSpec) DeepCopyInto(out *CustomCheckSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomCheckStatus

type CustomCheckStatus struct {
	v1alpha1.Status `json:",inline"`
}

CustomCheckStatus defines the observed state of CustomCheck

func (*CustomCheckStatus) DeepCopy

func (in *CustomCheckStatus) DeepCopy() *CustomCheckStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCheckStatus.

func (*CustomCheckStatus) DeepCopyInto

func (in *CustomCheckStatus) DeepCopyInto(out *CustomCheckStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Variable

type Variable marvin.Variable

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Vulnerability added in v0.9.0

type Vulnerability struct {
	v1alpha1.VulnerabilityCommon `json:",inline"`
	Packages                     []v1alpha1.Package `json:"packages"`
}

func (*Vulnerability) DeepCopy added in v0.9.0

func (in *Vulnerability) DeepCopy() *Vulnerability

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vulnerability.

func (*Vulnerability) DeepCopyInto added in v0.9.0

func (in *Vulnerability) DeepCopyInto(out *Vulnerability)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VulnerabilityReport added in v0.9.0

type VulnerabilityReport struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VulnerabilityReportSpec   `json:"spec,omitempty"`
	Status VulnerabilityReportStatus `json:"status,omitempty"`
}

VulnerabilityReport is the Schema for the vulnerabilityreports API +genclient

func (*VulnerabilityReport) ConvertFrom added in v0.9.0

func (dst *VulnerabilityReport) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts from the Hub version (v1alpha1) to this VulnerabilityReport (v1alpha2)

func (*VulnerabilityReport) ConvertTo added in v0.9.0

func (src *VulnerabilityReport) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this VulnerabilityReport (v1alpha2) to the Hub version (v1alpha1)

func (*VulnerabilityReport) DeepCopy added in v0.9.0

func (in *VulnerabilityReport) DeepCopy() *VulnerabilityReport

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityReport.

func (*VulnerabilityReport) DeepCopyInto added in v0.9.0

func (in *VulnerabilityReport) DeepCopyInto(out *VulnerabilityReport)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VulnerabilityReport) DeepCopyObject added in v0.9.0

func (in *VulnerabilityReport) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VulnerabilityReport) SaaSStatusIsTrue added in v0.9.0

func (in *VulnerabilityReport) SaaSStatusIsTrue() bool

func (*VulnerabilityReport) SetSaaSStatus added in v0.9.0

func (in *VulnerabilityReport) SetSaaSStatus(status metav1.ConditionStatus, reason, msg string)

type VulnerabilityReportList added in v0.9.0

type VulnerabilityReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VulnerabilityReport `json:"items"`
}

VulnerabilityReportList contains a list of VulnerabilityReport

func (*VulnerabilityReportList) DeepCopy added in v0.9.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityReportList.

func (*VulnerabilityReportList) DeepCopyInto added in v0.9.0

func (in *VulnerabilityReportList) DeepCopyInto(out *VulnerabilityReportList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VulnerabilityReportList) DeepCopyObject added in v0.9.0

func (in *VulnerabilityReportList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VulnerabilityReportSpec added in v0.9.0

type VulnerabilityReportSpec struct {
	v1alpha1.VulnerabilityReportCommon `json:",inline"`

	// TotalPackages represents the total number of affected packages in this image.
	// A package affected by two vulnerabilities is counted twice.
	TotalPackages int `json:"totalPackages"`

	// TotalUniquePackages represents the total number of unique affected packages in this image.
	// A package affected by multiple vulnerabilities is counted only once.
	TotalUniquePackages int `json:"totalUniquePackages"`

	Vulnerabilities []Vulnerability `json:"vulnerabilities"`
}

VulnerabilityReportSpec defines the desired state of VulnerabilityReport

func (*VulnerabilityReportSpec) DeepCopy added in v0.9.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityReportSpec.

func (*VulnerabilityReportSpec) DeepCopyInto added in v0.9.0

func (in *VulnerabilityReportSpec) DeepCopyInto(out *VulnerabilityReportSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VulnerabilityReportSpec) Summarize added in v0.9.0

func (in *VulnerabilityReportSpec) Summarize()

type VulnerabilityReportStatus added in v0.9.0

type VulnerabilityReportStatus struct {
	v1alpha1.Status `json:",inline"`
}

VulnerabilityReportStatus defines the observed state of VulnerabilityReport

func (*VulnerabilityReportStatus) DeepCopy added in v0.9.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityReportStatus.

func (*VulnerabilityReportStatus) DeepCopyInto added in v0.9.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL