v1alpha2

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPolicyReportApplyConfiguration

type ClusterPolicyReportApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Scope                            *corev1.ObjectReference                `json:"scope,omitempty"`
	ScopeSelector                    *metav1.LabelSelector                  `json:"scopeSelector,omitempty"`
	Summary                          *PolicyReportSummaryApplyConfiguration `json:"summary,omitempty"`
	Results                          []PolicyReportResultApplyConfiguration `json:"results,omitempty"`
}

ClusterPolicyReportApplyConfiguration represents an declarative configuration of the ClusterPolicyReport type for use with apply.

func ClusterPolicyReport

func ClusterPolicyReport(name string) *ClusterPolicyReportApplyConfiguration

ClusterPolicyReport constructs an declarative configuration of the ClusterPolicyReport type for use with apply.

func (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) 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 (*ClusterPolicyReportApplyConfiguration) WithResults

WithResults adds the given value to the Results 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 Results field.

func (*ClusterPolicyReportApplyConfiguration) WithScope

WithScope sets the Scope 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 Scope field is set to the value of the last call.

func (*ClusterPolicyReportApplyConfiguration) WithScopeSelector

WithScopeSelector sets the ScopeSelector 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 ScopeSelector field is set to the value of the last call.

func (*ClusterPolicyReportApplyConfiguration) WithSummary

WithSummary sets the Summary 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 Summary field is set to the value of the last call.

func (*ClusterPolicyReportApplyConfiguration) 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 PolicyReportApplyConfiguration

type PolicyReportApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Scope                            *corev1.ObjectReference                `json:"scope,omitempty"`
	ScopeSelector                    *metav1.LabelSelector                  `json:"scopeSelector,omitempty"`
	Summary                          *PolicyReportSummaryApplyConfiguration `json:"summary,omitempty"`
	Results                          []PolicyReportResultApplyConfiguration `json:"results,omitempty"`
}

PolicyReportApplyConfiguration represents an declarative configuration of the PolicyReport type for use with apply.

func PolicyReport

func PolicyReport(name, namespace string) *PolicyReportApplyConfiguration

PolicyReport constructs an declarative configuration of the PolicyReport type for use with apply.

func (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) 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 (*PolicyReportApplyConfiguration) WithResults

WithResults adds the given value to the Results 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 Results field.

func (*PolicyReportApplyConfiguration) WithScope

WithScope sets the Scope 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 Scope field is set to the value of the last call.

func (*PolicyReportApplyConfiguration) WithScopeSelector

WithScopeSelector sets the ScopeSelector 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 ScopeSelector field is set to the value of the last call.

func (*PolicyReportApplyConfiguration) WithSummary

WithSummary sets the Summary 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 Summary field is set to the value of the last call.

func (*PolicyReportApplyConfiguration) 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 PolicyReportResultApplyConfiguration

type PolicyReportResultApplyConfiguration struct {
	Source           *string                  `json:"source,omitempty"`
	Policy           *string                  `json:"policy,omitempty"`
	Rule             *string                  `json:"rule,omitempty"`
	Resources        []v1.ObjectReference     `json:"resources,omitempty"`
	ResourceSelector *metav1.LabelSelector    `json:"resourceSelector,omitempty"`
	Message          *string                  `json:"message,omitempty"`
	Result           *v1alpha2.PolicyResult   `json:"result,omitempty"`
	Scored           *bool                    `json:"scored,omitempty"`
	Properties       map[string]string        `json:"properties,omitempty"`
	Timestamp        *metav1.Timestamp        `json:"timestamp,omitempty"`
	Category         *string                  `json:"category,omitempty"`
	Severity         *v1alpha2.PolicySeverity `json:"severity,omitempty"`
}

PolicyReportResultApplyConfiguration represents an declarative configuration of the PolicyReportResult type for use with apply.

func PolicyReportResult

func PolicyReportResult() *PolicyReportResultApplyConfiguration

PolicyReportResultApplyConfiguration constructs an declarative configuration of the PolicyReportResult type for use with apply.

func (*PolicyReportResultApplyConfiguration) WithCategory

WithCategory sets the Category 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 Category field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithMessage

WithMessage sets the Message 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 Message field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithPolicy

WithPolicy sets the Policy 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 Policy field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithProperties

WithProperties puts the entries into the Properties 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 Properties field, overwriting an existing map entries in Properties field with the same key.

func (*PolicyReportResultApplyConfiguration) WithResourceSelector

WithResourceSelector sets the ResourceSelector 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 ResourceSelector field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithResources

WithResources adds the given value to the Resources 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 Resources field.

func (*PolicyReportResultApplyConfiguration) WithResult

WithResult sets the Result 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 Result field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithRule

WithRule sets the Rule 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 Rule field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithScored

WithScored sets the Scored 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 Scored field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) 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 (*PolicyReportResultApplyConfiguration) WithSource

WithSource sets the Source 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 Source field is set to the value of the last call.

func (*PolicyReportResultApplyConfiguration) WithTimestamp

WithTimestamp sets the Timestamp 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 Timestamp field is set to the value of the last call.

type PolicyReportSummaryApplyConfiguration

type PolicyReportSummaryApplyConfiguration struct {
	Pass  *int `json:"pass,omitempty"`
	Fail  *int `json:"fail,omitempty"`
	Warn  *int `json:"warn,omitempty"`
	Error *int `json:"error,omitempty"`
	Skip  *int `json:"skip,omitempty"`
}

PolicyReportSummaryApplyConfiguration represents an declarative configuration of the PolicyReportSummary type for use with apply.

func PolicyReportSummary

func PolicyReportSummary() *PolicyReportSummaryApplyConfiguration

PolicyReportSummaryApplyConfiguration constructs an declarative configuration of the PolicyReportSummary type for use with apply.

func (*PolicyReportSummaryApplyConfiguration) WithError

WithError sets the Error 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 Error field is set to the value of the last call.

func (*PolicyReportSummaryApplyConfiguration) WithFail

WithFail sets the Fail 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 Fail field is set to the value of the last call.

func (*PolicyReportSummaryApplyConfiguration) WithPass

WithPass sets the Pass 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 Pass field is set to the value of the last call.

func (*PolicyReportSummaryApplyConfiguration) WithSkip

WithSkip sets the Skip 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 Skip field is set to the value of the last call.

func (*PolicyReportSummaryApplyConfiguration) WithWarn

WithWarn sets the Warn 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 Warn 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