Documentation ¶
Index ¶
- type EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithAddresses(values ...string) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithConditions(value *EndpointConditionsApplyConfiguration) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithDeprecatedTopology(entries map[string]string) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithHints(value *EndpointHintsApplyConfiguration) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithHostname(value string) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithNodeName(value string) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithTargetRef(value *corev1.ObjectReferenceApplyConfiguration) *EndpointApplyConfiguration
- func (b *EndpointApplyConfiguration) WithZone(value string) *EndpointApplyConfiguration
- type EndpointConditionsApplyConfiguration
- func (b *EndpointConditionsApplyConfiguration) WithReady(value bool) *EndpointConditionsApplyConfiguration
- func (b *EndpointConditionsApplyConfiguration) WithServing(value bool) *EndpointConditionsApplyConfiguration
- func (b *EndpointConditionsApplyConfiguration) WithTerminating(value bool) *EndpointConditionsApplyConfiguration
- type EndpointHintsApplyConfiguration
- type EndpointPortApplyConfiguration
- func (b *EndpointPortApplyConfiguration) WithAppProtocol(value string) *EndpointPortApplyConfiguration
- func (b *EndpointPortApplyConfiguration) WithName(value string) *EndpointPortApplyConfiguration
- func (b *EndpointPortApplyConfiguration) WithPort(value int32) *EndpointPortApplyConfiguration
- func (b *EndpointPortApplyConfiguration) WithProtocol(value v1.Protocol) *EndpointPortApplyConfiguration
- type EndpointSliceApplyConfiguration
- func EndpointSlice(name, namespace string) *EndpointSliceApplyConfiguration
- func ExtractEndpointSlice(endpointSlice *discoveryv1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)
- func ExtractEndpointSliceStatus(endpointSlice *discoveryv1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)
- func (b *EndpointSliceApplyConfiguration) GetName() *string
- func (b *EndpointSliceApplyConfiguration) WithAPIVersion(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithAddressType(value discoveryv1.AddressType) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithAnnotations(entries map[string]string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithEndpoints(values ...*EndpointApplyConfiguration) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithFinalizers(values ...string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithGenerateName(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithGeneration(value int64) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithKind(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithLabels(entries map[string]string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithName(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithNamespace(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithPorts(values ...*EndpointPortApplyConfiguration) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithResourceVersion(value string) *EndpointSliceApplyConfiguration
- func (b *EndpointSliceApplyConfiguration) WithUID(value types.UID) *EndpointSliceApplyConfiguration
- type ForZoneApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointApplyConfiguration ¶
type EndpointApplyConfiguration struct { Addresses []string `json:"addresses,omitempty"` Conditions *EndpointConditionsApplyConfiguration `json:"conditions,omitempty"` Hostname *string `json:"hostname,omitempty"` TargetRef *corev1.ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"` DeprecatedTopology map[string]string `json:"deprecatedTopology,omitempty"` NodeName *string `json:"nodeName,omitempty"` Zone *string `json:"zone,omitempty"` Hints *EndpointHintsApplyConfiguration `json:"hints,omitempty"` }
EndpointApplyConfiguration represents a declarative configuration of the Endpoint type for use with apply.
func Endpoint ¶
func Endpoint() *EndpointApplyConfiguration
EndpointApplyConfiguration constructs a declarative configuration of the Endpoint type for use with apply.
func (*EndpointApplyConfiguration) WithAddresses ¶
func (b *EndpointApplyConfiguration) WithAddresses(values ...string) *EndpointApplyConfiguration
WithAddresses adds the given value to the Addresses 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 Addresses field.
func (*EndpointApplyConfiguration) WithConditions ¶
func (b *EndpointApplyConfiguration) WithConditions(value *EndpointConditionsApplyConfiguration) *EndpointApplyConfiguration
WithConditions sets the Conditions 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 Conditions field is set to the value of the last call.
func (*EndpointApplyConfiguration) WithDeprecatedTopology ¶
func (b *EndpointApplyConfiguration) WithDeprecatedTopology(entries map[string]string) *EndpointApplyConfiguration
WithDeprecatedTopology puts the entries into the DeprecatedTopology 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 DeprecatedTopology field, overwriting an existing map entries in DeprecatedTopology field with the same key.
func (*EndpointApplyConfiguration) WithHints ¶
func (b *EndpointApplyConfiguration) WithHints(value *EndpointHintsApplyConfiguration) *EndpointApplyConfiguration
WithHints sets the Hints 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 Hints field is set to the value of the last call.
func (*EndpointApplyConfiguration) WithHostname ¶
func (b *EndpointApplyConfiguration) WithHostname(value string) *EndpointApplyConfiguration
WithHostname sets the Hostname 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 Hostname field is set to the value of the last call.
func (*EndpointApplyConfiguration) WithNodeName ¶
func (b *EndpointApplyConfiguration) WithNodeName(value string) *EndpointApplyConfiguration
WithNodeName sets the NodeName 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 NodeName field is set to the value of the last call.
func (*EndpointApplyConfiguration) WithTargetRef ¶
func (b *EndpointApplyConfiguration) WithTargetRef(value *corev1.ObjectReferenceApplyConfiguration) *EndpointApplyConfiguration
WithTargetRef sets the TargetRef 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 TargetRef field is set to the value of the last call.
func (*EndpointApplyConfiguration) WithZone ¶
func (b *EndpointApplyConfiguration) WithZone(value string) *EndpointApplyConfiguration
WithZone sets the Zone 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 Zone field is set to the value of the last call.
type EndpointConditionsApplyConfiguration ¶
type EndpointConditionsApplyConfiguration struct { Ready *bool `json:"ready,omitempty"` Serving *bool `json:"serving,omitempty"` Terminating *bool `json:"terminating,omitempty"` }
EndpointConditionsApplyConfiguration represents a declarative configuration of the EndpointConditions type for use with apply.
func EndpointConditions ¶
func EndpointConditions() *EndpointConditionsApplyConfiguration
EndpointConditionsApplyConfiguration constructs a declarative configuration of the EndpointConditions type for use with apply.
func (*EndpointConditionsApplyConfiguration) WithReady ¶
func (b *EndpointConditionsApplyConfiguration) WithReady(value bool) *EndpointConditionsApplyConfiguration
WithReady sets the Ready 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 Ready field is set to the value of the last call.
func (*EndpointConditionsApplyConfiguration) WithServing ¶
func (b *EndpointConditionsApplyConfiguration) WithServing(value bool) *EndpointConditionsApplyConfiguration
WithServing sets the Serving 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 Serving field is set to the value of the last call.
func (*EndpointConditionsApplyConfiguration) WithTerminating ¶
func (b *EndpointConditionsApplyConfiguration) WithTerminating(value bool) *EndpointConditionsApplyConfiguration
WithTerminating sets the Terminating 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 Terminating field is set to the value of the last call.
type EndpointHintsApplyConfiguration ¶
type EndpointHintsApplyConfiguration struct {
ForZones []ForZoneApplyConfiguration `json:"forZones,omitempty"`
}
EndpointHintsApplyConfiguration represents a declarative configuration of the EndpointHints type for use with apply.
func EndpointHints ¶
func EndpointHints() *EndpointHintsApplyConfiguration
EndpointHintsApplyConfiguration constructs a declarative configuration of the EndpointHints type for use with apply.
func (*EndpointHintsApplyConfiguration) WithForZones ¶
func (b *EndpointHintsApplyConfiguration) WithForZones(values ...*ForZoneApplyConfiguration) *EndpointHintsApplyConfiguration
WithForZones adds the given value to the ForZones 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 ForZones field.
type EndpointPortApplyConfiguration ¶
type EndpointPortApplyConfiguration struct { Name *string `json:"name,omitempty"` Protocol *v1.Protocol `json:"protocol,omitempty"` Port *int32 `json:"port,omitempty"` AppProtocol *string `json:"appProtocol,omitempty"` }
EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use with apply.
func EndpointPort ¶
func EndpointPort() *EndpointPortApplyConfiguration
EndpointPortApplyConfiguration constructs a declarative configuration of the EndpointPort type for use with apply.
func (*EndpointPortApplyConfiguration) WithAppProtocol ¶
func (b *EndpointPortApplyConfiguration) WithAppProtocol(value string) *EndpointPortApplyConfiguration
WithAppProtocol sets the AppProtocol 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 AppProtocol field is set to the value of the last call.
func (*EndpointPortApplyConfiguration) WithName ¶
func (b *EndpointPortApplyConfiguration) WithName(value string) *EndpointPortApplyConfiguration
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 (*EndpointPortApplyConfiguration) WithPort ¶
func (b *EndpointPortApplyConfiguration) WithPort(value int32) *EndpointPortApplyConfiguration
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 (*EndpointPortApplyConfiguration) WithProtocol ¶
func (b *EndpointPortApplyConfiguration) WithProtocol(value v1.Protocol) *EndpointPortApplyConfiguration
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 EndpointSliceApplyConfiguration ¶
type EndpointSliceApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` AddressType *discoveryv1.AddressType `json:"addressType,omitempty"` Endpoints []EndpointApplyConfiguration `json:"endpoints,omitempty"` Ports []EndpointPortApplyConfiguration `json:"ports,omitempty"` }
EndpointSliceApplyConfiguration represents a declarative configuration of the EndpointSlice type for use with apply.
func EndpointSlice ¶
func EndpointSlice(name, namespace string) *EndpointSliceApplyConfiguration
EndpointSlice constructs a declarative configuration of the EndpointSlice type for use with apply.
func ExtractEndpointSlice ¶
func ExtractEndpointSlice(endpointSlice *discoveryv1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)
ExtractEndpointSlice extracts the applied configuration owned by fieldManager from endpointSlice. If no managedFields are found in endpointSlice for fieldManager, a EndpointSliceApplyConfiguration 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. endpointSlice must be a unmodified EndpointSlice API object that was retrieved from the Kubernetes API. ExtractEndpointSlice 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 ExtractEndpointSliceStatus ¶ added in v0.22.0
func ExtractEndpointSliceStatus(endpointSlice *discoveryv1.EndpointSlice, fieldManager string) (*EndpointSliceApplyConfiguration, error)
ExtractEndpointSliceStatus is the same as ExtractEndpointSlice except that it extracts the status subresource applied configuration. Experimental!
func (*EndpointSliceApplyConfiguration) GetName ¶ added in v0.31.0
func (b *EndpointSliceApplyConfiguration) GetName() *string
GetName retrieves the value of the Name field in the declarative configuration.
func (*EndpointSliceApplyConfiguration) WithAPIVersion ¶
func (b *EndpointSliceApplyConfiguration) WithAPIVersion(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithAddressType ¶
func (b *EndpointSliceApplyConfiguration) WithAddressType(value discoveryv1.AddressType) *EndpointSliceApplyConfiguration
WithAddressType sets the AddressType 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 AddressType field is set to the value of the last call.
func (*EndpointSliceApplyConfiguration) WithAnnotations ¶
func (b *EndpointSliceApplyConfiguration) WithAnnotations(entries map[string]string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithCreationTimestamp ¶
func (b *EndpointSliceApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *EndpointSliceApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithDeletionTimestamp ¶
func (b *EndpointSliceApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithEndpoints ¶
func (b *EndpointSliceApplyConfiguration) WithEndpoints(values ...*EndpointApplyConfiguration) *EndpointSliceApplyConfiguration
WithEndpoints adds the given value to the Endpoints 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 Endpoints field.
func (*EndpointSliceApplyConfiguration) WithFinalizers ¶
func (b *EndpointSliceApplyConfiguration) WithFinalizers(values ...string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithGenerateName ¶
func (b *EndpointSliceApplyConfiguration) WithGenerateName(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithGeneration ¶
func (b *EndpointSliceApplyConfiguration) WithGeneration(value int64) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithKind ¶
func (b *EndpointSliceApplyConfiguration) WithKind(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithLabels ¶
func (b *EndpointSliceApplyConfiguration) WithLabels(entries map[string]string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithName ¶
func (b *EndpointSliceApplyConfiguration) WithName(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithNamespace ¶
func (b *EndpointSliceApplyConfiguration) WithNamespace(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithOwnerReferences ¶
func (b *EndpointSliceApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithPorts ¶
func (b *EndpointSliceApplyConfiguration) WithPorts(values ...*EndpointPortApplyConfiguration) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithResourceVersion ¶
func (b *EndpointSliceApplyConfiguration) WithResourceVersion(value string) *EndpointSliceApplyConfiguration
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 (*EndpointSliceApplyConfiguration) WithUID ¶
func (b *EndpointSliceApplyConfiguration) WithUID(value types.UID) *EndpointSliceApplyConfiguration
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 ForZoneApplyConfiguration ¶
type ForZoneApplyConfiguration struct {
Name *string `json:"name,omitempty"`
}
ForZoneApplyConfiguration represents a declarative configuration of the ForZone type for use with apply.
func ForZone ¶
func ForZone() *ForZoneApplyConfiguration
ForZoneApplyConfiguration constructs a declarative configuration of the ForZone type for use with apply.
func (*ForZoneApplyConfiguration) WithName ¶
func (b *ForZoneApplyConfiguration) WithName(value string) *ForZoneApplyConfiguration
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.