v1alpha1

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL