v1alpha1

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package +k8s:conversion-gen=kubeops.dev/scanner/apis/scanner +k8s:defaulter-gen=TypeMeta +groupName=scanner.appscode.com

Index

Constants

View Source
const (
	ResourceKindImageScanReport = "ImageScanReport"
	ResourceImageScanReport     = "imagescanreport"
	ResourceImageScanReports    = "imagescanreports"
)
View Source
const (
	ResourceKindImageScanRequest = "ImageScanRequest"
	ResourceImageScanRequest     = "imagescanrequest"
	ResourceImageScanRequests    = "imagescanrequests"
)
View Source
const (
	ResourceKindVulnerability = "Vulnerability"
	ResourceVulnerability     = "vulnerability"
	ResourceVulnerabilities   = "vulnerabilities"
)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: scanner.GroupName, Version: "v1alpha1"}

Functions

func Convert_scanner_ImageReference_To_v1alpha1_ImageReference added in v0.0.2

func Convert_scanner_ImageReference_To_v1alpha1_ImageReference(in *scanner.ImageReference, out *ImageReference, s conversion.Scope) error

Convert_scanner_ImageReference_To_v1alpha1_ImageReference is an autogenerated conversion function.

func Convert_scanner_ImageScanReportList_To_v1alpha1_ImageScanReportList added in v0.0.2

func Convert_scanner_ImageScanReportList_To_v1alpha1_ImageScanReportList(in *scanner.ImageScanReportList, out *ImageScanReportList, s conversion.Scope) error

Convert_scanner_ImageScanReportList_To_v1alpha1_ImageScanReportList is an autogenerated conversion function.

func Convert_scanner_ImageScanReportSpec_To_v1alpha1_ImageScanReportSpec added in v0.0.2

func Convert_scanner_ImageScanReportSpec_To_v1alpha1_ImageScanReportSpec(in *scanner.ImageScanReportSpec, out *ImageScanReportSpec, s conversion.Scope) error

Convert_scanner_ImageScanReportSpec_To_v1alpha1_ImageScanReportSpec is an autogenerated conversion function.

func Convert_scanner_ImageScanReportStatus_To_v1alpha1_ImageScanReportStatus added in v0.0.2

func Convert_scanner_ImageScanReportStatus_To_v1alpha1_ImageScanReportStatus(in *scanner.ImageScanReportStatus, out *ImageScanReportStatus, s conversion.Scope) error

Convert_scanner_ImageScanReportStatus_To_v1alpha1_ImageScanReportStatus is an autogenerated conversion function.

func Convert_scanner_ImageScanReport_To_v1alpha1_ImageScanReport added in v0.0.2

func Convert_scanner_ImageScanReport_To_v1alpha1_ImageScanReport(in *scanner.ImageScanReport, out *ImageScanReport, s conversion.Scope) error

Convert_scanner_ImageScanReport_To_v1alpha1_ImageScanReport is an autogenerated conversion function.

func Convert_scanner_ImageScanRequestList_To_v1alpha1_ImageScanRequestList added in v0.0.2

func Convert_scanner_ImageScanRequestList_To_v1alpha1_ImageScanRequestList(in *scanner.ImageScanRequestList, out *ImageScanRequestList, s conversion.Scope) error

Convert_scanner_ImageScanRequestList_To_v1alpha1_ImageScanRequestList is an autogenerated conversion function.

func Convert_scanner_ImageScanRequestSpec_To_v1alpha1_ImageScanRequestSpec added in v0.0.2

func Convert_scanner_ImageScanRequestSpec_To_v1alpha1_ImageScanRequestSpec(in *scanner.ImageScanRequestSpec, out *ImageScanRequestSpec, s conversion.Scope) error

Convert_scanner_ImageScanRequestSpec_To_v1alpha1_ImageScanRequestSpec is an autogenerated conversion function.

func Convert_scanner_ImageScanRequestStatus_To_v1alpha1_ImageScanRequestStatus added in v0.0.2

func Convert_scanner_ImageScanRequestStatus_To_v1alpha1_ImageScanRequestStatus(in *scanner.ImageScanRequestStatus, out *ImageScanRequestStatus, s conversion.Scope) error

Convert_scanner_ImageScanRequestStatus_To_v1alpha1_ImageScanRequestStatus is an autogenerated conversion function.

func Convert_scanner_ImageScanRequest_To_v1alpha1_ImageScanRequest added in v0.0.2

