scanner

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package scanner is the internal version of the API.

Index

Constants

View Source
const GroupName = "scanner.appscode.com"

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind added in v0.0.2

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource added in v0.0.2

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type ImageReference added in v0.0.2

type ImageReference struct {
	Name   string
	Tag    string
	Digest string
}

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
	metav1.ObjectMeta
	Spec   ImageScanReportSpec
	Status ImageScanReportStatus
}

+genclient +genclient:nonNamespaced +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
	metav1.ListMeta
	Items []ImageScanReport
}

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

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
const (
	ImageScanReportPhaseCurrent  ImageScanReportPhase = "Current"
	ImageScanReportPhaseOutdated ImageScanReportPhase = "Outdated"
)

type ImageScanReportSpec added in v0.0.2

type ImageScanReportSpec struct {
	Image ImageReference
}

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 {
	Phase   ImageScanReportPhase
	Version trivy.Version
	Report  trivy.SingleReport
}

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
	metav1.ObjectMeta
	Spec   ImageScanRequestSpec
	Status ImageScanRequestStatus
}

+genclient +genclient:nonNamespaced +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.

type ImageScanRequestList added in v0.0.2

type ImageScanRequestList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []ImageScanRequest
}

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

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
const (
	ImageScanRequestPhasePending    ImageScanRequestPhase = "Pending"
	ImageScanRequestPhaseInProgress ImageScanRequestPhase = "InProgress"
	ImageScanRequestPhaseCurrent    ImageScanRequestPhase = "Current"
	ImageScanRequestPhaseFailed     ImageScanRequestPhase = "Failed"
	ImageScanRequestPhaseOutdated   ImageScanRequestPhase = "Outdated"
)

type ImageScanRequestSpec added in v0.0.2

type ImageScanRequestSpec struct {
	Image              string
	PullSecrets        []core.LocalObjectReference
	Namespace          string
	ServiceAccountName string
}

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 int64
	Phase              ImageScanRequestPhase
	Image              *trivy.ImageDetails
	ReportRef          *ScanReportRef
	JobName            string
	Reason             string
}

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
}

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
	metav1.ObjectMeta
	Spec   VulnerabilitySpec
	Status VulnerabilityStatus
}

+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
	metav1.ListMeta
	Items []Vulnerability
}

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
}

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.

Directories

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

Jump to

Keyboard shortcuts

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