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: 16 Imported by: 0

Documentation

Overview

+groupName=vnic.vsphere.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: vnic.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 Vnic

type Vnic struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              VnicSpec   `json:"spec,omitempty"`
	Status            VnicStatus `json:"status,omitempty"`
}

func (*Vnic) DeepCopy

func (in *Vnic) DeepCopy() *Vnic

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

func (*Vnic) DeepCopyInto

func (in *Vnic) DeepCopyInto(out *Vnic)

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

func (*Vnic) DeepCopyObject

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

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

func (*Vnic) SetupWebhookWithManager

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

func (*Vnic) ValidateCreate

func (r *Vnic) ValidateCreate() error

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

func (*Vnic) ValidateDelete

func (r *Vnic) ValidateDelete() error

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

func (*Vnic) ValidateUpdate

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

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

type VnicList

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

VnicList is a list of Vnics

func (*VnicList) DeepCopy

func (in *VnicList) DeepCopy() *VnicList

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

func (*VnicList) DeepCopyInto

func (in *VnicList) DeepCopyInto(out *VnicList)

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

func (*VnicList) DeepCopyObject

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

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

type VnicSpec

type VnicSpec struct {
	State *VnicSpecResource `json:"state,omitempty" tf:"-"`

	Resource VnicSpecResource `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 (*VnicSpec) DeepCopy

func (in *VnicSpec) DeepCopy() *VnicSpec

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

func (*VnicSpec) DeepCopyInto

func (in *VnicSpec) DeepCopyInto(out *VnicSpec)

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

type VnicSpecIpv4

type VnicSpecIpv4 struct {
	// Use DHCP to configure the interface's IPv4 stack.
	// +optional
	Dhcp *bool `json:"dhcp,omitempty" tf:"dhcp"`
	// IP address of the default gateway, if DHCP is not set.
	// +optional
	Gw *string `json:"gw,omitempty" tf:"gw"`
	// address of the interface, if DHCP is not set.
	// +optional
	Ip *string `json:"ip,omitempty" tf:"ip"`
	// netmask of the interface, if DHCP is not set.
	// +optional
	Netmask *string `json:"netmask,omitempty" tf:"netmask"`
}

func (*VnicSpecIpv4) DeepCopy

func (in *VnicSpecIpv4) DeepCopy() *VnicSpecIpv4

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

func (*VnicSpecIpv4) DeepCopyInto

func (in *VnicSpecIpv4) DeepCopyInto(out *VnicSpecIpv4)

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

type VnicSpecIpv4Codec

type VnicSpecIpv4Codec struct {
}

+k8s:deepcopy-gen=false

func (VnicSpecIpv4Codec) Decode

func (VnicSpecIpv4Codec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (VnicSpecIpv4Codec) Encode

func (VnicSpecIpv4Codec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (VnicSpecIpv4Codec) IsEmpty

func (VnicSpecIpv4Codec) IsEmpty(ptr unsafe.Pointer) bool

type VnicSpecIpv6

type VnicSpecIpv6 struct {
	// List of IPv6 addresses
	// +optional
	Addresses []string `json:"addresses,omitempty" tf:"addresses"`
	// Use IPv6 Autoconfiguration (RFC2462).
	// +optional
	Autoconfig *bool `json:"autoconfig,omitempty" tf:"autoconfig"`
	// Use DHCP to configure the interface's IPv4 stack.
	// +optional
	Dhcp *bool `json:"dhcp,omitempty" tf:"dhcp"`
	// IP address of the default gateway, if DHCP or autoconfig is not set.
	// +optional
	Gw *string `json:"gw,omitempty" tf:"gw"`
}

func (*VnicSpecIpv6) DeepCopy

func (in *VnicSpecIpv6) DeepCopy() *VnicSpecIpv6

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

func (*VnicSpecIpv6) DeepCopyInto

func (in *VnicSpecIpv6) DeepCopyInto(out *VnicSpecIpv6)

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

type VnicSpecIpv6Codec

type VnicSpecIpv6Codec struct {
}

+k8s:deepcopy-gen=false

func (VnicSpecIpv6Codec) Decode

func (VnicSpecIpv6Codec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (VnicSpecIpv6Codec) Encode

func (VnicSpecIpv6Codec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (VnicSpecIpv6Codec) IsEmpty

func (VnicSpecIpv6Codec) IsEmpty(ptr unsafe.Pointer) bool

type VnicSpecResource

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

	// Key of the distributed portgroup the nic will connect to
	// +optional
	DistributedPortGroup *string `json:"distributedPortGroup,omitempty" tf:"distributed_port_group"`
	// UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
	// +optional
	DistributedSwitchPort *string `json:"distributedSwitchPort,omitempty" tf:"distributed_switch_port"`
	// ESX host the interface belongs to
	Host *string `json:"host" tf:"host"`
	// +optional
	Ipv4 *VnicSpecIpv4 `json:"ipv4,omitempty" tf:"ipv4"`
	// +optional
	Ipv6 *VnicSpecIpv6 `json:"ipv6,omitempty" tf:"ipv6"`
	// MAC address of the interface.
	// +optional
	Mac *string `json:"mac,omitempty" tf:"mac"`
	// MTU of the interface.
	// +optional
	Mtu *int64 `json:"mtu,omitempty" tf:"mtu"`
	// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'provisioning'
	// +optional
	Netstack *string `json:"netstack,omitempty" tf:"netstack"`
	// portgroup to attach the nic to. Do not set if you set distributed_switch_port.
	// +optional
	Portgroup *string `json:"portgroup,omitempty" tf:"portgroup"`
}

func (*VnicSpecResource) DeepCopy

func (in *VnicSpecResource) DeepCopy() *VnicSpecResource

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

func (*VnicSpecResource) DeepCopyInto

func (in *VnicSpecResource) DeepCopyInto(out *VnicSpecResource)

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

type VnicStatus

type VnicStatus 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 (*VnicStatus) DeepCopy

func (in *VnicStatus) DeepCopy() *VnicStatus

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

func (*VnicStatus) DeepCopyInto

func (in *VnicStatus) DeepCopyInto(out *VnicStatus)

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