func Convert_scanner_ImageScanRequest_To_v1alpha1_ImageScanRequest(in *scanner.ImageScanRequest, out *ImageScanRequest, s conversion.Scope) error

Convert_scanner_ImageScanRequest_To_v1alpha1_ImageScanRequest is an autogenerated conversion function.

func Convert_scanner_ScanReportRef_To_v1alpha1_ScanReportRef added in v0.0.2

func Convert_scanner_ScanReportRef_To_v1alpha1_ScanReportRef(in *scanner.ScanReportRef, out *ScanReportRef, s conversion.Scope) error

Convert_scanner_ScanReportRef_To_v1alpha1_ScanReportRef is an autogenerated conversion function.

func Convert_scanner_VulnerabilityList_To_v1alpha1_VulnerabilityList added in v0.0.5

func Convert_scanner_VulnerabilityList_To_v1alpha1_VulnerabilityList(in *scanner.VulnerabilityList, out *VulnerabilityList, s conversion.Scope) error

Convert_scanner_VulnerabilityList_To_v1alpha1_VulnerabilityList is an autogenerated conversion function.

func Convert_scanner_VulnerabilitySpec_To_v1alpha1_VulnerabilitySpec added in v0.0.5

func Convert_scanner_VulnerabilitySpec_To_v1alpha1_VulnerabilitySpec(in *scanner.VulnerabilitySpec, out *VulnerabilitySpec, s conversion.Scope) error

Convert_scanner_VulnerabilitySpec_To_v1alpha1_VulnerabilitySpec is an autogenerated conversion function.

func Convert_scanner_VulnerabilityStatus_To_v1alpha1_VulnerabilityStatus added in v0.0.5

func Convert_scanner_VulnerabilityStatus_To_v1alpha1_VulnerabilityStatus(in *scanner.VulnerabilityStatus, out *VulnerabilityStatus, s conversion.Scope) error

Convert_scanner_VulnerabilityStatus_To_v1alpha1_VulnerabilityStatus is an autogenerated conversion function.

func Convert_scanner_Vulnerability_To_v1alpha1_Vulnerability added in v0.0.5

func Convert_scanner_Vulnerability_To_v1alpha1_Vulnerability(in *scanner.Vulnerability, out *Vulnerability, s conversion.Scope) error

Convert_scanner_Vulnerability_To_v1alpha1_Vulnerability is an autogenerated conversion function.

func Convert_v1alpha1_ImageReference_To_scanner_ImageReference added in v0.0.2

func Convert_v1alpha1_ImageReference_To_scanner_ImageReference(in *ImageReference, out *scanner.ImageReference, s conversion.Scope) error

Convert_v1alpha1_ImageReference_To_scanner_ImageReference is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanReportList_To_scanner_ImageScanReportList added in v0.0.2

func Convert_v1alpha1_ImageScanReportList_To_scanner_ImageScanReportList(in *ImageScanReportList, out *scanner.ImageScanReportList, s conversion.Scope) error

Convert_v1alpha1_ImageScanReportList_To_scanner_ImageScanReportList is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanReportSpec_To_scanner_ImageScanReportSpec added in v0.0.2

func Convert_v1alpha1_ImageScanReportSpec_To_scanner_ImageScanReportSpec(in *ImageScanReportSpec, out *scanner.ImageScanReportSpec, s conversion.Scope) error

Convert_v1alpha1_ImageScanReportSpec_To_scanner_ImageScanReportSpec is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanReportStatus_To_scanner_ImageScanReportStatus added in v0.0.2

func Convert_v1alpha1_ImageScanReportStatus_To_scanner_ImageScanReportStatus(in *ImageScanReportStatus, out *scanner.ImageScanReportStatus, s conversion.Scope) error

Convert_v1alpha1_ImageScanReportStatus_To_scanner_ImageScanReportStatus is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanReport_To_scanner_ImageScanReport added in v0.0.2

func Convert_v1alpha1_ImageScanReport_To_scanner_ImageScanReport(in *ImageScanReport, out *scanner.ImageScanReport, s conversion.Scope) error

Convert_v1alpha1_ImageScanReport_To_scanner_ImageScanReport is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanRequestList_To_scanner_ImageScanRequestList added in v0.0.2

func Convert_v1alpha1_ImageScanRequestList_To_scanner_ImageScanRequestList(in *ImageScanRequestList, out *scanner.ImageScanRequestList, s conversion.Scope) error

Convert_v1alpha1_ImageScanRequestList_To_scanner_ImageScanRequestList is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanRequestSpec_To_scanner_ImageScanRequestSpec added in v0.0.2

