Documentation ¶
Index ¶
- type AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithFinalizers(values ...string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithGenerateName(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithGeneration(value int64) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithKind(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithLabels(entries map[string]string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithName(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithNamespace(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithResourceVersion(value string) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithSpec(value *AdminNetworkPolicySpecApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithStatus(value *AdminNetworkPolicyStatusApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
- func (b *AdminNetworkPolicyApplyConfiguration) WithUID(value types.UID) *AdminNetworkPolicyApplyConfiguration
- type AdminNetworkPolicyEgressPeerApplyConfiguration
- func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNamespaces(value v1.LabelSelector) *AdminNetworkPolicyEgressPeerApplyConfiguration
- func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNetworks(values ...apisv1alpha1.CIDR) *AdminNetworkPolicyEgressPeerApplyConfiguration
- func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNodes(value v1.LabelSelector) *AdminNetworkPolicyEgressPeerApplyConfiguration
- func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithPods(value *NamespacedPodApplyConfiguration) *AdminNetworkPolicyEgressPeerApplyConfiguration
- type AdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithAction(value v1alpha1.AdminNetworkPolicyRuleAction) *AdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithName(value string) *AdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *AdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithTo(values ...*AdminNetworkPolicyEgressPeerApplyConfiguration) *AdminNetworkPolicyEgressRuleApplyConfiguration
- type AdminNetworkPolicyIngressPeerApplyConfiguration
- func (b *AdminNetworkPolicyIngressPeerApplyConfiguration) WithNamespaces(value v1.LabelSelector) *AdminNetworkPolicyIngressPeerApplyConfiguration
- func (b *AdminNetworkPolicyIngressPeerApplyConfiguration) WithPods(value *NamespacedPodApplyConfiguration) *AdminNetworkPolicyIngressPeerApplyConfiguration
- type AdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithAction(value v1alpha1.AdminNetworkPolicyRuleAction) *AdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom(values ...*AdminNetworkPolicyIngressPeerApplyConfiguration) *AdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithName(value string) *AdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *AdminNetworkPolicyIngressRuleApplyConfiguration
- type AdminNetworkPolicyPortApplyConfiguration
- func (b *AdminNetworkPolicyPortApplyConfiguration) WithNamedPort(value string) *AdminNetworkPolicyPortApplyConfiguration
- func (b *AdminNetworkPolicyPortApplyConfiguration) WithPortNumber(value *PortApplyConfiguration) *AdminNetworkPolicyPortApplyConfiguration
- func (b *AdminNetworkPolicyPortApplyConfiguration) WithPortRange(value *PortRangeApplyConfiguration) *AdminNetworkPolicyPortApplyConfiguration
- type AdminNetworkPolicySpecApplyConfiguration
- func (b *AdminNetworkPolicySpecApplyConfiguration) WithEgress(values ...*AdminNetworkPolicyEgressRuleApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
- func (b *AdminNetworkPolicySpecApplyConfiguration) WithIngress(values ...*AdminNetworkPolicyIngressRuleApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
- func (b *AdminNetworkPolicySpecApplyConfiguration) WithPriority(value int32) *AdminNetworkPolicySpecApplyConfiguration
- func (b *AdminNetworkPolicySpecApplyConfiguration) WithSubject(value *AdminNetworkPolicySubjectApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
- type AdminNetworkPolicyStatusApplyConfiguration
- type AdminNetworkPolicySubjectApplyConfiguration
- type BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithFinalizers(values ...string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithGenerateName(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithGeneration(value int64) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithKind(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithLabels(entries map[string]string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithNamespace(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithResourceVersion(value string) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithSpec(value *BaselineAdminNetworkPolicySpecApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithStatus(value *BaselineAdminNetworkPolicyStatusApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
- func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithUID(value types.UID) *BaselineAdminNetworkPolicyApplyConfiguration
- type BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithAction(value v1alpha1.BaselineAdminNetworkPolicyRuleAction) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithTo(values ...*AdminNetworkPolicyEgressPeerApplyConfiguration) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
- type BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithAction(value v1alpha1.BaselineAdminNetworkPolicyRuleAction) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom(values ...*AdminNetworkPolicyIngressPeerApplyConfiguration) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
- func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
- type BaselineAdminNetworkPolicySpecApplyConfiguration
- func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithEgress(values ...*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
- func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithIngress(values ...*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
- func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithSubject(value *AdminNetworkPolicySubjectApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
- type BaselineAdminNetworkPolicyStatusApplyConfiguration
- type NamespacedPeerApplyConfiguration
- func (b *NamespacedPeerApplyConfiguration) WithNamespaceSelector(value v1.LabelSelector) *NamespacedPeerApplyConfiguration
- func (b *NamespacedPeerApplyConfiguration) WithNotSameLabels(values ...string) *NamespacedPeerApplyConfiguration
- func (b *NamespacedPeerApplyConfiguration) WithSameLabels(values ...string) *NamespacedPeerApplyConfiguration
- type NamespacedPodApplyConfiguration
- type NamespacedPodPeerApplyConfiguration
- type NamespacedPodSubjectApplyConfiguration
- type PortApplyConfiguration
- type PortRangeApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminNetworkPolicyApplyConfiguration ¶
type AdminNetworkPolicyApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *AdminNetworkPolicySpecApplyConfiguration `json:"spec,omitempty"` Status *AdminNetworkPolicyStatusApplyConfiguration `json:"status,omitempty"` }
AdminNetworkPolicyApplyConfiguration represents an declarative configuration of the AdminNetworkPolicy type for use with apply.
func AdminNetworkPolicy ¶
func AdminNetworkPolicy(name string) *AdminNetworkPolicyApplyConfiguration
AdminNetworkPolicy constructs an declarative configuration of the AdminNetworkPolicy type for use with apply.
func (*AdminNetworkPolicyApplyConfiguration) WithAPIVersion ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithAnnotations ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithCreationTimestamp ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithFinalizers ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithFinalizers(values ...string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithGenerateName ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithGenerateName(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithGeneration ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithGeneration(value int64) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithKind ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithKind(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithLabels ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithLabels(entries map[string]string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithName ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithName(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithNamespace ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithNamespace(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithOwnerReferences ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithResourceVersion ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithResourceVersion(value string) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithSpec ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithSpec(value *AdminNetworkPolicySpecApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithStatus ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithStatus(value *AdminNetworkPolicyStatusApplyConfiguration) *AdminNetworkPolicyApplyConfiguration
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 (*AdminNetworkPolicyApplyConfiguration) WithUID ¶
func (b *AdminNetworkPolicyApplyConfiguration) WithUID(value types.UID) *AdminNetworkPolicyApplyConfiguration
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 AdminNetworkPolicyEgressPeerApplyConfiguration ¶
type AdminNetworkPolicyEgressPeerApplyConfiguration struct { Namespaces *v1.LabelSelector `json:"namespaces,omitempty"` Pods *NamespacedPodApplyConfiguration `json:"pods,omitempty"` Nodes *v1.LabelSelector `json:"nodes,omitempty"` Networks []apisv1alpha1.CIDR `json:"networks,omitempty"` }
AdminNetworkPolicyEgressPeerApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyEgressPeer type for use with apply.
func AdminNetworkPolicyEgressPeer ¶
func AdminNetworkPolicyEgressPeer() *AdminNetworkPolicyEgressPeerApplyConfiguration
AdminNetworkPolicyEgressPeerApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyEgressPeer type for use with apply.
func (*AdminNetworkPolicyEgressPeerApplyConfiguration) WithNamespaces ¶
func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNamespaces(value v1.LabelSelector) *AdminNetworkPolicyEgressPeerApplyConfiguration
WithNamespaces sets the Namespaces 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 Namespaces field is set to the value of the last call.
func (*AdminNetworkPolicyEgressPeerApplyConfiguration) WithNetworks ¶
func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNetworks(values ...apisv1alpha1.CIDR) *AdminNetworkPolicyEgressPeerApplyConfiguration
WithNetworks adds the given value to the Networks 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 Networks field.
func (*AdminNetworkPolicyEgressPeerApplyConfiguration) WithNodes ¶
func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithNodes(value v1.LabelSelector) *AdminNetworkPolicyEgressPeerApplyConfiguration
WithNodes sets the Nodes 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 Nodes field is set to the value of the last call.
func (*AdminNetworkPolicyEgressPeerApplyConfiguration) WithPods ¶
func (b *AdminNetworkPolicyEgressPeerApplyConfiguration) WithPods(value *NamespacedPodApplyConfiguration) *AdminNetworkPolicyEgressPeerApplyConfiguration
WithPods sets the Pods 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 Pods field is set to the value of the last call.
type AdminNetworkPolicyEgressRuleApplyConfiguration ¶
type AdminNetworkPolicyEgressRuleApplyConfiguration struct { Name *string `json:"name,omitempty"` Action *v1alpha1.AdminNetworkPolicyRuleAction `json:"action,omitempty"` To []AdminNetworkPolicyEgressPeerApplyConfiguration `json:"to,omitempty"` Ports *[]AdminNetworkPolicyPortApplyConfiguration `json:"ports,omitempty"` }
AdminNetworkPolicyEgressRuleApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyEgressRule type for use with apply.
func AdminNetworkPolicyEgressRule ¶
func AdminNetworkPolicyEgressRule() *AdminNetworkPolicyEgressRuleApplyConfiguration
AdminNetworkPolicyEgressRuleApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyEgressRule type for use with apply.
func (*AdminNetworkPolicyEgressRuleApplyConfiguration) WithAction ¶
func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithAction(value v1alpha1.AdminNetworkPolicyRuleAction) *AdminNetworkPolicyEgressRuleApplyConfiguration
WithAction sets the Action 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 Action field is set to the value of the last call.
func (*AdminNetworkPolicyEgressRuleApplyConfiguration) WithName ¶
func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithName(value string) *AdminNetworkPolicyEgressRuleApplyConfiguration
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 (*AdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts ¶
func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *AdminNetworkPolicyEgressRuleApplyConfiguration
WithPorts adds the given value to the Ports 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 Ports field.
func (*AdminNetworkPolicyEgressRuleApplyConfiguration) WithTo ¶
func (b *AdminNetworkPolicyEgressRuleApplyConfiguration) WithTo(values ...*AdminNetworkPolicyEgressPeerApplyConfiguration) *AdminNetworkPolicyEgressRuleApplyConfiguration
WithTo adds the given value to the To 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 To field.
type AdminNetworkPolicyIngressPeerApplyConfiguration ¶
type AdminNetworkPolicyIngressPeerApplyConfiguration struct { Namespaces *v1.LabelSelector `json:"namespaces,omitempty"` Pods *NamespacedPodApplyConfiguration `json:"pods,omitempty"` }
AdminNetworkPolicyIngressPeerApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyIngressPeer type for use with apply.
func AdminNetworkPolicyIngressPeer ¶
func AdminNetworkPolicyIngressPeer() *AdminNetworkPolicyIngressPeerApplyConfiguration
AdminNetworkPolicyIngressPeerApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyIngressPeer type for use with apply.
func (*AdminNetworkPolicyIngressPeerApplyConfiguration) WithNamespaces ¶
func (b *AdminNetworkPolicyIngressPeerApplyConfiguration) WithNamespaces(value v1.LabelSelector) *AdminNetworkPolicyIngressPeerApplyConfiguration
WithNamespaces sets the Namespaces 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 Namespaces field is set to the value of the last call.
func (*AdminNetworkPolicyIngressPeerApplyConfiguration) WithPods ¶
func (b *AdminNetworkPolicyIngressPeerApplyConfiguration) WithPods(value *NamespacedPodApplyConfiguration) *AdminNetworkPolicyIngressPeerApplyConfiguration
WithPods sets the Pods 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 Pods field is set to the value of the last call.
type AdminNetworkPolicyIngressRuleApplyConfiguration ¶
type AdminNetworkPolicyIngressRuleApplyConfiguration struct { Name *string `json:"name,omitempty"` Action *v1alpha1.AdminNetworkPolicyRuleAction `json:"action,omitempty"` From []AdminNetworkPolicyIngressPeerApplyConfiguration `json:"from,omitempty"` Ports *[]AdminNetworkPolicyPortApplyConfiguration `json:"ports,omitempty"` }
AdminNetworkPolicyIngressRuleApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyIngressRule type for use with apply.
func AdminNetworkPolicyIngressRule ¶
func AdminNetworkPolicyIngressRule() *AdminNetworkPolicyIngressRuleApplyConfiguration
AdminNetworkPolicyIngressRuleApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyIngressRule type for use with apply.
func (*AdminNetworkPolicyIngressRuleApplyConfiguration) WithAction ¶
func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithAction(value v1alpha1.AdminNetworkPolicyRuleAction) *AdminNetworkPolicyIngressRuleApplyConfiguration
WithAction sets the Action 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 Action field is set to the value of the last call.
func (*AdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom ¶
func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom(values ...*AdminNetworkPolicyIngressPeerApplyConfiguration) *AdminNetworkPolicyIngressRuleApplyConfiguration
WithFrom adds the given value to the From 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 From field.
func (*AdminNetworkPolicyIngressRuleApplyConfiguration) WithName ¶
func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithName(value string) *AdminNetworkPolicyIngressRuleApplyConfiguration
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 (*AdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts ¶
func (b *AdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *AdminNetworkPolicyIngressRuleApplyConfiguration
WithPorts adds the given value to the Ports 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 Ports field.
type AdminNetworkPolicyPortApplyConfiguration ¶
type AdminNetworkPolicyPortApplyConfiguration struct { PortNumber *PortApplyConfiguration `json:"portNumber,omitempty"` NamedPort *string `json:"namedPort,omitempty"` PortRange *PortRangeApplyConfiguration `json:"portRange,omitempty"` }
AdminNetworkPolicyPortApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyPort type for use with apply.
func AdminNetworkPolicyPort ¶
func AdminNetworkPolicyPort() *AdminNetworkPolicyPortApplyConfiguration
AdminNetworkPolicyPortApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyPort type for use with apply.
func (*AdminNetworkPolicyPortApplyConfiguration) WithNamedPort ¶
func (b *AdminNetworkPolicyPortApplyConfiguration) WithNamedPort(value string) *AdminNetworkPolicyPortApplyConfiguration
WithNamedPort sets the NamedPort 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 NamedPort field is set to the value of the last call.
func (*AdminNetworkPolicyPortApplyConfiguration) WithPortNumber ¶
func (b *AdminNetworkPolicyPortApplyConfiguration) WithPortNumber(value *PortApplyConfiguration) *AdminNetworkPolicyPortApplyConfiguration
WithPortNumber sets the PortNumber 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 PortNumber field is set to the value of the last call.
func (*AdminNetworkPolicyPortApplyConfiguration) WithPortRange ¶
func (b *AdminNetworkPolicyPortApplyConfiguration) WithPortRange(value *PortRangeApplyConfiguration) *AdminNetworkPolicyPortApplyConfiguration
WithPortRange sets the PortRange 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 PortRange field is set to the value of the last call.
type AdminNetworkPolicySpecApplyConfiguration ¶
type AdminNetworkPolicySpecApplyConfiguration struct { Priority *int32 `json:"priority,omitempty"` Subject *AdminNetworkPolicySubjectApplyConfiguration `json:"subject,omitempty"` Ingress []AdminNetworkPolicyIngressRuleApplyConfiguration `json:"ingress,omitempty"` Egress []AdminNetworkPolicyEgressRuleApplyConfiguration `json:"egress,omitempty"` }
AdminNetworkPolicySpecApplyConfiguration represents an declarative configuration of the AdminNetworkPolicySpec type for use with apply.
func AdminNetworkPolicySpec ¶
func AdminNetworkPolicySpec() *AdminNetworkPolicySpecApplyConfiguration
AdminNetworkPolicySpecApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicySpec type for use with apply.
func (*AdminNetworkPolicySpecApplyConfiguration) WithEgress ¶
func (b *AdminNetworkPolicySpecApplyConfiguration) WithEgress(values ...*AdminNetworkPolicyEgressRuleApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
WithEgress adds the given value to the Egress 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 Egress field.
func (*AdminNetworkPolicySpecApplyConfiguration) WithIngress ¶
func (b *AdminNetworkPolicySpecApplyConfiguration) WithIngress(values ...*AdminNetworkPolicyIngressRuleApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
WithIngress adds the given value to the Ingress 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 Ingress field.
func (*AdminNetworkPolicySpecApplyConfiguration) WithPriority ¶
func (b *AdminNetworkPolicySpecApplyConfiguration) WithPriority(value int32) *AdminNetworkPolicySpecApplyConfiguration
WithPriority sets the Priority 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 Priority field is set to the value of the last call.
func (*AdminNetworkPolicySpecApplyConfiguration) WithSubject ¶
func (b *AdminNetworkPolicySpecApplyConfiguration) WithSubject(value *AdminNetworkPolicySubjectApplyConfiguration) *AdminNetworkPolicySpecApplyConfiguration
WithSubject sets the Subject 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 Subject field is set to the value of the last call.
type AdminNetworkPolicyStatusApplyConfiguration ¶
type AdminNetworkPolicyStatusApplyConfiguration struct {
Conditions []v1.Condition `json:"conditions,omitempty"`
}
AdminNetworkPolicyStatusApplyConfiguration represents an declarative configuration of the AdminNetworkPolicyStatus type for use with apply.
func AdminNetworkPolicyStatus ¶
func AdminNetworkPolicyStatus() *AdminNetworkPolicyStatusApplyConfiguration
AdminNetworkPolicyStatusApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicyStatus type for use with apply.
func (*AdminNetworkPolicyStatusApplyConfiguration) WithConditions ¶
func (b *AdminNetworkPolicyStatusApplyConfiguration) WithConditions(values ...v1.Condition) *AdminNetworkPolicyStatusApplyConfiguration
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.
type AdminNetworkPolicySubjectApplyConfiguration ¶
type AdminNetworkPolicySubjectApplyConfiguration struct { Namespaces *v1.LabelSelector `json:"namespaces,omitempty"` Pods *NamespacedPodApplyConfiguration `json:"pods,omitempty"` }
AdminNetworkPolicySubjectApplyConfiguration represents an declarative configuration of the AdminNetworkPolicySubject type for use with apply.
func AdminNetworkPolicySubject ¶
func AdminNetworkPolicySubject() *AdminNetworkPolicySubjectApplyConfiguration
AdminNetworkPolicySubjectApplyConfiguration constructs an declarative configuration of the AdminNetworkPolicySubject type for use with apply.
func (*AdminNetworkPolicySubjectApplyConfiguration) WithNamespaces ¶
func (b *AdminNetworkPolicySubjectApplyConfiguration) WithNamespaces(value v1.LabelSelector) *AdminNetworkPolicySubjectApplyConfiguration
WithNamespaces sets the Namespaces 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 Namespaces field is set to the value of the last call.
func (*AdminNetworkPolicySubjectApplyConfiguration) WithPods ¶
func (b *AdminNetworkPolicySubjectApplyConfiguration) WithPods(value *NamespacedPodApplyConfiguration) *AdminNetworkPolicySubjectApplyConfiguration
WithPods sets the Pods 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 Pods field is set to the value of the last call.
type BaselineAdminNetworkPolicyApplyConfiguration ¶
type BaselineAdminNetworkPolicyApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *BaselineAdminNetworkPolicySpecApplyConfiguration `json:"spec,omitempty"` Status *BaselineAdminNetworkPolicyStatusApplyConfiguration `json:"status,omitempty"` }
BaselineAdminNetworkPolicyApplyConfiguration represents an declarative configuration of the BaselineAdminNetworkPolicy type for use with apply.
func BaselineAdminNetworkPolicy ¶
func BaselineAdminNetworkPolicy(name string) *BaselineAdminNetworkPolicyApplyConfiguration
BaselineAdminNetworkPolicy constructs an declarative configuration of the BaselineAdminNetworkPolicy type for use with apply.
func (*BaselineAdminNetworkPolicyApplyConfiguration) WithAPIVersion ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithAPIVersion(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithAnnotations ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithAnnotations(entries map[string]string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithCreationTimestamp ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithFinalizers ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithFinalizers(values ...string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithGenerateName ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithGenerateName(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithGeneration ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithGeneration(value int64) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithKind ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithKind(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithLabels ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithLabels(entries map[string]string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithName ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithNamespace ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithNamespace(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithOwnerReferences ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithResourceVersion ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithResourceVersion(value string) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithSpec ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithSpec(value *BaselineAdminNetworkPolicySpecApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithStatus ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithStatus(value *BaselineAdminNetworkPolicyStatusApplyConfiguration) *BaselineAdminNetworkPolicyApplyConfiguration
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 (*BaselineAdminNetworkPolicyApplyConfiguration) WithUID ¶
func (b *BaselineAdminNetworkPolicyApplyConfiguration) WithUID(value types.UID) *BaselineAdminNetworkPolicyApplyConfiguration
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 BaselineAdminNetworkPolicyEgressRuleApplyConfiguration ¶
type BaselineAdminNetworkPolicyEgressRuleApplyConfiguration struct { Name *string `json:"name,omitempty"` Action *v1alpha1.BaselineAdminNetworkPolicyRuleAction `json:"action,omitempty"` To []AdminNetworkPolicyEgressPeerApplyConfiguration `json:"to,omitempty"` Ports *[]AdminNetworkPolicyPortApplyConfiguration `json:"ports,omitempty"` }
BaselineAdminNetworkPolicyEgressRuleApplyConfiguration represents an declarative configuration of the BaselineAdminNetworkPolicyEgressRule type for use with apply.
func BaselineAdminNetworkPolicyEgressRule ¶
func BaselineAdminNetworkPolicyEgressRule() *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
BaselineAdminNetworkPolicyEgressRuleApplyConfiguration constructs an declarative configuration of the BaselineAdminNetworkPolicyEgressRule type for use with apply.
func (*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithAction ¶
func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithAction(value v1alpha1.BaselineAdminNetworkPolicyRuleAction) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
WithAction sets the Action 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 Action field is set to the value of the last call.
func (*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithName ¶
func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
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 (*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts ¶
func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
WithPorts adds the given value to the Ports 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 Ports field.
func (*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithTo ¶
func (b *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) WithTo(values ...*AdminNetworkPolicyEgressPeerApplyConfiguration) *BaselineAdminNetworkPolicyEgressRuleApplyConfiguration
WithTo adds the given value to the To 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 To field.
type BaselineAdminNetworkPolicyIngressRuleApplyConfiguration ¶
type BaselineAdminNetworkPolicyIngressRuleApplyConfiguration struct { Name *string `json:"name,omitempty"` Action *v1alpha1.BaselineAdminNetworkPolicyRuleAction `json:"action,omitempty"` From []AdminNetworkPolicyIngressPeerApplyConfiguration `json:"from,omitempty"` Ports *[]AdminNetworkPolicyPortApplyConfiguration `json:"ports,omitempty"` }
BaselineAdminNetworkPolicyIngressRuleApplyConfiguration represents an declarative configuration of the BaselineAdminNetworkPolicyIngressRule type for use with apply.
func BaselineAdminNetworkPolicyIngressRule ¶
func BaselineAdminNetworkPolicyIngressRule() *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
BaselineAdminNetworkPolicyIngressRuleApplyConfiguration constructs an declarative configuration of the BaselineAdminNetworkPolicyIngressRule type for use with apply.
func (*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithAction ¶
func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithAction(value v1alpha1.BaselineAdminNetworkPolicyRuleAction) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
WithAction sets the Action 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 Action field is set to the value of the last call.
func (*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom ¶
func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithFrom(values ...*AdminNetworkPolicyIngressPeerApplyConfiguration) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
WithFrom adds the given value to the From 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 From field.
func (*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithName ¶
func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithName(value string) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
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 (*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts ¶
func (b *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) WithPorts(values ...*AdminNetworkPolicyPortApplyConfiguration) *BaselineAdminNetworkPolicyIngressRuleApplyConfiguration
WithPorts adds the given value to the Ports 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 Ports field.
type BaselineAdminNetworkPolicySpecApplyConfiguration ¶
type BaselineAdminNetworkPolicySpecApplyConfiguration struct { Subject *AdminNetworkPolicySubjectApplyConfiguration `json:"subject,omitempty"` Ingress []BaselineAdminNetworkPolicyIngressRuleApplyConfiguration `json:"ingress,omitempty"` Egress []BaselineAdminNetworkPolicyEgressRuleApplyConfiguration `json:"egress,omitempty"` }
BaselineAdminNetworkPolicySpecApplyConfiguration represents an declarative configuration of the BaselineAdminNetworkPolicySpec type for use with apply.
func BaselineAdminNetworkPolicySpec ¶
func BaselineAdminNetworkPolicySpec() *BaselineAdminNetworkPolicySpecApplyConfiguration
BaselineAdminNetworkPolicySpecApplyConfiguration constructs an declarative configuration of the BaselineAdminNetworkPolicySpec type for use with apply.
func (*BaselineAdminNetworkPolicySpecApplyConfiguration) WithEgress ¶
func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithEgress(values ...*BaselineAdminNetworkPolicyEgressRuleApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
WithEgress adds the given value to the Egress 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 Egress field.
func (*BaselineAdminNetworkPolicySpecApplyConfiguration) WithIngress ¶
func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithIngress(values ...*BaselineAdminNetworkPolicyIngressRuleApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
WithIngress adds the given value to the Ingress 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 Ingress field.
func (*BaselineAdminNetworkPolicySpecApplyConfiguration) WithSubject ¶
func (b *BaselineAdminNetworkPolicySpecApplyConfiguration) WithSubject(value *AdminNetworkPolicySubjectApplyConfiguration) *BaselineAdminNetworkPolicySpecApplyConfiguration
WithSubject sets the Subject 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 Subject field is set to the value of the last call.
type BaselineAdminNetworkPolicyStatusApplyConfiguration ¶
type BaselineAdminNetworkPolicyStatusApplyConfiguration struct {
Conditions []v1.Condition `json:"conditions,omitempty"`
}
BaselineAdminNetworkPolicyStatusApplyConfiguration represents an declarative configuration of the BaselineAdminNetworkPolicyStatus type for use with apply.
func BaselineAdminNetworkPolicyStatus ¶
func BaselineAdminNetworkPolicyStatus() *BaselineAdminNetworkPolicyStatusApplyConfiguration
BaselineAdminNetworkPolicyStatusApplyConfiguration constructs an declarative configuration of the BaselineAdminNetworkPolicyStatus type for use with apply.
func (*BaselineAdminNetworkPolicyStatusApplyConfiguration) WithConditions ¶
func (b *BaselineAdminNetworkPolicyStatusApplyConfiguration) WithConditions(values ...v1.Condition) *BaselineAdminNetworkPolicyStatusApplyConfiguration
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.
type NamespacedPeerApplyConfiguration ¶
type NamespacedPeerApplyConfiguration struct { NamespaceSelector *v1.LabelSelector `json:"namespaceSelector,omitempty"` SameLabels []string `json:"sameLabels,omitempty"` NotSameLabels []string `json:"notSameLabels,omitempty"` }
NamespacedPeerApplyConfiguration represents an declarative configuration of the NamespacedPeer type for use with apply.
func NamespacedPeer ¶
func NamespacedPeer() *NamespacedPeerApplyConfiguration
NamespacedPeerApplyConfiguration constructs an declarative configuration of the NamespacedPeer type for use with apply.
func (*NamespacedPeerApplyConfiguration) WithNamespaceSelector ¶
func (b *NamespacedPeerApplyConfiguration) WithNamespaceSelector(value v1.LabelSelector) *NamespacedPeerApplyConfiguration
WithNamespaceSelector sets the NamespaceSelector 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 NamespaceSelector field is set to the value of the last call.
func (*NamespacedPeerApplyConfiguration) WithNotSameLabels ¶
func (b *NamespacedPeerApplyConfiguration) WithNotSameLabels(values ...string) *NamespacedPeerApplyConfiguration
WithNotSameLabels adds the given value to the NotSameLabels 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 NotSameLabels field.
func (*NamespacedPeerApplyConfiguration) WithSameLabels ¶
func (b *NamespacedPeerApplyConfiguration) WithSameLabels(values ...string) *NamespacedPeerApplyConfiguration
WithSameLabels adds the given value to the SameLabels 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 SameLabels field.
type NamespacedPodApplyConfiguration ¶
type NamespacedPodApplyConfiguration struct { NamespaceSelector *v1.LabelSelector `json:"namespaceSelector,omitempty"` PodSelector *v1.LabelSelector `json:"podSelector,omitempty"` }
NamespacedPodApplyConfiguration represents an declarative configuration of the NamespacedPod type for use with apply.
func NamespacedPod ¶
func NamespacedPod() *NamespacedPodApplyConfiguration
NamespacedPodApplyConfiguration constructs an declarative configuration of the NamespacedPod type for use with apply.
func (*NamespacedPodApplyConfiguration) WithNamespaceSelector ¶
func (b *NamespacedPodApplyConfiguration) WithNamespaceSelector(value v1.LabelSelector) *NamespacedPodApplyConfiguration
WithNamespaceSelector sets the NamespaceSelector 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 NamespaceSelector field is set to the value of the last call.
func (*NamespacedPodApplyConfiguration) WithPodSelector ¶
func (b *NamespacedPodApplyConfiguration) WithPodSelector(value v1.LabelSelector) *NamespacedPodApplyConfiguration
WithPodSelector sets the PodSelector 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 PodSelector field is set to the value of the last call.
type NamespacedPodPeerApplyConfiguration ¶
type NamespacedPodPeerApplyConfiguration struct { Namespaces *NamespacedPeerApplyConfiguration `json:"namespaces,omitempty"` PodSelector *v1.LabelSelector `json:"podSelector,omitempty"` }
NamespacedPodPeerApplyConfiguration represents an declarative configuration of the NamespacedPodPeer type for use with apply.
func NamespacedPodPeer ¶
func NamespacedPodPeer() *NamespacedPodPeerApplyConfiguration
NamespacedPodPeerApplyConfiguration constructs an declarative configuration of the NamespacedPodPeer type for use with apply.
func (*NamespacedPodPeerApplyConfiguration) WithNamespaces ¶
func (b *NamespacedPodPeerApplyConfiguration) WithNamespaces(value *NamespacedPeerApplyConfiguration) *NamespacedPodPeerApplyConfiguration
WithNamespaces sets the Namespaces 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 Namespaces field is set to the value of the last call.
func (*NamespacedPodPeerApplyConfiguration) WithPodSelector ¶
func (b *NamespacedPodPeerApplyConfiguration) WithPodSelector(value v1.LabelSelector) *NamespacedPodPeerApplyConfiguration
WithPodSelector sets the PodSelector 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 PodSelector field is set to the value of the last call.
type NamespacedPodSubjectApplyConfiguration ¶
type NamespacedPodSubjectApplyConfiguration struct { NamespaceSelector *v1.LabelSelector `json:"namespaceSelector,omitempty"` PodSelector *v1.LabelSelector `json:"podSelector,omitempty"` }
NamespacedPodSubjectApplyConfiguration represents an declarative configuration of the NamespacedPodSubject type for use with apply.
func NamespacedPodSubject ¶
func NamespacedPodSubject() *NamespacedPodSubjectApplyConfiguration
NamespacedPodSubjectApplyConfiguration constructs an declarative configuration of the NamespacedPodSubject type for use with apply.
func (*NamespacedPodSubjectApplyConfiguration) WithNamespaceSelector ¶
func (b *NamespacedPodSubjectApplyConfiguration) WithNamespaceSelector(value v1.LabelSelector) *NamespacedPodSubjectApplyConfiguration
WithNamespaceSelector sets the NamespaceSelector 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 NamespaceSelector field is set to the value of the last call.
func (*NamespacedPodSubjectApplyConfiguration) WithPodSelector ¶
func (b *NamespacedPodSubjectApplyConfiguration) WithPodSelector(value v1.LabelSelector) *NamespacedPodSubjectApplyConfiguration
WithPodSelector sets the PodSelector 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 PodSelector field is set to the value of the last call.
type PortApplyConfiguration ¶
type PortApplyConfiguration struct { Protocol *v1.Protocol `json:"protocol,omitempty"` Port *int32 `json:"port,omitempty"` }
PortApplyConfiguration represents an declarative configuration of the Port type for use with apply.
func Port ¶
func Port() *PortApplyConfiguration
PortApplyConfiguration constructs an declarative configuration of the Port type for use with apply.
func (*PortApplyConfiguration) WithPort ¶
func (b *PortApplyConfiguration) WithPort(value int32) *PortApplyConfiguration
WithPort sets the Port 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 Port field is set to the value of the last call.
func (*PortApplyConfiguration) WithProtocol ¶
func (b *PortApplyConfiguration) WithProtocol(value v1.Protocol) *PortApplyConfiguration
WithProtocol sets the Protocol 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 Protocol field is set to the value of the last call.
type PortRangeApplyConfiguration ¶
type PortRangeApplyConfiguration struct { Protocol *v1.Protocol `json:"protocol,omitempty"` Start *int32 `json:"start,omitempty"` End *int32 `json:"end,omitempty"` }
PortRangeApplyConfiguration represents an declarative configuration of the PortRange type for use with apply.
func PortRange ¶
func PortRange() *PortRangeApplyConfiguration
PortRangeApplyConfiguration constructs an declarative configuration of the PortRange type for use with apply.
func (*PortRangeApplyConfiguration) WithEnd ¶
func (b *PortRangeApplyConfiguration) WithEnd(value int32) *PortRangeApplyConfiguration
WithEnd sets the End 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 End field is set to the value of the last call.
func (*PortRangeApplyConfiguration) WithProtocol ¶
func (b *PortRangeApplyConfiguration) WithProtocol(value v1.Protocol) *PortRangeApplyConfiguration
WithProtocol sets the Protocol 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 Protocol field is set to the value of the last call.
func (*PortRangeApplyConfiguration) WithStart ¶
func (b *PortRangeApplyConfiguration) WithStart(value int32) *PortRangeApplyConfiguration
WithStart sets the Start 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 Start field is set to the value of the last call.
Source Files ¶
- adminnetworkpolicy.go
- adminnetworkpolicyegresspeer.go
- adminnetworkpolicyegressrule.go
- adminnetworkpolicyingresspeer.go
- adminnetworkpolicyingressrule.go
- adminnetworkpolicyport.go
- adminnetworkpolicyspec.go
- adminnetworkpolicystatus.go
- adminnetworkpolicysubject.go
- baselineadminnetworkpolicy.go
- baselineadminnetworkpolicyegressrule.go
- baselineadminnetworkpolicyingressrule.go
- baselineadminnetworkpolicyspec.go
- baselineadminnetworkpolicystatus.go
- namespacedpeer.go
- namespacedpod.go
- namespacedpodpeer.go
- namespacedpodsubject.go
- port.go
- portrange.go