Documentation ¶
Index ¶
- type ImageReviewApplyConfiguration
- func ExtractImageReview(imageReview *imagepolicyv1alpha1.ImageReview, fieldManager string) (*ImageReviewApplyConfiguration, error)
- func ExtractImageReviewStatus(imageReview *imagepolicyv1alpha1.ImageReview, fieldManager string) (*ImageReviewApplyConfiguration, error)
- func ImageReview(name string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithAPIVersion(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithAnnotations(entries map[string]string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithClusterName(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithFinalizers(values ...string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithGenerateName(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithGeneration(value int64) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithKind(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithLabels(entries map[string]string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithName(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithNamespace(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithResourceVersion(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithSelfLink(value string) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithSpec(value *ImageReviewSpecApplyConfiguration) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithStatus(value *ImageReviewStatusApplyConfiguration) *ImageReviewApplyConfiguration
- func (b *ImageReviewApplyConfiguration) WithUID(value types.UID) *ImageReviewApplyConfiguration
- type ImageReviewContainerSpecApplyConfiguration
- type ImageReviewSpecApplyConfiguration
- func (b *ImageReviewSpecApplyConfiguration) WithAnnotations(entries map[string]string) *ImageReviewSpecApplyConfiguration
- func (b *ImageReviewSpecApplyConfiguration) WithContainers(values ...*ImageReviewContainerSpecApplyConfiguration) *ImageReviewSpecApplyConfiguration
- func (b *ImageReviewSpecApplyConfiguration) WithNamespace(value string) *ImageReviewSpecApplyConfiguration
- type ImageReviewStatusApplyConfiguration
- func (b *ImageReviewStatusApplyConfiguration) WithAllowed(value bool) *ImageReviewStatusApplyConfiguration
- func (b *ImageReviewStatusApplyConfiguration) WithAuditAnnotations(entries map[string]string) *ImageReviewStatusApplyConfiguration
- func (b *ImageReviewStatusApplyConfiguration) WithReason(value string) *ImageReviewStatusApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageReviewApplyConfiguration ¶
type ImageReviewApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *ImageReviewSpecApplyConfiguration `json:"spec,omitempty"` Status *ImageReviewStatusApplyConfiguration `json:"status,omitempty"` }
ImageReviewApplyConfiguration represents an declarative configuration of the ImageReview type for use with apply.
func ExtractImageReview ¶
func ExtractImageReview(imageReview *imagepolicyv1alpha1.ImageReview, fieldManager string) (*ImageReviewApplyConfiguration, error)
ExtractImageReview extracts the applied configuration owned by fieldManager from imageReview. If no managedFields are found in imageReview for fieldManager, a ImageReviewApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. imageReview must be a unmodified ImageReview API object that was retrieved from the Kubernetes API. ExtractImageReview provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!
func ExtractImageReviewStatus ¶ added in v0.22.0
func ExtractImageReviewStatus(imageReview *imagepolicyv1alpha1.ImageReview, fieldManager string) (*ImageReviewApplyConfiguration, error)
ExtractImageReviewStatus is the same as ExtractImageReview except that it extracts the status subresource applied configuration. Experimental!
func ImageReview ¶
func ImageReview(name string) *ImageReviewApplyConfiguration
ImageReview constructs an declarative configuration of the ImageReview type for use with apply.
func (*ImageReviewApplyConfiguration) WithAPIVersion ¶
func (b *ImageReviewApplyConfiguration) WithAPIVersion(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithAnnotations ¶
func (b *ImageReviewApplyConfiguration) WithAnnotations(entries map[string]string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithClusterName ¶
func (b *ImageReviewApplyConfiguration) WithClusterName(value string) *ImageReviewApplyConfiguration
WithClusterName sets the ClusterName 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 ClusterName field is set to the value of the last call.
func (*ImageReviewApplyConfiguration) WithCreationTimestamp ¶
func (b *ImageReviewApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *ImageReviewApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithDeletionTimestamp ¶
func (b *ImageReviewApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithFinalizers ¶
func (b *ImageReviewApplyConfiguration) WithFinalizers(values ...string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithGenerateName ¶
func (b *ImageReviewApplyConfiguration) WithGenerateName(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithGeneration ¶
func (b *ImageReviewApplyConfiguration) WithGeneration(value int64) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithKind ¶
func (b *ImageReviewApplyConfiguration) WithKind(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithLabels ¶
func (b *ImageReviewApplyConfiguration) WithLabels(entries map[string]string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithName ¶
func (b *ImageReviewApplyConfiguration) WithName(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithNamespace ¶
func (b *ImageReviewApplyConfiguration) WithNamespace(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithOwnerReferences ¶
func (b *ImageReviewApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithResourceVersion ¶
func (b *ImageReviewApplyConfiguration) WithResourceVersion(value string) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithSelfLink ¶
func (b *ImageReviewApplyConfiguration) WithSelfLink(value string) *ImageReviewApplyConfiguration
WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.
func (*ImageReviewApplyConfiguration) WithSpec ¶
func (b *ImageReviewApplyConfiguration) WithSpec(value *ImageReviewSpecApplyConfiguration) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithStatus ¶
func (b *ImageReviewApplyConfiguration) WithStatus(value *ImageReviewStatusApplyConfiguration) *ImageReviewApplyConfiguration
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 (*ImageReviewApplyConfiguration) WithUID ¶
func (b *ImageReviewApplyConfiguration) WithUID(value types.UID) *ImageReviewApplyConfiguration
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 ImageReviewContainerSpecApplyConfiguration ¶
type ImageReviewContainerSpecApplyConfiguration struct {
Image *string `json:"image,omitempty"`
}
ImageReviewContainerSpecApplyConfiguration represents an declarative configuration of the ImageReviewContainerSpec type for use with apply.
func ImageReviewContainerSpec ¶
func ImageReviewContainerSpec() *ImageReviewContainerSpecApplyConfiguration
ImageReviewContainerSpecApplyConfiguration constructs an declarative configuration of the ImageReviewContainerSpec type for use with apply.
func (*ImageReviewContainerSpecApplyConfiguration) WithImage ¶
func (b *ImageReviewContainerSpecApplyConfiguration) WithImage(value string) *ImageReviewContainerSpecApplyConfiguration
WithImage sets the Image 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 Image field is set to the value of the last call.
type ImageReviewSpecApplyConfiguration ¶
type ImageReviewSpecApplyConfiguration struct { Containers []ImageReviewContainerSpecApplyConfiguration `json:"containers,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` Namespace *string `json:"namespace,omitempty"` }
ImageReviewSpecApplyConfiguration represents an declarative configuration of the ImageReviewSpec type for use with apply.
func ImageReviewSpec ¶
func ImageReviewSpec() *ImageReviewSpecApplyConfiguration
ImageReviewSpecApplyConfiguration constructs an declarative configuration of the ImageReviewSpec type for use with apply.
func (*ImageReviewSpecApplyConfiguration) WithAnnotations ¶
func (b *ImageReviewSpecApplyConfiguration) WithAnnotations(entries map[string]string) *ImageReviewSpecApplyConfiguration
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 (*ImageReviewSpecApplyConfiguration) WithContainers ¶
func (b *ImageReviewSpecApplyConfiguration) WithContainers(values ...*ImageReviewContainerSpecApplyConfiguration) *ImageReviewSpecApplyConfiguration
WithContainers adds the given value to the Containers 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 Containers field.
func (*ImageReviewSpecApplyConfiguration) WithNamespace ¶
func (b *ImageReviewSpecApplyConfiguration) WithNamespace(value string) *ImageReviewSpecApplyConfiguration
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.
type ImageReviewStatusApplyConfiguration ¶
type ImageReviewStatusApplyConfiguration struct { Allowed *bool `json:"allowed,omitempty"` Reason *string `json:"reason,omitempty"` AuditAnnotations map[string]string `json:"auditAnnotations,omitempty"` }
ImageReviewStatusApplyConfiguration represents an declarative configuration of the ImageReviewStatus type for use with apply.
func ImageReviewStatus ¶
func ImageReviewStatus() *ImageReviewStatusApplyConfiguration
ImageReviewStatusApplyConfiguration constructs an declarative configuration of the ImageReviewStatus type for use with apply.
func (*ImageReviewStatusApplyConfiguration) WithAllowed ¶
func (b *ImageReviewStatusApplyConfiguration) WithAllowed(value bool) *ImageReviewStatusApplyConfiguration
WithAllowed sets the Allowed 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 Allowed field is set to the value of the last call.
func (*ImageReviewStatusApplyConfiguration) WithAuditAnnotations ¶
func (b *ImageReviewStatusApplyConfiguration) WithAuditAnnotations(entries map[string]string) *ImageReviewStatusApplyConfiguration
WithAuditAnnotations puts the entries into the AuditAnnotations 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 AuditAnnotations field, overwriting an existing map entries in AuditAnnotations field with the same key.
func (*ImageReviewStatusApplyConfiguration) WithReason ¶
func (b *ImageReviewStatusApplyConfiguration) WithReason(value string) *ImageReviewStatusApplyConfiguration
WithReason sets the Reason 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 Reason field is set to the value of the last call.