v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=port.equinixmetal.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: port.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Port added in v0.4.0

type Port struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PortSpec   `json:"spec,omitempty"`
	Status            PortStatus `json:"status,omitempty"`
}

func (*Port) DeepCopy added in v0.4.0

func (in *Port) DeepCopy() *Port

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.

func (*Port) DeepCopyInto added in v0.4.0

func (in *Port) DeepCopyInto(out *Port)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Port) DeepCopyObject added in v0.4.0

func (in *Port) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Port) SetupWebhookWithManager added in v0.4.0

func (r *Port) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Port) ValidateCreate added in v0.4.0

func (r *Port) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Port) ValidateDelete added in v0.4.0

func (r *Port) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Port) ValidateUpdate added in v0.4.0

func (r *Port) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PortList added in v0.4.0

type PortList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Port CRD objects
	Items []Port `json:"items,omitempty"`
}

PortList is a list of Ports

func (*PortList) DeepCopy added in v0.4.0

func (in *PortList) DeepCopy() *PortList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortList.

func (*PortList) DeepCopyInto added in v0.4.0

func (in *PortList) DeepCopyInto(out *PortList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PortList) DeepCopyObject added in v0.4.0

func (in *PortList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PortSpec added in v0.4.0

type PortSpec struct {
	State *PortSpecResource `json:"state,omitempty" tf:"-"`

	Resource PortSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*PortSpec) DeepCopy added in v0.4.0

func (in *PortSpec) DeepCopy() *PortSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSpec.

func (*PortSpec) DeepCopyInto added in v0.4.0

func (in *PortSpec) DeepCopyInto(out *PortSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortSpecResource added in v0.4.0

type PortSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// UUID of the bond port
	// +optional
	BondID *string `json:"bondID,omitempty" tf:"bond_id"`
	// Name of the bond port
	// +optional
	BondName *string `json:"bondName,omitempty" tf:"bond_name"`
	// Flag indicating whether the port should be bonded
	Bonded *bool `json:"bonded" tf:"bonded"`
	// Flag indicating whether the port can be removed from a bond
	// +optional
	DisbondSupported *bool `json:"disbondSupported,omitempty" tf:"disbond_supported"`
	// Flag indicating whether the port is in layer2 (or layer3) mode
	// +optional
	Layer2 *bool `json:"layer2,omitempty" tf:"layer2"`
	// MAC address of the port
	// +optional
	Mac *string `json:"mac,omitempty" tf:"mac"`
	// Name of the port to look up, e.g. bond0, eth1
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// UUID of native VLAN of the port
	// +optional
	NativeVLANID *string `json:"nativeVLANID,omitempty" tf:"native_vlan_id"`
	// One of layer2-bonded, layer2-individual, layer3, hybrid and hybrid-bonded. This attribute is only set on bond ports.
	// +optional
	NetworkType *string `json:"networkType,omitempty" tf:"network_type"`
	// UUID of the port to lookup
	PortID *string `json:"portID" tf:"port_id"`
	// Behavioral setting to reset the port to default settings. For a bond port it means layer3 without vlans attached, eth ports will be bonded without native vlan and vlans attached
	// +optional
	ResetOnDelete *bool `json:"resetOnDelete,omitempty" tf:"reset_on_delete"`
	// Port type
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// UUIDs VLANs to attach. To avoid jitter, use the UUID and not the VXLAN
	// +optional
	VlanIDS []string `json:"vlanIDS,omitempty" tf:"vlan_ids"`
	// VLAN VXLAN ids to attach (example: [1000])
	// +optional
	VxlanIDS []int64 `json:"vxlanIDS,omitempty" tf:"vxlan_ids"`
}

func (*PortSpecResource) DeepCopy added in v0.4.0

func (in *PortSpecResource) DeepCopy() *PortSpecResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSpecResource.

func (*PortSpecResource) DeepCopyInto added in v0.4.0

func (in *PortSpecResource) DeepCopyInto(out *PortSpecResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PortStatus added in v0.4.0

type PortStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*PortStatus) DeepCopy added in v0.4.0

func (in *PortStatus) DeepCopy() *PortStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortStatus.

func (*PortStatus) DeepCopyInto added in v0.4.0

func (in *PortStatus) DeepCopyInto(out *PortStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlanAttachment

type VlanAttachment struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VlanAttachmentSpec   `json:"spec,omitempty"`
	Status            VlanAttachmentStatus `json:"status,omitempty"`
}

func (*VlanAttachment) DeepCopy

func (in *VlanAttachment) DeepCopy() *VlanAttachment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanAttachment.

func (*VlanAttachment) DeepCopyInto

func (in *VlanAttachment) DeepCopyInto(out *VlanAttachment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanAttachment) DeepCopyObject

func (in *VlanAttachment) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*VlanAttachment) SetupWebhookWithManager

func (r *VlanAttachment) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*VlanAttachment) ValidateCreate

func (r *VlanAttachment) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*VlanAttachment) ValidateDelete

func (r *VlanAttachment) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*VlanAttachment) ValidateUpdate

func (r *VlanAttachment) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type VlanAttachmentList

type VlanAttachmentList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of VlanAttachment CRD objects
	Items []VlanAttachment `json:"items,omitempty"`
}

VlanAttachmentList is a list of VlanAttachments

func (*VlanAttachmentList) DeepCopy

func (in *VlanAttachmentList) DeepCopy() *VlanAttachmentList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanAttachmentList.

func (*VlanAttachmentList) DeepCopyInto

func (in *VlanAttachmentList) DeepCopyInto(out *VlanAttachmentList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VlanAttachmentList) DeepCopyObject

func (in *VlanAttachmentList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VlanAttachmentSpec

type VlanAttachmentSpec struct {
	State *VlanAttachmentSpecResource `json:"state,omitempty" tf:"-"`

	Resource VlanAttachmentSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*VlanAttachmentSpec) DeepCopy

func (in *VlanAttachmentSpec) DeepCopy() *VlanAttachmentSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanAttachmentSpec.

func (*VlanAttachmentSpec) DeepCopyInto

func (in *VlanAttachmentSpec) DeepCopyInto(out *VlanAttachmentSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlanAttachmentSpecResource

type VlanAttachmentSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// ID of device to be assigned to the VLAN
	DeviceID *string `json:"deviceID" tf:"device_id"`
	// Add port back to the bond when this resource is removed. Default is false
	// +optional
	ForceBond *bool `json:"forceBond,omitempty" tf:"force_bond"`
	// Mark this VLAN a native VLAN on the port. This can be used only if this assignment assigns second or further VLAN to the port. To ensure that this attachment is not first on a port, you can use depends_on pointing to another metal_port_vlan_attachment, just like in the layer2-individual example above
	// +optional
	Native *bool `json:"native,omitempty" tf:"native"`
	// UUID of device port
	// +optional
	PortID *string `json:"portID,omitempty" tf:"port_id"`
	// Name of network port to be assigned to the VLAN
	PortName *string `json:"portName" tf:"port_name"`
	// UUID of VLAN API resource
	// +optional
	VlanID *string `json:"vlanID,omitempty" tf:"vlan_id"`
	// VXLAN Network Identifier, integer
	VlanVnid *int64 `json:"vlanVnid" tf:"vlan_vnid"`
}

func (*VlanAttachmentSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanAttachmentSpecResource.

func (*VlanAttachmentSpecResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VlanAttachmentStatus

type VlanAttachmentStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*VlanAttachmentStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanAttachmentStatus.

func (*VlanAttachmentStatus) DeepCopyInto

func (in *VlanAttachmentStatus) DeepCopyInto(out *VlanAttachmentStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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