func Convert_v1alpha1_ImageScanRequestSpec_To_scanner_ImageScanRequestSpec(in *ImageScanRequestSpec, out *scanner.ImageScanRequestSpec, s conversion.Scope) error

Convert_v1alpha1_ImageScanRequestSpec_To_scanner_ImageScanRequestSpec is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanRequestStatus_To_scanner_ImageScanRequestStatus added in v0.0.2

func Convert_v1alpha1_ImageScanRequestStatus_To_scanner_ImageScanRequestStatus(in *ImageScanRequestStatus, out *scanner.ImageScanRequestStatus, s conversion.Scope) error

Convert_v1alpha1_ImageScanRequestStatus_To_scanner_ImageScanRequestStatus is an autogenerated conversion function.

func Convert_v1alpha1_ImageScanRequest_To_scanner_ImageScanRequest added in v0.0.2

func Convert_v1alpha1_ImageScanRequest_To_scanner_ImageScanRequest(in *ImageScanRequest, out *scanner.ImageScanRequest, s conversion.Scope) error

Convert_v1alpha1_ImageScanRequest_To_scanner_ImageScanRequest is an autogenerated conversion function.

func Convert_v1alpha1_ScanReportRef_To_scanner_ScanReportRef added in v0.0.2

func Convert_v1alpha1_ScanReportRef_To_scanner_ScanReportRef(in *ScanReportRef, out *scanner.ScanReportRef, s conversion.Scope) error

Convert_v1alpha1_ScanReportRef_To_scanner_ScanReportRef is an autogenerated conversion function.

func Convert_v1alpha1_VulnerabilityList_To_scanner_VulnerabilityList added in v0.0.5

func Convert_v1alpha1_VulnerabilityList_To_scanner_VulnerabilityList(in *VulnerabilityList, out *scanner.VulnerabilityList, s conversion.Scope) error

Convert_v1alpha1_VulnerabilityList_To_scanner_VulnerabilityList is an autogenerated conversion function.

func Convert_v1alpha1_VulnerabilitySpec_To_scanner_VulnerabilitySpec added in v0.0.5

func Convert_v1alpha1_VulnerabilitySpec_To_scanner_VulnerabilitySpec(in *VulnerabilitySpec, out *scanner.VulnerabilitySpec, s conversion.Scope) error

Convert_v1alpha1_VulnerabilitySpec_To_scanner_VulnerabilitySpec is an autogenerated conversion function.

func Convert_v1alpha1_VulnerabilityStatus_To_scanner_VulnerabilityStatus added in v0.0.5

func Convert_v1alpha1_VulnerabilityStatus_To_scanner_VulnerabilityStatus(in *VulnerabilityStatus, out *scanner.VulnerabilityStatus, s conversion.Scope) error

Convert_v1alpha1_VulnerabilityStatus_To_scanner_VulnerabilityStatus is an autogenerated conversion function.

func Convert_v1alpha1_Vulnerability_To_scanner_Vulnerability added in v0.0.5

func Convert_v1alpha1_Vulnerability_To_scanner_Vulnerability(in *Vulnerability, out *scanner.Vulnerability, s conversion.Scope) error

Convert_v1alpha1_Vulnerability_To_scanner_Vulnerability is an autogenerated conversion function.

func GetReportName added in v0.0.8

func GetReportName(imgName string) string

func RegisterConversions added in v0.0.2

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults added in v0.0.2

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetObjectDefaults_ImageScanRequest added in v0.0.19

func SetObjectDefaults_ImageScanRequest(in *ImageScanRequest)

func SetObjectDefaults_ImageScanRequestList added in v0.0.19

func SetObjectDefaults_ImageScanRequestList(in *ImageScanRequestList)

Types

type ImageReference added in v0.0.2

type ImageReference struct {
	Name   string `json:"name"`
	Tag    string `json:"tag,omitempty"`
	Digest string `json:"digest,omitempty"`
}

func (*ImageReference) DeepCopy added in v0.0.2

func (in *ImageReference) DeepCopy() *ImageReference

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

func (*ImageReference) DeepCopyInto added in v0.0.2

func (in *ImageReference) DeepCopyInto(out *ImageReference)

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

type ImageScanReport added in v0.0.2

