v1alpha1

package
v0.0.0-...-f532984 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the khulnasoft-lab v1alpha1 API group +kubebuilder:object:generate=true +groupName=khulnasoft-lab.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "khulnasoft-lab.github.io", 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 CVSS

type CVSS struct {
	V2Vector string `json:"V2Vector,omitempty"`
	V3Vector string `json:"V3Vector,omitempty"`
	V2Score  string `json:"V2Score,omitempty"`
	V3Score  string `json:"V3Score,omitempty"`
}

func (*CVSS) DeepCopy

func (in *CVSS) DeepCopy() *CVSS

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

func (*CVSS) DeepCopyInto

func (in *CVSS) DeepCopyInto(out *CVSS)

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

type DetectedVulnerability

type DetectedVulnerability struct {
	VulnerabilityID  string `json:"VulnerabilityID,omitempty"`
	PkgName          string `json:"PkgName,omitempty"`
	InstalledVersion string `json:"InstalledVersion,omitempty"`
	FixedVersion     string `json:"FixedVersion,omitempty"`
	SeveritySource   string `json:"SeveritySource,omitempty"`

	Title       string     `json:"Title,omitempty"`
	Description string     `json:"Description,omitempty"`
	Severity    string     `json:"Severity,omitempty"`
	CweIDs      []string   `json:"CweIDs,omitempty"`
	CVSS        VendorCVSS `json:"CVSS,omitempty"`
	References  []string   `json:"References,omitempty"`
}

func (*DetectedVulnerability) DeepCopy

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

func (*DetectedVulnerability) DeepCopyInto

func (in *DetectedVulnerability) DeepCopyInto(out *DetectedVulnerability)

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

type ImageVulnerability

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

	Spec   ImageVulnerabilitySpec   `json:"spec,omitempty"`
	Status ImageVulnerabilityStatus `json:"status,omitempty"`
}

ImageVulnerability is the Schema for the imagevulnerabilities API

func (*ImageVulnerability) DeepCopy

func (in *ImageVulnerability) DeepCopy() *ImageVulnerability

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

func (*ImageVulnerability) DeepCopyInto

func (in *ImageVulnerability) DeepCopyInto(out *ImageVulnerability)

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

func (*ImageVulnerability) DeepCopyObject

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

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

type ImageVulnerabilityList

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

ImageVulnerabilityList contains a list of ImageVulnerability

func (*ImageVulnerabilityList) DeepCopy

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

func (*ImageVulnerabilityList) DeepCopyInto

func (in *ImageVulnerabilityList) DeepCopyInto(out *ImageVulnerabilityList)

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

func (*ImageVulnerabilityList) DeepCopyObject

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

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

type ImageVulnerabilitySpec

type ImageVulnerabilitySpec struct {
	Image string `json:"image,omitempty"`
}

ImageVulnerabilitySpec defines the desired state of ImageVulnerability

func (*ImageVulnerabilitySpec) DeepCopy

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

func (*ImageVulnerabilitySpec) DeepCopyInto

func (in *ImageVulnerabilitySpec) DeepCopyInto(out *ImageVulnerabilitySpec)

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

type ImageVulnerabilityStatus

type ImageVulnerabilityStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Vulnerabilities []DetectedVulnerability `json:"vulnerabilities,omitempty"`
}

ImageVulnerabilityStatus defines the observed state of ImageVulnerability

func (*ImageVulnerabilityStatus) DeepCopy

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

func (*ImageVulnerabilityStatus) DeepCopyInto

func (in *ImageVulnerabilityStatus) DeepCopyInto(out *ImageVulnerabilityStatus)

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

type VendorCVSS

type VendorCVSS map[string]CVSS

func (VendorCVSS) DeepCopy

func (in VendorCVSS) DeepCopy() VendorCVSS

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

func (VendorCVSS) DeepCopyInto

func (in VendorCVSS) DeepCopyInto(out *VendorCVSS)

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