type deviceAllocateInfo …
type resourceAllocateInfo …
type containerDevices …
type podDevices …
func newPodDevices() *podDevices { … }
func (pdev *podDevices) pods() sets.Set[string] { … }
func (pdev *podDevices) size() int { … }
func (pdev *podDevices) hasPod(podUID string) bool { … }
func (pdev *podDevices) insert(podUID, contName, resource string, devices checkpoint.DevicesPerNUMA, resp *pluginapi.ContainerAllocateResponse) { … }
func (pdev *podDevices) delete(pods []string) { … }
func (pdev *podDevices) podDevices(podUID, resource string) sets.Set[string] { … }
func (pdev *podDevices) containerDevices(podUID, contName, resource string) sets.Set[string] { … }
func (pdev *podDevices) addContainerAllocatedResources(podUID, contName string, allocatedResources map[string]sets.Set[string]) { … }
func (pdev *podDevices) removeContainerAllocatedResources(podUID, contName string, allocatedResources map[string]sets.Set[string]) { … }
func (pdev *podDevices) devices() map[string]sets.Set[string] { … }
func (pdev *podDevices) getPodAndContainerForDevice(deviceID string) (string, string) { … }
func (pdev *podDevices) toCheckpointData() []checkpoint.PodDevicesEntry { … }
func (pdev *podDevices) fromCheckpointData(data []checkpoint.PodDevicesEntry) { … }
func (pdev *podDevices) deviceRunContainerOptions(podUID, contName string) *DeviceRunContainerOptions { … }
func getCDIDeviceInfo(resp *pluginapi.ContainerAllocateResponse, knownCDIDevices sets.Set[string]) []kubecontainer.CDIDevice { … }
func (pdev *podDevices) getContainerDevices(podUID, contName string) ResourceDeviceInstances { … }
type DeviceInstances …
type ResourceDeviceInstances …
func NewResourceDeviceInstances() ResourceDeviceInstances { … }
func (rdev ResourceDeviceInstances) Clone() ResourceDeviceInstances { … }
func (rdev ResourceDeviceInstances) Filter(cond map[string]sets.Set[string]) ResourceDeviceInstances { … }