v1alpha1

package
v0.8.28 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerImageScanApplyConfiguration

type ContainerImageScanApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ContainerImageScanSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ContainerImageScanStatusApplyConfiguration `json:"status,omitempty"`
}

ContainerImageScanApplyConfiguration represents a declarative configuration of the ContainerImageScan type for use with apply.

func ContainerImageScan

func ContainerImageScan(name, namespace string) *ContainerImageScanApplyConfiguration

ContainerImageScan constructs a declarative configuration of the ContainerImageScan type for use with apply.

func (*ContainerImageScanApplyConfiguration) GetName added in v0.8.18

GetName retrieves the value of the Name field in the declarative configuration.

func (*ContainerImageScanApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ContainerImageScanApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ContainerImageScanApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ContainerImageScanApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ContainerImageScanApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ContainerImageScanApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ContainerImageScanApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ContainerImageScanApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ContainerImageScanSpecApplyConfiguration

type ContainerImageScanSpecApplyConfiguration struct {
	ImageScanSpecApplyConfiguration `json:",inline"`
	Tag                             *string                     `json:"tag,omitempty"`
	Workload                        *WorkloadApplyConfiguration `json:"workload,omitempty"`
}

ContainerImageScanSpecApplyConfiguration represents a declarative configuration of the ContainerImageScanSpec type for use with apply.

func ContainerImageScanSpec

func ContainerImageScanSpec() *ContainerImageScanSpecApplyConfiguration

ContainerImageScanSpecApplyConfiguration constructs a declarative configuration of the ContainerImageScanSpec type for use with apply.

func (*ContainerImageScanSpecApplyConfiguration) WithDigest

WithDigest sets the Digest field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Digest field is set to the value of the last call.

func (*ContainerImageScanSpecApplyConfiguration) WithIgnoreUnfixed

WithIgnoreUnfixed sets the IgnoreUnfixed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IgnoreUnfixed field is set to the value of the last call.

func (*ContainerImageScanSpecApplyConfiguration) WithMinSeverity

WithMinSeverity sets the MinSeverity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinSeverity field is set to the value of the last call.

func (*ContainerImageScanSpecApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ContainerImageScanSpecApplyConfiguration) WithTag

WithTag sets the Tag field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Tag field is set to the value of the last call.

func (*ContainerImageScanSpecApplyConfiguration) WithWorkload

WithWorkload sets the Workload field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Workload field is set to the value of the last call.

type ContainerImageScanStatusApplyConfiguration

type ContainerImageScanStatusApplyConfiguration struct {
	ObservedGeneration     *int64                                  `json:"observedGeneration,omitempty"`
	LastScanJobUID         *types.UID                              `json:"lastScanJobUID,omitempty"`
	LastScanTime           *v1.Time                                `json:"lastScanTime,omitempty"`
	LastSuccessfulScanTime *v1.Time                                `json:"lastSuccessfulScanTime,omitempty"`
	Conditions             []metav1.ConditionApplyConfiguration    `json:"conditions,omitempty"`
	Vulnerabilities        []VulnerabilityApplyConfiguration       `json:"vulnerabilities,omitempty"`
	VulnerabilitySummary   *VulnerabilitySummaryApplyConfiguration `json:"vulnerabilitySummary,omitempty"`
}

ContainerImageScanStatusApplyConfiguration represents a declarative configuration of the ContainerImageScanStatus type for use with apply.

func ContainerImageScanStatus

func ContainerImageScanStatus() *ContainerImageScanStatusApplyConfiguration

ContainerImageScanStatusApplyConfiguration constructs a declarative configuration of the ContainerImageScanStatus type for use with apply.

func (*ContainerImageScanStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*ContainerImageScanStatusApplyConfiguration) WithLastScanJobUID

WithLastScanJobUID sets the LastScanJobUID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastScanJobUID field is set to the value of the last call.

func (*ContainerImageScanStatusApplyConfiguration) WithLastScanTime

WithLastScanTime sets the LastScanTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastScanTime field is set to the value of the last call.

func (*ContainerImageScanStatusApplyConfiguration) WithLastSuccessfulScanTime

WithLastSuccessfulScanTime sets the LastSuccessfulScanTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastSuccessfulScanTime field is set to the value of the last call.

func (*ContainerImageScanStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

func (*ContainerImageScanStatusApplyConfiguration) WithVulnerabilities

WithVulnerabilities adds the given value to the Vulnerabilities field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Vulnerabilities field.

func (*ContainerImageScanStatusApplyConfiguration) WithVulnerabilitySummary

WithVulnerabilitySummary sets the VulnerabilitySummary field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the VulnerabilitySummary field is set to the value of the last call.

type ImageApplyConfiguration

type ImageApplyConfiguration struct {
	Name   *string          `json:"name,omitempty"`
	Digest *godigest.Digest `json:"digest,omitempty"`
}

ImageApplyConfiguration represents a declarative configuration of the Image type for use with apply.

func Image

func Image() *ImageApplyConfiguration

ImageApplyConfiguration constructs a declarative configuration of the Image type for use with apply.

func (*ImageApplyConfiguration) WithDigest

WithDigest sets the Digest field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Digest field is set to the value of the last call.

func (*ImageApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type ImageScanSpecApplyConfiguration

type ImageScanSpecApplyConfiguration struct {
	ImageApplyConfiguration      `json:",inline"`
	ScanConfigApplyConfiguration `json:",inline"`
}

ImageScanSpecApplyConfiguration represents a declarative configuration of the ImageScanSpec type for use with apply.

func ImageScanSpec

func ImageScanSpec() *ImageScanSpecApplyConfiguration

ImageScanSpecApplyConfiguration constructs a declarative configuration of the ImageScanSpec type for use with apply.

func (*ImageScanSpecApplyConfiguration) WithDigest

WithDigest sets the Digest field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Digest field is set to the value of the last call.

func (*ImageScanSpecApplyConfiguration) WithIgnoreUnfixed

WithIgnoreUnfixed sets the IgnoreUnfixed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IgnoreUnfixed field is set to the value of the last call.

func (*ImageScanSpecApplyConfiguration) WithMinSeverity

WithMinSeverity sets the MinSeverity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinSeverity field is set to the value of the last call.

func (*ImageScanSpecApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

type ScanConfigApplyConfiguration

type ScanConfigApplyConfiguration struct {
	MinSeverity   *v1alpha1.Severity `json:"minSeverity,omitempty"`
	IgnoreUnfixed *bool              `json:"ignoreUnfixed,omitempty"`
}

ScanConfigApplyConfiguration represents a declarative configuration of the ScanConfig type for use with apply.

func ScanConfig

func ScanConfig() *ScanConfigApplyConfiguration

ScanConfigApplyConfiguration constructs a declarative configuration of the ScanConfig type for use with apply.

func (*ScanConfigApplyConfiguration) WithIgnoreUnfixed

func (b *ScanConfigApplyConfiguration) WithIgnoreUnfixed(value bool) *ScanConfigApplyConfiguration

WithIgnoreUnfixed sets the IgnoreUnfixed field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IgnoreUnfixed field is set to the value of the last call.

func (*ScanConfigApplyConfiguration) WithMinSeverity

WithMinSeverity sets the MinSeverity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinSeverity field is set to the value of the last call.

type VulnerabilityApplyConfiguration

type VulnerabilityApplyConfiguration struct {
	VulnerabilityID  *string            `json:"vulnerabilityID,omitempty"`
	PkgName          *string            `json:"pkgName,omitempty"`
	InstalledVersion *string            `json:"installedVersion,omitempty"`
	Severity         *v1alpha1.Severity `json:"severity,omitempty"`
	PkgPath          *string            `json:"pkgPath,omitempty"`
	FixedVersion     *string            `json:"fixedVersion,omitempty"`
	Title            *string            `json:"title,omitempty"`
	PrimaryURL       *string            `json:"primaryURL,omitempty"`
}

VulnerabilityApplyConfiguration represents a declarative configuration of the Vulnerability type for use with apply.

func Vulnerability

func Vulnerability() *VulnerabilityApplyConfiguration

VulnerabilityApplyConfiguration constructs a declarative configuration of the Vulnerability type for use with apply.

func (*VulnerabilityApplyConfiguration) WithFixedVersion

WithFixedVersion sets the FixedVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FixedVersion field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithInstalledVersion

WithInstalledVersion sets the InstalledVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the InstalledVersion field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithPkgName

WithPkgName sets the PkgName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PkgName field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithPkgPath

WithPkgPath sets the PkgPath field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PkgPath field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithPrimaryURL

WithPrimaryURL sets the PrimaryURL field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PrimaryURL field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithSeverity

WithSeverity sets the Severity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Severity field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithTitle

WithTitle sets the Title field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Title field is set to the value of the last call.

func (*VulnerabilityApplyConfiguration) WithVulnerabilityID

WithVulnerabilityID sets the VulnerabilityID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the VulnerabilityID field is set to the value of the last call.

type VulnerabilitySummaryApplyConfiguration

type VulnerabilitySummaryApplyConfiguration struct {
	SeverityCount map[string]int32 `json:"severityCount,omitempty"`
	FixedCount    *int32           `json:"fixedCount,omitempty"`
	UnfixedCount  *int32           `json:"unfixedCount,omitempty"`
}

VulnerabilitySummaryApplyConfiguration represents a declarative configuration of the VulnerabilitySummary type for use with apply.

func VulnerabilitySummary

func VulnerabilitySummary() *VulnerabilitySummaryApplyConfiguration

VulnerabilitySummaryApplyConfiguration constructs a declarative configuration of the VulnerabilitySummary type for use with apply.

func (*VulnerabilitySummaryApplyConfiguration) WithFixedCount

WithFixedCount sets the FixedCount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FixedCount field is set to the value of the last call.

func (*VulnerabilitySummaryApplyConfiguration) WithSeverityCount

WithSeverityCount puts the entries into the SeverityCount field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the SeverityCount field, overwriting an existing map entries in SeverityCount field with the same key.

func (*VulnerabilitySummaryApplyConfiguration) WithUnfixedCount

WithUnfixedCount sets the UnfixedCount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UnfixedCount field is set to the value of the last call.

type WorkloadApplyConfiguration

type WorkloadApplyConfiguration struct {
	Group         *string `json:"group,omitempty"`
	Kind          *string `json:"kind,omitempty"`
	Name          *string `json:"name,omitempty"`
	ContainerName *string `json:"containerName,omitempty"`
}

WorkloadApplyConfiguration represents a declarative configuration of the Workload type for use with apply.

func Workload

func Workload() *WorkloadApplyConfiguration

WorkloadApplyConfiguration constructs a declarative configuration of the Workload type for use with apply.

func (*WorkloadApplyConfiguration) WithContainerName

func (b *WorkloadApplyConfiguration) WithContainerName(value string) *WorkloadApplyConfiguration

WithContainerName sets the ContainerName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ContainerName field is set to the value of the last call.

func (*WorkloadApplyConfiguration) WithGroup

WithGroup sets the Group field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Group field is set to the value of the last call.

func (*WorkloadApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*WorkloadApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

Jump to

Keyboard shortcuts

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