Documentation ¶
Overview ¶
+groupName=vnic.vsphere.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Vnic
- func (in *Vnic) DeepCopy() *Vnic
- func (in *Vnic) DeepCopyInto(out *Vnic)
- func (in *Vnic) DeepCopyObject() runtime.Object
- func (r *Vnic) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Vnic) ValidateCreate() error
- func (r *Vnic) ValidateDelete() error
- func (r *Vnic) ValidateUpdate(old runtime.Object) error
- type VnicList
- type VnicSpec
- type VnicSpecIpv4
- type VnicSpecIpv4Codec
- type VnicSpecIpv6
- type VnicSpecIpv6Codec
- type VnicSpecResource
- type VnicStatus
Constants ¶
This section is empty.
Variables ¶
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 )
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 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vnic.
func (*Vnic) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Vnic) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Vnic) SetupWebhookWithManager ¶
func (*Vnic) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Vnic) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VnicList.
func (*VnicList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VnicList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VnicSpec.
func (*VnicSpec) DeepCopyInto ¶
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)
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)
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.