Documentation
¶
Index ¶
- type ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithAPIVersion(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithFinalizers(values ...string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithGenerateName(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithGeneration(value int64) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithKind(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithLabels(entries map[string]string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithName(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithNamespace(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithResourceVersion(value string) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithResults(values ...*PolicyReportResultApplyConfiguration) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithScope(value corev1.ObjectReference) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithScopeSelector(value metav1.LabelSelector) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithSummary(value *PolicyReportSummaryApplyConfiguration) *ClusterPolicyReportApplyConfiguration
- func (b *ClusterPolicyReportApplyConfiguration) WithUID(value types.UID) *ClusterPolicyReportApplyConfiguration
- type PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithAPIVersion(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithFinalizers(values ...string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithGenerateName(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithGeneration(value int64) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithKind(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithLabels(entries map[string]string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithName(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithNamespace(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithResourceVersion(value string) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithResults(values ...*PolicyReportResultApplyConfiguration) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithScope(value corev1.ObjectReference) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithScopeSelector(value metav1.LabelSelector) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithSummary(value *PolicyReportSummaryApplyConfiguration) *PolicyReportApplyConfiguration
- func (b *PolicyReportApplyConfiguration) WithUID(value types.UID) *PolicyReportApplyConfiguration
- type PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithCategory(value string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithMessage(value string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithPolicy(value string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithProperties(entries map[string]string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithResourceSelector(value metav1.LabelSelector) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithResources(values ...v1.ObjectReference) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithResult(value v1alpha2.PolicyResult) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithRule(value string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithScored(value bool) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithSeverity(value v1alpha2.PolicySeverity) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithSource(value string) *PolicyReportResultApplyConfiguration
- func (b *PolicyReportResultApplyConfiguration) WithTimestamp(value metav1.Timestamp) *PolicyReportResultApplyConfiguration
- type PolicyReportSummaryApplyConfiguration
- func (b *PolicyReportSummaryApplyConfiguration) WithError(value int) *PolicyReportSummaryApplyConfiguration
- func (b *PolicyReportSummaryApplyConfiguration) WithFail(value int) *PolicyReportSummaryApplyConfiguration
- func (b *PolicyReportSummaryApplyConfiguration) WithPass(value int) *PolicyReportSummaryApplyConfiguration
- func (b *PolicyReportSummaryApplyConfiguration) WithSkip(value int) *PolicyReportSummaryApplyConfiguration
- func (b *PolicyReportSummaryApplyConfiguration) WithWarn(value int) *PolicyReportSummaryApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithAPIVersion(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithFinalizers(values ...string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithGenerateName(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithGeneration(value int64) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithKind(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithLabels(entries map[string]string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithName(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithNamespace(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithResourceVersion(value string) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithResults(values ...*PolicyReportResultApplyConfiguration) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithScope(value corev1.ObjectReference) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithScopeSelector(value metav1.LabelSelector) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithSummary(value *PolicyReportSummaryApplyConfiguration) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *ClusterPolicyReportApplyConfiguration) WithUID(value types.UID) *ClusterPolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithAPIVersion(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithAnnotations(entries map[string]string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithCreationTimestamp(value metav1.Time) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithFinalizers(values ...string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithGenerateName(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithGeneration(value int64) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithKind(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithLabels(entries map[string]string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithName(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithNamespace(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithResourceVersion(value string) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithResults(values ...*PolicyReportResultApplyConfiguration) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithScope(value corev1.ObjectReference) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithScopeSelector(value metav1.LabelSelector) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithSummary(value *PolicyReportSummaryApplyConfiguration) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportApplyConfiguration) WithUID(value types.UID) *PolicyReportApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithCategory(value string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithMessage(value string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithPolicy(value string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithProperties(entries map[string]string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithResourceSelector(value metav1.LabelSelector) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithResources(values ...v1.ObjectReference) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithResult(value v1alpha2.PolicyResult) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithRule(value string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithScored(value bool) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithSeverity(value v1alpha2.PolicySeverity) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithSource(value string) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportResultApplyConfiguration) WithTimestamp(value metav1.Timestamp) *PolicyReportResultApplyConfiguration
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 ¶
func (b *PolicyReportSummaryApplyConfiguration) WithError(value int) *PolicyReportSummaryApplyConfiguration
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 ¶
func (b *PolicyReportSummaryApplyConfiguration) WithFail(value int) *PolicyReportSummaryApplyConfiguration
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 ¶
func (b *PolicyReportSummaryApplyConfiguration) WithPass(value int) *PolicyReportSummaryApplyConfiguration
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 ¶
func (b *PolicyReportSummaryApplyConfiguration) WithSkip(value int) *PolicyReportSummaryApplyConfiguration
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 ¶
func (b *PolicyReportSummaryApplyConfiguration) WithWarn(value int) *PolicyReportSummaryApplyConfiguration
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.