v1alpha1

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OOBApplyConfiguration

type OOBApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *OOBSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *OOBStatusApplyConfiguration `json:"status,omitempty"`
}

OOBApplyConfiguration represents an declarative configuration of the OOB type for use with apply.

func ExtractOOB

func ExtractOOB(oOB *apiv1alpha1.OOB, fieldManager string) (*OOBApplyConfiguration, error)

ExtractOOB extracts the applied configuration owned by fieldManager from oOB. If no managedFields are found in oOB for fieldManager, a OOBApplyConfiguration 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. oOB must be a unmodified OOB API object that was retrieved from the Kubernetes API. ExtractOOB 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 ExtractOOBStatus

func ExtractOOBStatus(oOB *apiv1alpha1.OOB, fieldManager string) (*OOBApplyConfiguration, error)

ExtractOOBStatus is the same as ExtractOOB except that it extracts the status subresource applied configuration. Experimental!

func OOB

func OOB(name, namespace string) *OOBApplyConfiguration

OOB constructs an declarative configuration of the OOB type for use with apply.

func (*OOBApplyConfiguration) WithAPIVersion

func (b *OOBApplyConfiguration) WithAPIVersion(value string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithAnnotations

func (b *OOBApplyConfiguration) WithAnnotations(entries map[string]string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithCreationTimestamp

func (b *OOBApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *OOBApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithDeletionTimestamp

func (b *OOBApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithFinalizers

func (b *OOBApplyConfiguration) WithFinalizers(values ...string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithGenerateName

func (b *OOBApplyConfiguration) WithGenerateName(value string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) WithGeneration

func (b *OOBApplyConfiguration) WithGeneration(value int64) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) 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 (*OOBApplyConfiguration) WithLabels

func (b *OOBApplyConfiguration) WithLabels(entries map[string]string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) 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 (*OOBApplyConfiguration) WithNamespace

func (b *OOBApplyConfiguration) WithNamespace(value string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) 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 (*OOBApplyConfiguration) WithResourceVersion

func (b *OOBApplyConfiguration) WithResourceVersion(value string) *OOBApplyConfiguration

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 (*OOBApplyConfiguration) 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 (*OOBApplyConfiguration) 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 (*OOBApplyConfiguration) 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 OOBSpecApplyConfiguration

type OOBSpecApplyConfiguration struct {
	LocatorLED *string `json:"locatorLED,omitempty"`
	Power      *string `json:"power,omitempty"`
	Reset      *string `json:"reset,omitempty"`
	Filler     *int64  `json:"filler,omitempty"`
}

OOBSpecApplyConfiguration represents an declarative configuration of the OOBSpec type for use with apply.

func OOBSpec

func OOBSpec() *OOBSpecApplyConfiguration

OOBSpecApplyConfiguration constructs an declarative configuration of the OOBSpec type for use with apply.

func (*OOBSpecApplyConfiguration) WithFiller

WithFiller sets the Filler field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Filler field is set to the value of the last call.

func (*OOBSpecApplyConfiguration) WithLocatorLED

WithLocatorLED sets the LocatorLED field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LocatorLED field is set to the value of the last call.

func (*OOBSpecApplyConfiguration) WithPower

WithPower sets the Power field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Power field is set to the value of the last call.

func (*OOBSpecApplyConfiguration) WithReset

WithReset sets the Reset field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reset field is set to the value of the last call.

type OOBStatusApplyConfiguration

type OOBStatusApplyConfiguration struct {
	UUID             *string                     `json:"uuid,omitempty"`
	Mac              *string                     `json:"mac,omitempty"`
	IP               *string                     `json:"ip,omitempty"`
	Protocol         *string                     `json:"protocol,omitempty"`
	Tags             []TagSpecApplyConfiguration `json:"tags,omitempty"`
	Port             *int                        `json:"port,omitempty"`
	Type             *string                     `json:"type,omitempty"`
	Capabilities     []string                    `json:"capabilities,omitempty"`
	Manufacturer     *string                     `json:"manufacturer,omitempty"`
	SerialNumber     *string                     `json:"serialNumber,omitempty"`
	SKU              *string                     `json:"sku,omitempty"`
	LocatorLED       *string                     `json:"locatorLED,omitempty"`
	Power            *string                     `json:"power,omitempty"`
	ShutdownDeadline *v1.Time                    `json:"shutdownDeadline,omitempty"`
	OS               *string                     `json:"os,omitempty"`
	OSReason         *string                     `json:"osReason,omitempty"`
	OSReadDeadline   *v1.Time                    `json:"osReadDeadline,omitempty"`
	Console          *string                     `json:"console,omitempty"`
	Conditions       []v1.Condition              `json:"conditions,omitempty"`
	FWVersion        *string                     `json:"fwVersion,omitempty"`
}

OOBStatusApplyConfiguration represents an declarative configuration of the OOBStatus type for use with apply.

func OOBStatus

func OOBStatus() *OOBStatusApplyConfiguration

OOBStatusApplyConfiguration constructs an declarative configuration of the OOBStatus type for use with apply.

func (*OOBStatusApplyConfiguration) WithCapabilities

func (b *OOBStatusApplyConfiguration) WithCapabilities(values ...string) *OOBStatusApplyConfiguration

WithCapabilities adds the given value to the Capabilities 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 Capabilities field.

func (*OOBStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*OOBStatusApplyConfiguration) WithConsole

WithConsole sets the Console field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Console field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithFWVersion

WithFWVersion sets the FWVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FWVersion field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) 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 (*OOBStatusApplyConfiguration) WithLocatorLED

WithLocatorLED sets the LocatorLED field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LocatorLED field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithMac

WithMac sets the Mac field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Mac field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithManufacturer

WithManufacturer sets the Manufacturer field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Manufacturer field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithOS

WithOS sets the OS field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OS field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithOSReadDeadline

func (b *OOBStatusApplyConfiguration) WithOSReadDeadline(value v1.Time) *OOBStatusApplyConfiguration

WithOSReadDeadline sets the OSReadDeadline field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OSReadDeadline field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithOSReason

WithOSReason sets the OSReason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the OSReason field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithPort

WithPort sets the Port field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Port field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithPower

WithPower sets the Power field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Power field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithProtocol

WithProtocol sets the Protocol field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Protocol field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithSKU

WithSKU sets the SKU field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SKU field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithSerialNumber

WithSerialNumber sets the SerialNumber field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SerialNumber field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithShutdownDeadline

func (b *OOBStatusApplyConfiguration) WithShutdownDeadline(value v1.Time) *OOBStatusApplyConfiguration

WithShutdownDeadline sets the ShutdownDeadline field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ShutdownDeadline field is set to the value of the last call.

func (*OOBStatusApplyConfiguration) WithTags

WithTags adds the given value to the Tags 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 Tags field.

func (*OOBStatusApplyConfiguration) 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 (*OOBStatusApplyConfiguration) WithUUID

WithUUID sets the UUID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UUID field is set to the value of the last call.

type TagSpecApplyConfiguration

type TagSpecApplyConfiguration struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

TagSpecApplyConfiguration represents an declarative configuration of the TagSpec type for use with apply.

func TagSpec

func TagSpec() *TagSpecApplyConfiguration

TagSpecApplyConfiguration constructs an declarative configuration of the TagSpec type for use with apply.

func (*TagSpecApplyConfiguration) WithKey

WithKey sets the Key field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Key field is set to the value of the last call.

func (*TagSpecApplyConfiguration) WithValue

WithValue sets the Value field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Value field is set to the value of the last call.

Jump to

Keyboard shortcuts

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