v1alpha1

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=secscan.quay.redhat.com

Index

Constants

This section is empty.

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: secscan.GroupName, Version: "v1alpha1"}

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Feature

type Feature struct {
	Name            string           `json:"name,omitempty"`
	VersionFormat   string           `json:"versionformat,omitempty"`
	NamespaceName   string           `json:"namespaceName,omitempty"`
	Version         string           `json:"version,omitempty"`
	Vulnerabilities []*Vulnerability `json:"vulnerabilities,omitempty"`
}

func (*Feature) DeepCopy

func (in *Feature) DeepCopy() *Feature

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

func (*Feature) DeepCopyInto

func (in *Feature) DeepCopyInto(out *Feature)

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

type ImageManifestVuln

type ImageManifestVuln struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ImageManifestVulnSpec `json:"spec,omitempty"`
	// +optional
	Status ImageManifestVulnStatus `json:"status,omitempty"`
}

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

func (*ImageManifestVuln) DeepCopy

func (in *ImageManifestVuln) DeepCopy() *ImageManifestVuln

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

func (*ImageManifestVuln) DeepCopyInto

func (in *ImageManifestVuln) DeepCopyInto(out *ImageManifestVuln)

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

func (*ImageManifestVuln) DeepCopyObject

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

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

type ImageManifestVulnList

type ImageManifestVulnList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []*ImageManifestVuln `json:"items"`
}

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

func (*ImageManifestVulnList) DeepCopy

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

func (*ImageManifestVulnList) DeepCopyInto

func (in *ImageManifestVulnList) DeepCopyInto(out *ImageManifestVulnList)

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

func (*ImageManifestVulnList) DeepCopyObject

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

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

type ImageManifestVulnSpec

type ImageManifestVulnSpec struct {
	Image         string     `json:"image,omitempty"`
	Manifest      string     `json:"manifest,omitempty"`
	NamespaceName string     `json:"namespaceName,omitempty"`
	Features      []*Feature `json:"features,omitempty"`
}

func (*ImageManifestVulnSpec) DeepCopy

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

func (*ImageManifestVulnSpec) DeepCopyInto

func (in *ImageManifestVulnSpec) DeepCopyInto(out *ImageManifestVulnSpec)

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

type ImageManifestVulnStatus

type ImageManifestVulnStatus struct {
	LastUpdate      string `json:"lastUpdate,omitempty"`
	HighestSeverity string `json:"highestSeverity,omitempty"`

	UnknownCount    int `json:"unknownCount,omitempty"`
	NegligibleCount int `json:"negligibleCount,omitempty"`
	LowCount        int `json:"lowCount,omitempty"`
	MediumCount     int `json:"mediumCount,omitempty"`
	HighCount       int `json:"highCount,omitempty"`
	CriticalCount   int `json:"criticalCount,omitempty"`
	Defcon1Count    int `json:"defcon1Count,omitempty"`
	FixableCount    int `json:"fixableCount,omitempty"`

	// Map from pod's path to container ids
	AffectedPods map[string][]string `json:"affectedPods,omitempty"`
}

func (*ImageManifestVulnStatus) DeepCopy

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

func (*ImageManifestVulnStatus) DeepCopyInto

func (in *ImageManifestVulnStatus) DeepCopyInto(out *ImageManifestVulnStatus)

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

type Vulnerability

type Vulnerability struct {
	Name          string `json:"name,omitempty"`
	NamespaceName string `json:"namespaceName,omitempty"`
	Description   string `json:"description,omitempty"`
	Link          string `json:"link,omitempty"`
	FixedBy       string `json:"fixedby,omitempty"`
	Severity      string `json:"severity,omitempty"`
	Metadata      string `json:"metadata,omitempty"`
}

func (*Vulnerability) DeepCopy

func (in *Vulnerability) DeepCopy() *Vulnerability

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

func (*Vulnerability) DeepCopyInto

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

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