type ImageScanReport struct {
	metav1.TypeMeta `json:",inline"`
	// Name will be formed by hashing the ImageRef + Tag + Digest
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the attributes for the Image Scan SingleReport
	Spec ImageScanReportSpec `json:"spec,omitempty"`

	// Status holds all the SingleReport-related details of the specified image
	Status ImageScanReportStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ImageScanReport) DeepCopy added in v0.0.2

func (in *ImageScanReport) DeepCopy() *ImageScanReport

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

func (*ImageScanReport) DeepCopyInto added in v0.0.2

func (in *ImageScanReport) DeepCopyInto(out *ImageScanReport)

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

func (*ImageScanReport) DeepCopyObject added in v0.0.2

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

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

type ImageScanReportList added in v0.0.2

type ImageScanReportList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Memcached TPR objects
	Items []ImageScanReport `json:"items,omitempty"`
}

func (*ImageScanReportList) DeepCopy added in v0.0.2

func (in *ImageScanReportList) DeepCopy() *ImageScanReportList

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

func (*ImageScanReportList) DeepCopyInto added in v0.0.2

func (in *ImageScanReportList) DeepCopyInto(out *ImageScanReportList)

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

func (*ImageScanReportList) DeepCopyObject added in v0.0.2

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

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

type ImageScanReportPhase added in v0.0.8

type ImageScanReportPhase string

+kubebuilder:validation:Enum=Current;Outdated

const (
	ImageScanReportPhaseCurrent  ImageScanReportPhase = "Current"
	ImageScanReportPhaseOutdated ImageScanReportPhase = "Outdated"
)

type ImageScanReportSpec added in v0.0.2

type ImageScanReportSpec struct {
	Image ImageReference `json:"image"`
}

func (*ImageScanReportSpec) DeepCopy added in v0.0.2

func (in *ImageScanReportSpec) DeepCopy() *ImageScanReportSpec

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

func (*ImageScanReportSpec) DeepCopyInto added in v0.0.2

func (in *ImageScanReportSpec) DeepCopyInto(out *ImageScanReportSpec)

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

type ImageScanReportStatus added in v0.0.2

type ImageScanReportStatus struct {
	// Specifies the current phase of the report
	// +optional
	// +kubebuilder:default="Current"
	Phase ImageScanReportPhase `json:"phase,omitempty"`

	// which TrivyDBVersion was used when the last check
	// +optional
	Version trivy.Version `json:"version,omitempty"`

	// This is the actual trivy Report
	// +optional
	Report trivy.SingleReport `json:"report,omitempty"`
}

func (*ImageScanReportStatus) DeepCopy added in v0.0.2

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

func (*ImageScanReportStatus) DeepCopyInto added in v0.0.2

func (in *ImageScanReportStatus) DeepCopyInto(out *ImageScanReportStatus)

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

type ImageScanRequest added in v0.0.2

type ImageScanRequest struct {
	metav1.TypeMeta `json:",inline"`
	// Name will be formed by hashing the ImageRef + Tag + Digest
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the attributes for the Image Scan SingleReport
	Spec ImageScanRequestSpec `json:"spec,omitempty"`

	// Status holds all the SingleReport-related details of the specified image
	Status ImageScanRequestStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ImageScanRequest) DeepCopy added in v0.0.2

func (in *ImageScanRequest) DeepCopy() *ImageScanRequest

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

func (*ImageScanRequest) DeepCopyInto added in v0.0.2

func (in *ImageScanRequest) DeepCopyInto(out *ImageScanRequest)

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

func (*ImageScanRequest) DeepCopyObject added in v0.0.2

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

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

func (ImageScanRequest) IsComplete added in v0.0.8

func (req ImageScanRequest) IsComplete() bool

type ImageScanRequestList added in v0.0.2

type ImageScanRequestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Memcached TPR objects
	Items []ImageScanRequest `json:"items,omitempty"`
}

func (*ImageScanRequestList) DeepCopy added in v0.0.2

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

func (*ImageScanRequestList) DeepCopyInto added in v0.0.2

func (in *ImageScanRequestList) DeepCopyInto(out *ImageScanRequestList)

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

func (*ImageScanRequestList) DeepCopyObject added in v0.0.2

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

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

type ImageScanRequestPhase added in v0.0.2

type ImageScanRequestPhase string

+kubebuilder:validation:Enum=Pending;InProgress;Current;Failed

const (
	ImageScanRequestPhasePending    ImageScanRequestPhase = "Pending"
	ImageScanRequestPhaseInProgress ImageScanRequestPhase = "InProgress"
	ImageScanRequestPhaseCurrent    ImageScanRequestPhase = "Current"
	ImageScanRequestPhaseFailed     ImageScanRequestPhase = "Failed"
)

