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
- Variables
- func Convert_scanner_ImageReference_To_v1alpha1_ImageReference(in *scanner.ImageReference, out *ImageReference, s conversion.Scope) error
- func Convert_scanner_ImageScanReportList_To_v1alpha1_ImageScanReportList(in *scanner.ImageScanReportList, out *ImageScanReportList, s conversion.Scope) error
- func Convert_scanner_ImageScanReportSpec_To_v1alpha1_ImageScanReportSpec(in *scanner.ImageScanReportSpec, out *ImageScanReportSpec, s conversion.Scope) error
- func Convert_scanner_ImageScanReportStatus_To_v1alpha1_ImageScanReportStatus(in *scanner.ImageScanReportStatus, out *ImageScanReportStatus, ...) error
- func Convert_scanner_ImageScanReport_To_v1alpha1_ImageScanReport(in *scanner.ImageScanReport, out *ImageScanReport, s conversion.Scope) error
- func Convert_scanner_ImageScanRequestList_To_v1alpha1_ImageScanRequestList(in *scanner.ImageScanRequestList, out *ImageScanRequestList, ...) error
- func Convert_scanner_ImageScanRequestSpec_To_v1alpha1_ImageScanRequestSpec(in *scanner.ImageScanRequestSpec, out *ImageScanRequestSpec, ...) error
- func Convert_scanner_ImageScanRequestStatus_To_v1alpha1_ImageScanRequestStatus(in *scanner.ImageScanRequestStatus, out *ImageScanRequestStatus, ...) error
- func Convert_scanner_ImageScanRequest_To_v1alpha1_ImageScanRequest(in *scanner.ImageScanRequest, out *ImageScanRequest, s conversion.Scope) error
- func Convert_scanner_ScanReportRef_To_v1alpha1_ScanReportRef(in *scanner.ScanReportRef, out *ScanReportRef, s conversion.Scope) error
- func Convert_scanner_VulnerabilityList_To_v1alpha1_VulnerabilityList(in *scanner.VulnerabilityList, out *VulnerabilityList, s conversion.Scope) error
- func Convert_scanner_VulnerabilitySpec_To_v1alpha1_VulnerabilitySpec(in *scanner.VulnerabilitySpec, out *VulnerabilitySpec, s conversion.Scope) error
- func Convert_scanner_VulnerabilityStatus_To_v1alpha1_VulnerabilityStatus(in *scanner.VulnerabilityStatus, out *VulnerabilityStatus, s conversion.Scope) error
- func Convert_scanner_Vulnerability_To_v1alpha1_Vulnerability(in *scanner.Vulnerability, out *Vulnerability, s conversion.Scope) error
- func Convert_v1alpha1_ImageReference_To_scanner_ImageReference(in *ImageReference, out *scanner.ImageReference, s conversion.Scope) error
- func Convert_v1alpha1_ImageScanReportList_To_scanner_ImageScanReportList(in *ImageScanReportList, out *scanner.ImageScanReportList, s conversion.Scope) error
- func Convert_v1alpha1_ImageScanReportSpec_To_scanner_ImageScanReportSpec(in *ImageScanReportSpec, out *scanner.ImageScanReportSpec, s conversion.Scope) error
- func Convert_v1alpha1_ImageScanReportStatus_To_scanner_ImageScanReportStatus(in *ImageScanReportStatus, out *scanner.ImageScanReportStatus, ...) error
- func Convert_v1alpha1_ImageScanReport_To_scanner_ImageScanReport(in *ImageScanReport, out *scanner.ImageScanReport, s conversion.Scope) error
- func Convert_v1alpha1_ImageScanRequestList_To_scanner_ImageScanRequestList(in *ImageScanRequestList, out *scanner.ImageScanRequestList, ...) error
- func Convert_v1alpha1_ImageScanRequestSpec_To_scanner_ImageScanRequestSpec(in *ImageScanRequestSpec, out *scanner.ImageScanRequestSpec, ...) error
- func Convert_v1alpha1_ImageScanRequestStatus_To_scanner_ImageScanRequestStatus(in *ImageScanRequestStatus, out *scanner.ImageScanRequestStatus, ...) error
- func Convert_v1alpha1_ImageScanRequest_To_scanner_ImageScanRequest(in *ImageScanRequest, out *scanner.ImageScanRequest, s conversion.Scope) error
- func Convert_v1alpha1_ScanReportRef_To_scanner_ScanReportRef(in *ScanReportRef, out *scanner.ScanReportRef, s conversion.Scope) error
- func Convert_v1alpha1_VulnerabilityList_To_scanner_VulnerabilityList(in *VulnerabilityList, out *scanner.VulnerabilityList, s conversion.Scope) error
- func Convert_v1alpha1_VulnerabilitySpec_To_scanner_VulnerabilitySpec(in *VulnerabilitySpec, out *scanner.VulnerabilitySpec, s conversion.Scope) error
- func Convert_v1alpha1_VulnerabilityStatus_To_scanner_VulnerabilityStatus(in *VulnerabilityStatus, out *scanner.VulnerabilityStatus, s conversion.Scope) error
- func Convert_v1alpha1_Vulnerability_To_scanner_Vulnerability(in *Vulnerability, out *scanner.Vulnerability, s conversion.Scope) error
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func GetReportName(imgName string) string
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetObjectDefaults_ImageScanRequest(in *ImageScanRequest)
- func SetObjectDefaults_ImageScanRequestList(in *ImageScanRequestList)
- type ImageReference
- type ImageScanReport
- type ImageScanReportList
- type ImageScanReportPhase
- type ImageScanReportSpec
- type ImageScanReportStatus
- type ImageScanRequest
- type ImageScanRequestList
- type ImageScanRequestPhase
- type ImageScanRequestSpec
- type ImageScanRequestStatus
- type ScanReportRef
- type Vulnerability
- type VulnerabilityList
- type VulnerabilitySpec
- type VulnerabilityStatus
Constants ¶
const ( ResourceKindImageScanReport = "ImageScanReport" ResourceImageScanReport = "imagescanreport" ResourceImageScanReports = "imagescanreports" )
const ( ResourceKindImageScanRequest = "ImageScanRequest" ResourceImageScanRequest = "imagescanrequest" ResourceImageScanRequests = "imagescanrequests" )
const ( ResourceKindVulnerability = "Vulnerability" ResourceVulnerability = "vulnerability" ResourceVulnerabilities = "vulnerabilities" )
Variables ¶
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 )
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 GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func GetReportName ¶ added in v0.0.8
func RegisterConversions ¶ added in v0.0.2
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶ added in v0.0.2
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
func (in *ImageScanReportStatus) DeepCopy() *ImageScanReportStatus
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
func (in *ImageScanRequestList) DeepCopy() *ImageScanRequestList
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
func (in *ImageScanRequestSpec) DeepCopy() *ImageScanRequestSpec
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
func (in *ImageScanRequestStatus) DeepCopy() *ImageScanRequestStatus
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.