fakeclients

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

Documentation

Index

Constants

View Source
const (
	IommuGroupByNode = "pcidevice.harvesterhci.io/iommu-by-node"
)
View Source
const (
	VMByPCIDeviceClaim = "harvesterhci.io/vm-by-pcideviceclaim"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeCache

type NodeCache func() corev1type.NodeInterface

func (NodeCache) AddIndexer

func (c NodeCache) AddIndexer(_ string, _ ctlcorev1.NodeIndexer)

func (NodeCache) Get

func (c NodeCache) Get(name string) (*v1.Node, error)

func (NodeCache) GetByIndex

func (c NodeCache) GetByIndex(_, _ string) ([]*v1.Node, error)

func (NodeCache) List

func (c NodeCache) List(selector labels.Selector) ([]*v1.Node, error)

type NodeClient

type NodeClient func() corev1type.NodeInterface

func (NodeClient) Create

func (c NodeClient) Create(node *v1.Node) (*v1.Node, error)

func (NodeClient) Delete

func (c NodeClient) Delete(_ string, _ *metav1.DeleteOptions) error

func (NodeClient) Get

func (c NodeClient) Get(name string, options metav1.GetOptions) (*v1.Node, error)

func (NodeClient) List

func (NodeClient) Patch

func (c NodeClient) Patch(_ string, _ types.PatchType, _ []byte, _ ...string) (result *v1.Node, err error)

func (NodeClient) Update

func (c NodeClient) Update(node *v1.Node) (*v1.Node, error)

func (NodeClient) UpdateStatus

func (c NodeClient) UpdateStatus(*v1.Node) (*v1.Node, error)

func (NodeClient) Watch

type PCIDeviceClaimsCache

type PCIDeviceClaimsCache func() v1beta1.PCIDeviceClaimInterface

func (PCIDeviceClaimsCache) AddIndexer

func (PCIDeviceClaimsCache) Get

func (PCIDeviceClaimsCache) GetByIndex

func (PCIDeviceClaimsCache) List

type PCIDeviceClaimsClient

type PCIDeviceClaimsClient func() v1beta1.PCIDeviceClaimInterface

func (PCIDeviceClaimsClient) Delete

func (p PCIDeviceClaimsClient) Delete(name string, options *metav1.DeleteOptions) error

func (PCIDeviceClaimsClient) Get

func (PCIDeviceClaimsClient) List

func (PCIDeviceClaimsClient) Patch

func (PCIDeviceClaimsClient) UpdateStatus

func (PCIDeviceClaimsClient) Watch

type PCIDevicesCache

type PCIDevicesCache func() v1beta1.PCIDeviceInterface

func (PCIDevicesCache) AddIndexer

func (PCIDevicesCache) Get

func (PCIDevicesCache) GetByIndex

func (p PCIDevicesCache) GetByIndex(indexName, key string) ([]*pcidevicev1beta1.PCIDevice, error)

func (PCIDevicesCache) List

type PCIDevicesClient

type PCIDevicesClient func() v1beta1.PCIDeviceInterface

func (PCIDevicesClient) Create

func (PCIDevicesClient) Delete

func (p PCIDevicesClient) Delete(name string, options *metav1.DeleteOptions) error

func (PCIDevicesClient) Get

func (PCIDevicesClient) List

func (PCIDevicesClient) Patch

func (p PCIDevicesClient) Patch(_ string, _ types.PatchType, _ []byte, _ ...string) (result *pcidevicev1beta1.PCIDevice, err error)

func (PCIDevicesClient) Update

func (PCIDevicesClient) UpdateStatus

func (PCIDevicesClient) Watch

type SriovDevicesCache added in v0.2.5

type SriovDevicesCache func() v1beta1.SRIOVNetworkDeviceInterface

func (SriovDevicesCache) AddIndexer added in v0.2.5

func (SriovDevicesCache) Get added in v0.2.5

func (SriovDevicesCache) GetByIndex added in v0.2.5

func (s SriovDevicesCache) GetByIndex(indexName, key string) ([]*pcidevicev1beta1.SRIOVNetworkDevice, error)

func (SriovDevicesCache) List added in v0.2.5

type SriovDevicesClient added in v0.2.5

type SriovDevicesClient func() v1beta1.SRIOVNetworkDeviceInterface

func (SriovDevicesClient) Create added in v0.2.5

func (SriovDevicesClient) Delete added in v0.2.5

func (s SriovDevicesClient) Delete(name string, options *metav1.DeleteOptions) error

func (SriovDevicesClient) Get added in v0.2.5

func (SriovDevicesClient) List added in v0.2.5

func (SriovDevicesClient) Patch added in v0.2.5

func (SriovDevicesClient) Update added in v0.2.5

func (SriovDevicesClient) UpdateStatus added in v0.2.5

func (SriovDevicesClient) Watch added in v0.2.5

type VirtualMachineCache added in v0.2.5

type VirtualMachineCache func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineCache) AddIndexer added in v0.2.5

func (VirtualMachineCache) Get added in v0.2.5

func (c VirtualMachineCache) Get(namespace, name string) (*kubevirtv1api.VirtualMachine, error)

func (VirtualMachineCache) GetByIndex added in v0.2.5

func (c VirtualMachineCache) GetByIndex(indexName, key string) ([]*kubevirtv1api.VirtualMachine, error)

func (VirtualMachineCache) List added in v0.2.5

func (c VirtualMachineCache) List(namespace string, selector labels.Selector) ([]*kubevirtv1api.VirtualMachine, error)

type VirtualMachineClient added in v0.2.5

type VirtualMachineClient func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineClient) Create added in v0.2.5

func (VirtualMachineClient) Delete added in v0.2.5

func (VirtualMachineClient) Get added in v0.2.5

func (c VirtualMachineClient) Get(namespace, name string, options metav1.GetOptions) (*kubevirtv1api.VirtualMachine, error)

func (VirtualMachineClient) List added in v0.2.5

func (VirtualMachineClient) Patch added in v0.2.5

func (c VirtualMachineClient) Patch(_, _ string, _ types.PatchType, _ []byte, _ ...string) (result *kubevirtv1api.VirtualMachine, err error)

func (VirtualMachineClient) Update added in v0.2.5

func (VirtualMachineClient) UpdateStatus added in v0.2.5

func (VirtualMachineClient) Watch added in v0.2.5

type VlanConfigCache

type VlanConfigCache func() clientv1beta1.VlanConfigInterface

func (VlanConfigCache) AddIndexer

func (VlanConfigCache) Get

func (c VlanConfigCache) Get(name string) (*v1beta1.VlanConfig, error)

func (VlanConfigCache) GetByIndex

func (c VlanConfigCache) GetByIndex(_, _ string) ([]*v1beta1.VlanConfig, error)

func (VlanConfigCache) List

func (c VlanConfigCache) List(selector labels.Selector) ([]*v1beta1.VlanConfig, error)

Jump to

Keyboard shortcuts

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