type ImageScanRequestSpec added in v0.0.2

type ImageScanRequestSpec struct {
	Image string `json:"image"`
	// If some private image is referred in Image, this field will contain the ImagePullSecrets from the pod template.
	// +optional
	PullSecrets []core.LocalObjectReference `json:"pullSecrets,omitempty"`
	// Namespace tells where to look for the image pull secrets.
	// +optional
	Namespace string `json:"namespace,omitempty"`
	// ServiceAccountName is the name of SA used on the pod where this image has been used
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

func (*ImageScanRequestSpec) DeepCopy added in v0.0.2

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

func (*ImageScanRequestSpec) DeepCopyInto added in v0.0.2

func (in *ImageScanRequestSpec) DeepCopyInto(out *ImageScanRequestSpec)

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

type ImageScanRequestStatus added in v0.0.2

type ImageScanRequestStatus struct {
	// observedGeneration is the most recent generation observed for this resource. It corresponds to the
	// resource's generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Specifies the current phase of the database
	// +optional
	// +kubebuilder:default="Pending"
	Phase     ImageScanRequestPhase `json:"phase,omitempty"`
	Image     *trivy.ImageDetails   `json:"image,omitempty"`
	ReportRef *ScanReportRef        `json:"reportRef,omitempty"`

	// +optional
	// For Private Images, this field holds the job name created (in .spec.namespace) for scanning.
	JobName string `json:"jobName,omitempty"`

	// A brief CamelCase message indicating details about why the request is in this state.
	// +optional
	Reason string `json:"reason,omitempty"`
}

func (*ImageScanRequestStatus) DeepCopy added in v0.0.2

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

func (*ImageScanRequestStatus) DeepCopyInto added in v0.0.2

func (in *ImageScanRequestStatus) DeepCopyInto(out *ImageScanRequestStatus)

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

type ScanReportRef added in v0.0.2

type ScanReportRef struct {
	Name string `json:"name"`
}

func (*ScanReportRef) DeepCopy added in v0.0.2

func (in *ScanReportRef) DeepCopy() *ScanReportRef

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

func (*ScanReportRef) DeepCopyInto added in v0.0.2

func (in *ScanReportRef) DeepCopyInto(out *ScanReportRef)

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

type Vulnerability added in v0.0.5

type Vulnerability struct {
	metav1.TypeMeta `json:",inline"`
	// Name will be formed by hashing the ImageRef + Tag + Digest
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the attributes for the Image Scan SingleReport
	Spec VulnerabilitySpec `json:"spec,omitempty"`

	// Status holds all the SingleReport-related details of the specified image
	Status VulnerabilityStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*Vulnerability) DeepCopy added in v0.0.5

func (in *Vulnerability) DeepCopy() *Vulnerability

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

func (*Vulnerability) DeepCopyInto added in v0.0.5

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

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

func (*Vulnerability) DeepCopyObject added in v0.0.5

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

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

type VulnerabilityList added in v0.0.5

type VulnerabilityList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Memcached TPR objects
	Items []Vulnerability `json:"items,omitempty"`
}

func (*VulnerabilityList) DeepCopy added in v0.0.5

func (in *VulnerabilityList) DeepCopy() *VulnerabilityList

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

func (*VulnerabilityList) DeepCopyInto added in v0.0.5

func (in *VulnerabilityList) DeepCopyInto(out *VulnerabilityList)

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

func (*VulnerabilityList) DeepCopyObject added in v0.0.5

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

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

type VulnerabilitySpec added in v0.0.5

type VulnerabilitySpec struct {
	trivy.Vulnerability `json:",inline"`
}

func (*VulnerabilitySpec) DeepCopy added in v0.0.5

func (in *VulnerabilitySpec) DeepCopy() *VulnerabilitySpec

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

func (*VulnerabilitySpec) DeepCopyInto added in v0.0.5

func (in *VulnerabilitySpec) DeepCopyInto(out *VulnerabilitySpec)

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

type VulnerabilityStatus added in v0.0.5

type VulnerabilityStatus struct{}

func (*VulnerabilityStatus) DeepCopy added in v0.0.5

func (in *VulnerabilityStatus) DeepCopy() *VulnerabilityStatus

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

func (*VulnerabilityStatus) DeepCopyInto added in v0.0.5

func (in *VulnerabilityStatus) DeepCopyInto(out *VulnerabilityStatus)

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