Documentation ¶
Index ¶
- type IPApplyConfiguration
- func (b *IPApplyConfiguration) WithAPIVersion(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithAnnotations(entries map[string]string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithFinalizers(values ...string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithGenerateName(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithGeneration(value int64) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithKind(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithLabels(entries map[string]string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithName(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithNamespace(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithResourceVersion(value string) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithSpec(value *IPSpecApplyConfiguration) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithStatus(value *IPStatusApplyConfiguration) *IPApplyConfiguration
- func (b *IPApplyConfiguration) WithUID(value types.UID) *IPApplyConfiguration
- type IPSpecApplyConfiguration
- func (b *IPSpecApplyConfiguration) WithConsumer(value *ResourceReferenceApplyConfiguration) *IPSpecApplyConfiguration
- func (b *IPSpecApplyConfiguration) WithIP(value ipamv1alpha1.IPAddr) *IPSpecApplyConfiguration
- func (b *IPSpecApplyConfiguration) WithSubnet(value v1.LocalObjectReference) *IPSpecApplyConfiguration
- type IPStatusApplyConfiguration
- type NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithFinalizers(values ...string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithSpec(value *NetworkSpecApplyConfiguration) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithStatus(value *NetworkStatusApplyConfiguration) *NetworkApplyConfiguration
- func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfiguration
- type NetworkCounterApplyConfiguration
- func ExtractNetworkCounter(networkCounter *ipamv1alpha1.NetworkCounter, fieldManager string) (*NetworkCounterApplyConfiguration, error)
- func ExtractNetworkCounterStatus(networkCounter *ipamv1alpha1.NetworkCounter, fieldManager string) (*NetworkCounterApplyConfiguration, error)
- func NetworkCounter(name, namespace string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithAPIVersion(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithFinalizers(values ...string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithGenerateName(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithGeneration(value int64) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithKind(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithLabels(entries map[string]string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithName(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithNamespace(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithResourceVersion(value string) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithSpec(value *NetworkCounterSpecApplyConfiguration) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithStatus(value ipamv1alpha1.NetworkCounterStatus) *NetworkCounterApplyConfiguration
- func (b *NetworkCounterApplyConfiguration) WithUID(value types.UID) *NetworkCounterApplyConfiguration
- type NetworkCounterSpecApplyConfiguration
- type NetworkIDIntervalApplyConfiguration
- func (b *NetworkIDIntervalApplyConfiguration) WithBegin(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
- func (b *NetworkIDIntervalApplyConfiguration) WithEnd(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
- func (b *NetworkIDIntervalApplyConfiguration) WithExact(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
- type NetworkSpecApplyConfiguration
- func (b *NetworkSpecApplyConfiguration) WithDescription(value string) *NetworkSpecApplyConfiguration
- func (b *NetworkSpecApplyConfiguration) WithID(value v1alpha1.NetworkID) *NetworkSpecApplyConfiguration
- func (b *NetworkSpecApplyConfiguration) WithType(value v1alpha1.NetworkType) *NetworkSpecApplyConfiguration
- type NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithIPv4Capacity(value resource.Quantity) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithIPv4Ranges(values ...v1alpha1.CIDR) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithIPv6Capacity(value resource.Quantity) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithIPv6Ranges(values ...v1alpha1.CIDR) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithMessage(value string) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithReserved(value v1alpha1.NetworkID) *NetworkStatusApplyConfiguration
- func (b *NetworkStatusApplyConfiguration) WithState(value v1alpha1.NetworkState) *NetworkStatusApplyConfiguration
- type RegionApplyConfiguration
- type ResourceReferenceApplyConfiguration
- func (b *ResourceReferenceApplyConfiguration) WithAPIVersion(value string) *ResourceReferenceApplyConfiguration
- func (b *ResourceReferenceApplyConfiguration) WithKind(value string) *ResourceReferenceApplyConfiguration
- func (b *ResourceReferenceApplyConfiguration) WithName(value string) *ResourceReferenceApplyConfiguration
- type SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithAPIVersion(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithAnnotations(entries map[string]string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithFinalizers(values ...string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithGenerateName(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithGeneration(value int64) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithKind(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithLabels(entries map[string]string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithName(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithNamespace(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithResourceVersion(value string) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithSpec(value *SubnetSpecApplyConfiguration) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithStatus(value *SubnetStatusApplyConfiguration) *SubnetApplyConfiguration
- func (b *SubnetApplyConfiguration) WithUID(value types.UID) *SubnetApplyConfiguration
- type SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithCIDR(value v1alpha1.CIDR) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithCapacity(value resource.Quantity) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithConsumer(value *ResourceReferenceApplyConfiguration) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithNetwork(value v1.LocalObjectReference) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithParentSubnet(value v1.LocalObjectReference) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithPrefixBits(value byte) *SubnetSpecApplyConfiguration
- func (b *SubnetSpecApplyConfiguration) WithRegions(values ...*RegionApplyConfiguration) *SubnetSpecApplyConfiguration
- type SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithCapacity(value resource.Quantity) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithCapacityLeft(value resource.Quantity) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithLocality(value v1alpha1.SubnetLocalityType) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithMessage(value string) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithPrefixBits(value byte) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithReserved(value v1alpha1.CIDR) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithState(value v1alpha1.SubnetState) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithType(value v1alpha1.SubnetAddressType) *SubnetStatusApplyConfiguration
- func (b *SubnetStatusApplyConfiguration) WithVacant(values ...v1alpha1.CIDR) *SubnetStatusApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPApplyConfiguration ¶
type IPApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *IPSpecApplyConfiguration `json:"spec,omitempty"` Status *IPStatusApplyConfiguration `json:"status,omitempty"` }
IPApplyConfiguration represents an declarative configuration of the IP type for use with apply.
func ExtractIP ¶
func ExtractIP(iP *ipamv1alpha1.IP, fieldManager string) (*IPApplyConfiguration, error)
ExtractIP extracts the applied configuration owned by fieldManager from iP. If no managedFields are found in iP for fieldManager, a IPApplyConfiguration 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. iP must be a unmodified IP API object that was retrieved from the Kubernetes API. ExtractIP 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 ExtractIPStatus ¶
func ExtractIPStatus(iP *ipamv1alpha1.IP, fieldManager string) (*IPApplyConfiguration, error)
ExtractIPStatus is the same as ExtractIP except that it extracts the status subresource applied configuration. Experimental!
func IP ¶
func IP(name, namespace string) *IPApplyConfiguration
IP constructs an declarative configuration of the IP type for use with apply.
func (*IPApplyConfiguration) WithAPIVersion ¶
func (b *IPApplyConfiguration) WithAPIVersion(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithAnnotations ¶
func (b *IPApplyConfiguration) WithAnnotations(entries map[string]string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithCreationTimestamp ¶
func (b *IPApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *IPApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithDeletionTimestamp ¶
func (b *IPApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithFinalizers ¶
func (b *IPApplyConfiguration) WithFinalizers(values ...string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithGenerateName ¶
func (b *IPApplyConfiguration) WithGenerateName(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithGeneration ¶
func (b *IPApplyConfiguration) WithGeneration(value int64) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithKind ¶
func (b *IPApplyConfiguration) WithKind(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithLabels ¶
func (b *IPApplyConfiguration) WithLabels(entries map[string]string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithName ¶
func (b *IPApplyConfiguration) WithName(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithNamespace ¶
func (b *IPApplyConfiguration) WithNamespace(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithOwnerReferences ¶
func (b *IPApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithResourceVersion ¶
func (b *IPApplyConfiguration) WithResourceVersion(value string) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithSpec ¶
func (b *IPApplyConfiguration) WithSpec(value *IPSpecApplyConfiguration) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithStatus ¶
func (b *IPApplyConfiguration) WithStatus(value *IPStatusApplyConfiguration) *IPApplyConfiguration
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 (*IPApplyConfiguration) WithUID ¶
func (b *IPApplyConfiguration) WithUID(value types.UID) *IPApplyConfiguration
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 IPSpecApplyConfiguration ¶
type IPSpecApplyConfiguration struct { Subnet *v1.LocalObjectReference `json:"subnet,omitempty"` Consumer *ResourceReferenceApplyConfiguration `json:"consumer,omitempty"` IP *ipamv1alpha1.IPAddr `json:"ip,omitempty"` }
IPSpecApplyConfiguration represents an declarative configuration of the IPSpec type for use with apply.
func IPSpec ¶
func IPSpec() *IPSpecApplyConfiguration
IPSpecApplyConfiguration constructs an declarative configuration of the IPSpec type for use with apply.
func (*IPSpecApplyConfiguration) WithConsumer ¶
func (b *IPSpecApplyConfiguration) WithConsumer(value *ResourceReferenceApplyConfiguration) *IPSpecApplyConfiguration
WithConsumer sets the Consumer 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 Consumer field is set to the value of the last call.
func (*IPSpecApplyConfiguration) WithIP ¶
func (b *IPSpecApplyConfiguration) WithIP(value ipamv1alpha1.IPAddr) *IPSpecApplyConfiguration
WithIP sets the IP 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 IP field is set to the value of the last call.
func (*IPSpecApplyConfiguration) WithSubnet ¶
func (b *IPSpecApplyConfiguration) WithSubnet(value v1.LocalObjectReference) *IPSpecApplyConfiguration
WithSubnet sets the Subnet 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 Subnet field is set to the value of the last call.
type IPStatusApplyConfiguration ¶
type IPStatusApplyConfiguration struct { State *v1alpha1.IPState `json:"state,omitempty"` Reserved *v1alpha1.IPAddr `json:"reserved,omitempty"` Message *string `json:"message,omitempty"` }
IPStatusApplyConfiguration represents an declarative configuration of the IPStatus type for use with apply.
func IPStatus ¶
func IPStatus() *IPStatusApplyConfiguration
IPStatusApplyConfiguration constructs an declarative configuration of the IPStatus type for use with apply.
func (*IPStatusApplyConfiguration) WithMessage ¶
func (b *IPStatusApplyConfiguration) WithMessage(value string) *IPStatusApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*IPStatusApplyConfiguration) WithReserved ¶
func (b *IPStatusApplyConfiguration) WithReserved(value v1alpha1.IPAddr) *IPStatusApplyConfiguration
WithReserved sets the Reserved 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 Reserved field is set to the value of the last call.
func (*IPStatusApplyConfiguration) WithState ¶
func (b *IPStatusApplyConfiguration) WithState(value v1alpha1.IPState) *IPStatusApplyConfiguration
WithState sets the State 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 State field is set to the value of the last call.
type NetworkApplyConfiguration ¶
type NetworkApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *NetworkSpecApplyConfiguration `json:"spec,omitempty"` Status *NetworkStatusApplyConfiguration `json:"status,omitempty"` }
NetworkApplyConfiguration represents an declarative configuration of the Network type for use with apply.
func ExtractNetwork ¶
func ExtractNetwork(network *ipamv1alpha1.Network, fieldManager string) (*NetworkApplyConfiguration, error)
ExtractNetwork extracts the applied configuration owned by fieldManager from network. If no managedFields are found in network for fieldManager, a NetworkApplyConfiguration 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. network must be a unmodified Network API object that was retrieved from the Kubernetes API. ExtractNetwork 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 ExtractNetworkStatus ¶
func ExtractNetworkStatus(network *ipamv1alpha1.Network, fieldManager string) (*NetworkApplyConfiguration, error)
ExtractNetworkStatus is the same as ExtractNetwork except that it extracts the status subresource applied configuration. Experimental!
func Network ¶
func Network(name, namespace string) *NetworkApplyConfiguration
Network constructs an declarative configuration of the Network type for use with apply.
func (*NetworkApplyConfiguration) WithAPIVersion ¶
func (b *NetworkApplyConfiguration) WithAPIVersion(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithAnnotations ¶
func (b *NetworkApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithCreationTimestamp ¶
func (b *NetworkApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *NetworkApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithDeletionTimestamp ¶
func (b *NetworkApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithFinalizers ¶
func (b *NetworkApplyConfiguration) WithFinalizers(values ...string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithGenerateName ¶
func (b *NetworkApplyConfiguration) WithGenerateName(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithGeneration ¶
func (b *NetworkApplyConfiguration) WithGeneration(value int64) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithKind ¶
func (b *NetworkApplyConfiguration) WithKind(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithLabels ¶
func (b *NetworkApplyConfiguration) WithLabels(entries map[string]string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithName ¶
func (b *NetworkApplyConfiguration) WithName(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithNamespace ¶
func (b *NetworkApplyConfiguration) WithNamespace(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithOwnerReferences ¶
func (b *NetworkApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithResourceVersion ¶
func (b *NetworkApplyConfiguration) WithResourceVersion(value string) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithSpec ¶
func (b *NetworkApplyConfiguration) WithSpec(value *NetworkSpecApplyConfiguration) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithStatus ¶
func (b *NetworkApplyConfiguration) WithStatus(value *NetworkStatusApplyConfiguration) *NetworkApplyConfiguration
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 (*NetworkApplyConfiguration) WithUID ¶
func (b *NetworkApplyConfiguration) WithUID(value types.UID) *NetworkApplyConfiguration
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 NetworkCounterApplyConfiguration ¶
type NetworkCounterApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *NetworkCounterSpecApplyConfiguration `json:"spec,omitempty"` Status *ipamv1alpha1.NetworkCounterStatus `json:"status,omitempty"` }
NetworkCounterApplyConfiguration represents an declarative configuration of the NetworkCounter type for use with apply.
func ExtractNetworkCounter ¶
func ExtractNetworkCounter(networkCounter *ipamv1alpha1.NetworkCounter, fieldManager string) (*NetworkCounterApplyConfiguration, error)
ExtractNetworkCounter extracts the applied configuration owned by fieldManager from networkCounter. If no managedFields are found in networkCounter for fieldManager, a NetworkCounterApplyConfiguration 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. networkCounter must be a unmodified NetworkCounter API object that was retrieved from the Kubernetes API. ExtractNetworkCounter 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 ExtractNetworkCounterStatus ¶
func ExtractNetworkCounterStatus(networkCounter *ipamv1alpha1.NetworkCounter, fieldManager string) (*NetworkCounterApplyConfiguration, error)
ExtractNetworkCounterStatus is the same as ExtractNetworkCounter except that it extracts the status subresource applied configuration. Experimental!
func NetworkCounter ¶
func NetworkCounter(name, namespace string) *NetworkCounterApplyConfiguration
NetworkCounter constructs an declarative configuration of the NetworkCounter type for use with apply.
func (*NetworkCounterApplyConfiguration) WithAPIVersion ¶
func (b *NetworkCounterApplyConfiguration) WithAPIVersion(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithAnnotations ¶
func (b *NetworkCounterApplyConfiguration) WithAnnotations(entries map[string]string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithCreationTimestamp ¶
func (b *NetworkCounterApplyConfiguration) WithCreationTimestamp(value metav1.Time) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *NetworkCounterApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithDeletionTimestamp ¶
func (b *NetworkCounterApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithFinalizers ¶
func (b *NetworkCounterApplyConfiguration) WithFinalizers(values ...string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithGenerateName ¶
func (b *NetworkCounterApplyConfiguration) WithGenerateName(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithGeneration ¶
func (b *NetworkCounterApplyConfiguration) WithGeneration(value int64) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithKind ¶
func (b *NetworkCounterApplyConfiguration) WithKind(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithLabels ¶
func (b *NetworkCounterApplyConfiguration) WithLabels(entries map[string]string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithName ¶
func (b *NetworkCounterApplyConfiguration) WithName(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithNamespace ¶
func (b *NetworkCounterApplyConfiguration) WithNamespace(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithOwnerReferences ¶
func (b *NetworkCounterApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithResourceVersion ¶
func (b *NetworkCounterApplyConfiguration) WithResourceVersion(value string) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithSpec ¶
func (b *NetworkCounterApplyConfiguration) WithSpec(value *NetworkCounterSpecApplyConfiguration) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithStatus ¶
func (b *NetworkCounterApplyConfiguration) WithStatus(value ipamv1alpha1.NetworkCounterStatus) *NetworkCounterApplyConfiguration
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 (*NetworkCounterApplyConfiguration) WithUID ¶
func (b *NetworkCounterApplyConfiguration) WithUID(value types.UID) *NetworkCounterApplyConfiguration
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 NetworkCounterSpecApplyConfiguration ¶
type NetworkCounterSpecApplyConfiguration struct {
Vacant []NetworkIDIntervalApplyConfiguration `json:"vacant,omitempty"`
}
NetworkCounterSpecApplyConfiguration represents an declarative configuration of the NetworkCounterSpec type for use with apply.
func NetworkCounterSpec ¶
func NetworkCounterSpec() *NetworkCounterSpecApplyConfiguration
NetworkCounterSpecApplyConfiguration constructs an declarative configuration of the NetworkCounterSpec type for use with apply.
func (*NetworkCounterSpecApplyConfiguration) WithVacant ¶
func (b *NetworkCounterSpecApplyConfiguration) WithVacant(values ...*NetworkIDIntervalApplyConfiguration) *NetworkCounterSpecApplyConfiguration
WithVacant adds the given value to the Vacant 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 Vacant field.
type NetworkIDIntervalApplyConfiguration ¶
type NetworkIDIntervalApplyConfiguration struct { Begin *v1alpha1.NetworkID `json:"begin,omitempty"` Exact *v1alpha1.NetworkID `json:"exact,omitempty"` End *v1alpha1.NetworkID `json:"end,omitempty"` }
NetworkIDIntervalApplyConfiguration represents an declarative configuration of the NetworkIDInterval type for use with apply.
func NetworkIDInterval ¶
func NetworkIDInterval() *NetworkIDIntervalApplyConfiguration
NetworkIDIntervalApplyConfiguration constructs an declarative configuration of the NetworkIDInterval type for use with apply.
func (*NetworkIDIntervalApplyConfiguration) WithBegin ¶
func (b *NetworkIDIntervalApplyConfiguration) WithBegin(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
WithBegin sets the Begin 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 Begin field is set to the value of the last call.
func (*NetworkIDIntervalApplyConfiguration) WithEnd ¶
func (b *NetworkIDIntervalApplyConfiguration) WithEnd(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
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 (*NetworkIDIntervalApplyConfiguration) WithExact ¶
func (b *NetworkIDIntervalApplyConfiguration) WithExact(value v1alpha1.NetworkID) *NetworkIDIntervalApplyConfiguration
WithExact sets the Exact 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 Exact field is set to the value of the last call.
type NetworkSpecApplyConfiguration ¶
type NetworkSpecApplyConfiguration struct { ID *v1alpha1.NetworkID `json:"id,omitempty"` Type *v1alpha1.NetworkType `json:"type,omitempty"` Description *string `json:"description,omitempty"` }
NetworkSpecApplyConfiguration represents an declarative configuration of the NetworkSpec type for use with apply.
func NetworkSpec ¶
func NetworkSpec() *NetworkSpecApplyConfiguration
NetworkSpecApplyConfiguration constructs an declarative configuration of the NetworkSpec type for use with apply.
func (*NetworkSpecApplyConfiguration) WithDescription ¶
func (b *NetworkSpecApplyConfiguration) WithDescription(value string) *NetworkSpecApplyConfiguration
WithDescription sets the Description 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 Description field is set to the value of the last call.
func (*NetworkSpecApplyConfiguration) WithID ¶
func (b *NetworkSpecApplyConfiguration) WithID(value v1alpha1.NetworkID) *NetworkSpecApplyConfiguration
WithID sets the ID 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 ID field is set to the value of the last call.
func (*NetworkSpecApplyConfiguration) WithType ¶
func (b *NetworkSpecApplyConfiguration) WithType(value v1alpha1.NetworkType) *NetworkSpecApplyConfiguration
WithType sets the Type 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 Type field is set to the value of the last call.
type NetworkStatusApplyConfiguration ¶
type NetworkStatusApplyConfiguration struct { IPv4Ranges []v1alpha1.CIDR `json:"ipv4Ranges,omitempty"` IPv6Ranges []v1alpha1.CIDR `json:"ipv6Ranges,omitempty"` Reserved *v1alpha1.NetworkID `json:"reserved,omitempty"` IPv4Capacity *resource.Quantity `json:"ipv4Capacity,omitempty"` IPv6Capacity *resource.Quantity `json:"ipv6Capacity,omitempty"` State *v1alpha1.NetworkState `json:"state,omitempty"` Message *string `json:"message,omitempty"` }
NetworkStatusApplyConfiguration represents an declarative configuration of the NetworkStatus type for use with apply.
func NetworkStatus ¶
func NetworkStatus() *NetworkStatusApplyConfiguration
NetworkStatusApplyConfiguration constructs an declarative configuration of the NetworkStatus type for use with apply.
func (*NetworkStatusApplyConfiguration) WithIPv4Capacity ¶
func (b *NetworkStatusApplyConfiguration) WithIPv4Capacity(value resource.Quantity) *NetworkStatusApplyConfiguration
WithIPv4Capacity sets the IPv4Capacity 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 IPv4Capacity field is set to the value of the last call.
func (*NetworkStatusApplyConfiguration) WithIPv4Ranges ¶
func (b *NetworkStatusApplyConfiguration) WithIPv4Ranges(values ...v1alpha1.CIDR) *NetworkStatusApplyConfiguration
WithIPv4Ranges adds the given value to the IPv4Ranges 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 IPv4Ranges field.
func (*NetworkStatusApplyConfiguration) WithIPv6Capacity ¶
func (b *NetworkStatusApplyConfiguration) WithIPv6Capacity(value resource.Quantity) *NetworkStatusApplyConfiguration
WithIPv6Capacity sets the IPv6Capacity 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 IPv6Capacity field is set to the value of the last call.
func (*NetworkStatusApplyConfiguration) WithIPv6Ranges ¶
func (b *NetworkStatusApplyConfiguration) WithIPv6Ranges(values ...v1alpha1.CIDR) *NetworkStatusApplyConfiguration
WithIPv6Ranges adds the given value to the IPv6Ranges 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 IPv6Ranges field.
func (*NetworkStatusApplyConfiguration) WithMessage ¶
func (b *NetworkStatusApplyConfiguration) WithMessage(value string) *NetworkStatusApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*NetworkStatusApplyConfiguration) WithReserved ¶
func (b *NetworkStatusApplyConfiguration) WithReserved(value v1alpha1.NetworkID) *NetworkStatusApplyConfiguration
WithReserved sets the Reserved 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 Reserved field is set to the value of the last call.
func (*NetworkStatusApplyConfiguration) WithState ¶
func (b *NetworkStatusApplyConfiguration) WithState(value v1alpha1.NetworkState) *NetworkStatusApplyConfiguration
WithState sets the State 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 State field is set to the value of the last call.
type RegionApplyConfiguration ¶
type RegionApplyConfiguration struct { Name *string `json:"name,omitempty"` AvailabilityZones []string `json:"availabilityZones,omitempty"` }
RegionApplyConfiguration represents an declarative configuration of the Region type for use with apply.
func Region ¶
func Region() *RegionApplyConfiguration
RegionApplyConfiguration constructs an declarative configuration of the Region type for use with apply.
func (*RegionApplyConfiguration) WithAvailabilityZones ¶
func (b *RegionApplyConfiguration) WithAvailabilityZones(values ...string) *RegionApplyConfiguration
WithAvailabilityZones adds the given value to the AvailabilityZones 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 AvailabilityZones field.
func (*RegionApplyConfiguration) WithName ¶
func (b *RegionApplyConfiguration) WithName(value string) *RegionApplyConfiguration
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.
type ResourceReferenceApplyConfiguration ¶
type ResourceReferenceApplyConfiguration struct { APIVersion *string `json:"apiVersion,omitempty"` Kind *string `json:"kind,omitempty"` Name *string `json:"name,omitempty"` }
ResourceReferenceApplyConfiguration represents an declarative configuration of the ResourceReference type for use with apply.
func ResourceReference ¶
func ResourceReference() *ResourceReferenceApplyConfiguration
ResourceReferenceApplyConfiguration constructs an declarative configuration of the ResourceReference type for use with apply.
func (*ResourceReferenceApplyConfiguration) WithAPIVersion ¶
func (b *ResourceReferenceApplyConfiguration) WithAPIVersion(value string) *ResourceReferenceApplyConfiguration
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 (*ResourceReferenceApplyConfiguration) WithKind ¶
func (b *ResourceReferenceApplyConfiguration) WithKind(value string) *ResourceReferenceApplyConfiguration
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 (*ResourceReferenceApplyConfiguration) WithName ¶
func (b *ResourceReferenceApplyConfiguration) WithName(value string) *ResourceReferenceApplyConfiguration
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.
type SubnetApplyConfiguration ¶
type SubnetApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *SubnetSpecApplyConfiguration `json:"spec,omitempty"` Status *SubnetStatusApplyConfiguration `json:"status,omitempty"` }
SubnetApplyConfiguration represents an declarative configuration of the Subnet type for use with apply.
func ExtractSubnet ¶
func ExtractSubnet(subnet *ipamv1alpha1.Subnet, fieldManager string) (*SubnetApplyConfiguration, error)
ExtractSubnet extracts the applied configuration owned by fieldManager from subnet. If no managedFields are found in subnet for fieldManager, a SubnetApplyConfiguration 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. subnet must be a unmodified Subnet API object that was retrieved from the Kubernetes API. ExtractSubnet 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 ExtractSubnetStatus ¶
func ExtractSubnetStatus(subnet *ipamv1alpha1.Subnet, fieldManager string) (*SubnetApplyConfiguration, error)
ExtractSubnetStatus is the same as ExtractSubnet except that it extracts the status subresource applied configuration. Experimental!
func Subnet ¶
func Subnet(name, namespace string) *SubnetApplyConfiguration
Subnet constructs an declarative configuration of the Subnet type for use with apply.
func (*SubnetApplyConfiguration) WithAPIVersion ¶
func (b *SubnetApplyConfiguration) WithAPIVersion(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithAnnotations ¶
func (b *SubnetApplyConfiguration) WithAnnotations(entries map[string]string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithCreationTimestamp ¶
func (b *SubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithDeletionGracePeriodSeconds ¶
func (b *SubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithDeletionTimestamp ¶
func (b *SubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithFinalizers ¶
func (b *SubnetApplyConfiguration) WithFinalizers(values ...string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithGenerateName ¶
func (b *SubnetApplyConfiguration) WithGenerateName(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithGeneration ¶
func (b *SubnetApplyConfiguration) WithGeneration(value int64) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithKind ¶
func (b *SubnetApplyConfiguration) WithKind(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithLabels ¶
func (b *SubnetApplyConfiguration) WithLabels(entries map[string]string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithName ¶
func (b *SubnetApplyConfiguration) WithName(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithNamespace ¶
func (b *SubnetApplyConfiguration) WithNamespace(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithOwnerReferences ¶
func (b *SubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithResourceVersion ¶
func (b *SubnetApplyConfiguration) WithResourceVersion(value string) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithSpec ¶
func (b *SubnetApplyConfiguration) WithSpec(value *SubnetSpecApplyConfiguration) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithStatus ¶
func (b *SubnetApplyConfiguration) WithStatus(value *SubnetStatusApplyConfiguration) *SubnetApplyConfiguration
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 (*SubnetApplyConfiguration) WithUID ¶
func (b *SubnetApplyConfiguration) WithUID(value types.UID) *SubnetApplyConfiguration
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 SubnetSpecApplyConfiguration ¶
type SubnetSpecApplyConfiguration struct { CIDR *v1alpha1.CIDR `json:"cidr,omitempty"` PrefixBits *byte `json:"prefixBits,omitempty"` Capacity *resource.Quantity `json:"capacity,omitempty"` ParentSubnet *v1.LocalObjectReference `json:"parentSubnet,omitempty"` Network *v1.LocalObjectReference `json:"network,omitempty"` Regions []RegionApplyConfiguration `json:"regions,omitempty"` Consumer *ResourceReferenceApplyConfiguration `json:"consumer,omitempty"` }
SubnetSpecApplyConfiguration represents an declarative configuration of the SubnetSpec type for use with apply.
func SubnetSpec ¶
func SubnetSpec() *SubnetSpecApplyConfiguration
SubnetSpecApplyConfiguration constructs an declarative configuration of the SubnetSpec type for use with apply.
func (*SubnetSpecApplyConfiguration) WithCIDR ¶
func (b *SubnetSpecApplyConfiguration) WithCIDR(value v1alpha1.CIDR) *SubnetSpecApplyConfiguration
WithCIDR sets the CIDR 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 CIDR field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithCapacity ¶
func (b *SubnetSpecApplyConfiguration) WithCapacity(value resource.Quantity) *SubnetSpecApplyConfiguration
WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithConsumer ¶
func (b *SubnetSpecApplyConfiguration) WithConsumer(value *ResourceReferenceApplyConfiguration) *SubnetSpecApplyConfiguration
WithConsumer sets the Consumer 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 Consumer field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithNetwork ¶
func (b *SubnetSpecApplyConfiguration) WithNetwork(value v1.LocalObjectReference) *SubnetSpecApplyConfiguration
WithNetwork sets the Network 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 Network field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithParentSubnet ¶
func (b *SubnetSpecApplyConfiguration) WithParentSubnet(value v1.LocalObjectReference) *SubnetSpecApplyConfiguration
WithParentSubnet sets the ParentSubnet 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 ParentSubnet field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithPrefixBits ¶
func (b *SubnetSpecApplyConfiguration) WithPrefixBits(value byte) *SubnetSpecApplyConfiguration
WithPrefixBits sets the PrefixBits 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 PrefixBits field is set to the value of the last call.
func (*SubnetSpecApplyConfiguration) WithRegions ¶
func (b *SubnetSpecApplyConfiguration) WithRegions(values ...*RegionApplyConfiguration) *SubnetSpecApplyConfiguration
WithRegions adds the given value to the Regions 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 Regions field.
type SubnetStatusApplyConfiguration ¶
type SubnetStatusApplyConfiguration struct { Type *v1alpha1.SubnetAddressType `json:"type,omitempty"` Locality *v1alpha1.SubnetLocalityType `json:"locality,omitempty"` PrefixBits *byte `json:"prefixBits,omitempty"` Capacity *resource.Quantity `json:"capacity,omitempty"` CapacityLeft *resource.Quantity `json:"capacityLeft,omitempty"` Reserved *v1alpha1.CIDR `json:"reserved,omitempty"` Vacant []v1alpha1.CIDR `json:"vacant,omitempty"` State *v1alpha1.SubnetState `json:"state,omitempty"` Message *string `json:"message,omitempty"` }
SubnetStatusApplyConfiguration represents an declarative configuration of the SubnetStatus type for use with apply.
func SubnetStatus ¶
func SubnetStatus() *SubnetStatusApplyConfiguration
SubnetStatusApplyConfiguration constructs an declarative configuration of the SubnetStatus type for use with apply.
func (*SubnetStatusApplyConfiguration) WithCapacity ¶
func (b *SubnetStatusApplyConfiguration) WithCapacity(value resource.Quantity) *SubnetStatusApplyConfiguration
WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithCapacityLeft ¶
func (b *SubnetStatusApplyConfiguration) WithCapacityLeft(value resource.Quantity) *SubnetStatusApplyConfiguration
WithCapacityLeft sets the CapacityLeft 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 CapacityLeft field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithLocality ¶
func (b *SubnetStatusApplyConfiguration) WithLocality(value v1alpha1.SubnetLocalityType) *SubnetStatusApplyConfiguration
WithLocality sets the Locality 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 Locality field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithMessage ¶
func (b *SubnetStatusApplyConfiguration) WithMessage(value string) *SubnetStatusApplyConfiguration
WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithPrefixBits ¶
func (b *SubnetStatusApplyConfiguration) WithPrefixBits(value byte) *SubnetStatusApplyConfiguration
WithPrefixBits sets the PrefixBits 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 PrefixBits field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithReserved ¶
func (b *SubnetStatusApplyConfiguration) WithReserved(value v1alpha1.CIDR) *SubnetStatusApplyConfiguration
WithReserved sets the Reserved 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 Reserved field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithState ¶
func (b *SubnetStatusApplyConfiguration) WithState(value v1alpha1.SubnetState) *SubnetStatusApplyConfiguration
WithState sets the State 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 State field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithType ¶
func (b *SubnetStatusApplyConfiguration) WithType(value v1alpha1.SubnetAddressType) *SubnetStatusApplyConfiguration
WithType sets the Type 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 Type field is set to the value of the last call.
func (*SubnetStatusApplyConfiguration) WithVacant ¶
func (b *SubnetStatusApplyConfiguration) WithVacant(values ...v1alpha1.CIDR) *SubnetStatusApplyConfiguration
WithVacant adds the given value to the Vacant 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 Vacant field.