v1beta1

package
v0.2.7 Latest Latest
Warning

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

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

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

View Source
const (
	NodeEnvVarName = "NODE_NAME"
	NodeKeyName    = "nodename"
)
View Source
const (
	PciDeviceDriver     = "harvesterhci.io/pcideviceDriver"
	PluginNamePrefix    = "/var/lib/kubelet/device-plugins/kubevirt-"
	SocketFileNameLimit = 108
	VFSuffix            = "VIRTUAL_FUNCTION"
	ShortenedVFSuffix   = "VF"
)
View Source
const (
	DeviceDisabled           = "sriovNetworkDeviceDisabled"
	DeviceEnabled            = "sriovNetworkDeviceEnabled"
	ParentSRIOVNetworkDevice = "harvesterhci.io/parent-sriov-network-device"
	SRIOVFromVF              = "sriov-dev-from-vf"
)

Variables

View Source
var (
	NodeResourceName               = "nodes"
	PCIDeviceResourceName          = "pcidevices"
	PCIDeviceClaimResourceName     = "pcideviceclaims"
	SRIOVNetworkDeviceResourceName = "sriovnetworkdevices"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: devices.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func PCIDeviceNameForHostname

func PCIDeviceNameForHostname(address string, hostname string) string

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 NewNode added in v0.2.5

func NewNode(namespace, name string, obj Node) *Node

func (*Node) DeepCopy added in v0.2.5

func (in *Node) DeepCopy() *Node

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

func (*Node) DeepCopyInto added in v0.2.5

func (in *Node) DeepCopyInto(out *Node)

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

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

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

func (in *NodeList) DeepCopy() *NodeList

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

func (*NodeList) DeepCopyInto added in v0.2.5

func (in *NodeList) DeepCopyInto(out *NodeList)

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

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

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

func (in *NodeSpec) DeepCopy() *NodeSpec

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

func (*NodeSpec) DeepCopyInto added in v0.2.5

func (in *NodeSpec) DeepCopyInto(out *NodeSpec)

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 NewPCIDevice(namespace, name string, obj PCIDevice) *PCIDevice

func NewPCIDeviceForHostname

func NewPCIDeviceForHostname(dev *pci.Device, hostname string) PCIDevice

func (*PCIDevice) DeepCopy

func (in *PCIDevice) DeepCopy() *PCIDevice

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

func (*PCIDevice) DeepCopyInto

func (in *PCIDevice) DeepCopyInto(out *PCIDevice)

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

func (*PCIDevice) DeepCopyObject

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

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

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.

func (*PCIDeviceStatus) Update

func (status *PCIDeviceStatus) Update(dev *pci.Device, hostname string, iommuGroups map[string]int)

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

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

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

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.

Jump to

Keyboard shortcuts

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