Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=devices.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=devices.harvesterhci.io
+k8s:deepcopy-gen=package +groupName=devices.harvesterhci.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func PCIDeviceNameForHostname(address string, hostname string) string
- func Resource(resource string) schema.GroupResource
- type Node
- type NodeList
- type NodeSpec
- type PCIDevice
- type PCIDeviceClaim
- type PCIDeviceClaimList
- type PCIDeviceClaimSpec
- type PCIDeviceClaimStatus
- type PCIDeviceList
- type PCIDeviceSpec
- type PCIDeviceStatus
- type SRIOVNetworkDevice
- type SRIOVNetworkDeviceList
- type SRIOVNetworkDeviceSpec
- type SRIOVNetworkDeviceStatus
Constants ¶
const ( NodeEnvVarName = "NODE_NAME" NodeKeyName = "nodename" )
const ( PciDeviceDriver = "harvesterhci.io/pcideviceDriver" PluginNamePrefix = "/var/lib/kubelet/device-plugins/kubevirt-" SocketFileNameLimit = 108 VFSuffix = "VIRTUAL_FUNCTION" ShortenedVFSuffix = "VF" )
const ( DeviceDisabled = "sriovNetworkDeviceDisabled" DeviceEnabled = "sriovNetworkDeviceEnabled" ParentSRIOVNetworkDevice = "harvesterhci.io/parent-sriov-network-device" SRIOVFromVF = "sriov-dev-from-vf" )
Variables ¶
var ( NodeResourceName = "nodes" PCIDeviceResourceName = "pcidevices" PCIDeviceClaimResourceName = "pcideviceclaims" SRIOVNetworkDeviceResourceName = "sriovnetworkdevices" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: devices.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Node ¶ added in v0.2.5
type Node struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeSpec `json:"spec,omitempty"` }
a Node represents a k8s node and is used to reconcile objects on each node
func (*Node) DeepCopy ¶ added in v0.2.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.
func (*Node) DeepCopyInto ¶ added in v0.2.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Node) DeepCopyObject ¶ added in v0.2.5
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeList ¶ added in v0.2.5
type NodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Node `json:"items"` }
NodeList is a list of Node resources
func (*NodeList) DeepCopy ¶ added in v0.2.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeList.
func (*NodeList) DeepCopyInto ¶ added in v0.2.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeList) DeepCopyObject ¶ added in v0.2.5
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeSpec ¶ added in v0.2.5
type NodeSpec struct{}
func (*NodeSpec) DeepCopy ¶ added in v0.2.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶ added in v0.2.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PCIDevice ¶
type PCIDevice struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PCIDeviceSpec `json:"spec,omitempty"` Status PCIDeviceStatus `json:"status,omitempty"` }
PCIDevice is the Schema for the pcidevices API
func NewPCIDevice ¶
func NewPCIDeviceForHostname ¶
func (*PCIDevice) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDevice.
func (*PCIDevice) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PCIDevice) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PCIDeviceClaim ¶
type PCIDeviceClaim struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PCIDeviceClaimSpec `json:"spec,omitempty"` Status PCIDeviceClaimStatus `json:"status,omitempty"` }
a PCIDeviceClaim is used to reserve a PCI Device for a single
func NewPCIDeviceClaim ¶
func NewPCIDeviceClaim(namespace, name string, obj PCIDeviceClaim) *PCIDeviceClaim
func (*PCIDeviceClaim) DeepCopy ¶
func (in *PCIDeviceClaim) DeepCopy() *PCIDeviceClaim
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceClaim.
func (*PCIDeviceClaim) DeepCopyInto ¶
func (in *PCIDeviceClaim) DeepCopyInto(out *PCIDeviceClaim)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PCIDeviceClaim) DeepCopyObject ¶
func (in *PCIDeviceClaim) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PCIDeviceClaimList ¶
type PCIDeviceClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PCIDeviceClaim `json:"items"` }
PCIDeviceClaimList is a list of PCIDeviceClaim resources
func (*PCIDeviceClaimList) DeepCopy ¶
func (in *PCIDeviceClaimList) DeepCopy() *PCIDeviceClaimList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceClaimList.
func (*PCIDeviceClaimList) DeepCopyInto ¶
func (in *PCIDeviceClaimList) DeepCopyInto(out *PCIDeviceClaimList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PCIDeviceClaimList) DeepCopyObject ¶
func (in *PCIDeviceClaimList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PCIDeviceClaimSpec ¶
type PCIDeviceClaimSpec struct { Address string `json:"address"` NodeName string `json:"nodeName"` UserName string `json:"userName"` }
func (*PCIDeviceClaimSpec) DeepCopy ¶
func (in *PCIDeviceClaimSpec) DeepCopy() *PCIDeviceClaimSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceClaimSpec.
func (*PCIDeviceClaimSpec) DeepCopyInto ¶
func (in *PCIDeviceClaimSpec) DeepCopyInto(out *PCIDeviceClaimSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PCIDeviceClaimSpec) NodeAddr ¶
func (s PCIDeviceClaimSpec) NodeAddr() string
type PCIDeviceClaimStatus ¶
type PCIDeviceClaimStatus struct { KernelDriverToUnbind string `json:"kernelDriverToUnbind"` PassthroughEnabled bool `json:"passthroughEnabled"` }
func (*PCIDeviceClaimStatus) DeepCopy ¶
func (in *PCIDeviceClaimStatus) DeepCopy() *PCIDeviceClaimStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceClaimStatus.
func (*PCIDeviceClaimStatus) DeepCopyInto ¶
func (in *PCIDeviceClaimStatus) DeepCopyInto(out *PCIDeviceClaimStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PCIDeviceList ¶
type PCIDeviceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PCIDevice `json:"items"` }
PCIDeviceList is a list of PCIDevice resources
func (*PCIDeviceList) DeepCopy ¶
func (in *PCIDeviceList) DeepCopy() *PCIDeviceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceList.
func (*PCIDeviceList) DeepCopyInto ¶
func (in *PCIDeviceList) DeepCopyInto(out *PCIDeviceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PCIDeviceList) DeepCopyObject ¶
func (in *PCIDeviceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PCIDeviceSpec ¶
type PCIDeviceSpec struct { }
func (*PCIDeviceSpec) DeepCopy ¶
func (in *PCIDeviceSpec) DeepCopy() *PCIDeviceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceSpec.
func (*PCIDeviceSpec) DeepCopyInto ¶
func (in *PCIDeviceSpec) DeepCopyInto(out *PCIDeviceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PCIDeviceStatus ¶
type PCIDeviceStatus struct { Address string `json:"address"` VendorID string `json:"vendorId"` DeviceID string `json:"deviceId"` ClassID string `json:"classId"` IOMMUGroup string `json:"iommuGroup"` NodeName string `json:"nodeName"` ResourceName string `json:"resourceName"` Description string `json:"description"` KernelDriverInUse string `json:"kernelDriverInUse,omitempty"` }
PCIDeviceStatus defines the observed state of PCIDevice
func (*PCIDeviceStatus) DeepCopy ¶
func (in *PCIDeviceStatus) DeepCopy() *PCIDeviceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PCIDeviceStatus.
func (*PCIDeviceStatus) DeepCopyInto ¶
func (in *PCIDeviceStatus) DeepCopyInto(out *PCIDeviceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SRIOVNetworkDevice ¶ added in v0.2.5
type SRIOVNetworkDevice struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SRIOVNetworkDeviceSpec `json:"spec,omitempty"` Status SRIOVNetworkDeviceStatus `json:"status,omitempty"` }
a SRIOVNetworkDevice represents an srio-v capable network interface on a node in the cluster
func NewSRIOVNetworkDevice ¶ added in v0.2.5
func NewSRIOVNetworkDevice(namespace, name string, obj SRIOVNetworkDevice) *SRIOVNetworkDevice
func (*SRIOVNetworkDevice) DeepCopy ¶ added in v0.2.5
func (in *SRIOVNetworkDevice) DeepCopy() *SRIOVNetworkDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SRIOVNetworkDevice.
func (*SRIOVNetworkDevice) DeepCopyInto ¶ added in v0.2.5
func (in *SRIOVNetworkDevice) DeepCopyInto(out *SRIOVNetworkDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SRIOVNetworkDevice) DeepCopyObject ¶ added in v0.2.5
func (in *SRIOVNetworkDevice) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SRIOVNetworkDeviceList ¶ added in v0.2.5
type SRIOVNetworkDeviceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []SRIOVNetworkDevice `json:"items"` }
SRIOVNetworkDeviceList is a list of SRIOVNetworkDevice resources
func (*SRIOVNetworkDeviceList) DeepCopy ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceList) DeepCopy() *SRIOVNetworkDeviceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SRIOVNetworkDeviceList.
func (*SRIOVNetworkDeviceList) DeepCopyInto ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceList) DeepCopyInto(out *SRIOVNetworkDeviceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SRIOVNetworkDeviceList) DeepCopyObject ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SRIOVNetworkDeviceSpec ¶ added in v0.2.5
type SRIOVNetworkDeviceSpec struct { Address string `json:"address"` NodeName string `json:"nodeName"` NumVFs int `json:"numVFs"` }
func (*SRIOVNetworkDeviceSpec) DeepCopy ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceSpec) DeepCopy() *SRIOVNetworkDeviceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SRIOVNetworkDeviceSpec.
func (*SRIOVNetworkDeviceSpec) DeepCopyInto ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceSpec) DeepCopyInto(out *SRIOVNetworkDeviceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SRIOVNetworkDeviceStatus ¶ added in v0.2.5
type SRIOVNetworkDeviceStatus struct { VFAddresses []string `json:"vfAddresses,omitempty"` VFPCIDevices []string `json:"vfPCIDevices,omitempty"` Status string `json:"status"` }
func (*SRIOVNetworkDeviceStatus) DeepCopy ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceStatus) DeepCopy() *SRIOVNetworkDeviceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SRIOVNetworkDeviceStatus.
func (*SRIOVNetworkDeviceStatus) DeepCopyInto ¶ added in v0.2.5
func (in *SRIOVNetworkDeviceStatus) DeepCopyInto(out *SRIOVNetworkDeviceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.