fakeclients

package
v1.8.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterNetworkCache

type ClusterNetworkCache func() networktype.ClusterNetworkInterface

func (ClusterNetworkCache) AddIndexer

func (ClusterNetworkCache) Get

func (ClusterNetworkCache) GetByIndex

func (c ClusterNetworkCache) GetByIndex(_, _ string) ([]*v1beta1.ClusterNetwork, error)

func (ClusterNetworkCache) List

type ClusterNetworkClient

type ClusterNetworkClient func() networktype.ClusterNetworkInterface

func (ClusterNetworkClient) Create

func (ClusterNetworkClient) Delete

func (c ClusterNetworkClient) Delete(name string, options *metav1.DeleteOptions) error

func (ClusterNetworkClient) Get

func (ClusterNetworkClient) List

func (ClusterNetworkClient) Patch

func (c ClusterNetworkClient) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.ClusterNetwork, err error)

func (ClusterNetworkClient) Update

func (ClusterNetworkClient) UpdateStatus

func (ClusterNetworkClient) Watch

type HostNetworkConfigCache added in v1.8.0

type HostNetworkConfigCache func() networktype.HostNetworkConfigInterface

func (HostNetworkConfigCache) AddIndexer added in v1.8.0

func (HostNetworkConfigCache) Get added in v1.8.0

func (HostNetworkConfigCache) GetByIndex added in v1.8.0

func (c HostNetworkConfigCache) GetByIndex(_, _ string) ([]*v1beta1.HostNetworkConfig, error)

func (HostNetworkConfigCache) List added in v1.8.0

type HostNetworkConfigClient added in v1.8.0

type HostNetworkConfigClient func() networktype.HostNetworkConfigInterface

func (HostNetworkConfigClient) Create added in v1.8.0

func (HostNetworkConfigClient) Delete added in v1.8.0

func (c HostNetworkConfigClient) Delete(name string, options *metav1.DeleteOptions) error

func (HostNetworkConfigClient) Get added in v1.8.0

func (HostNetworkConfigClient) List added in v1.8.0

func (HostNetworkConfigClient) Patch added in v1.8.0

func (c HostNetworkConfigClient) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.HostNetworkConfig, err error)

func (HostNetworkConfigClient) Update added in v1.8.0

func (HostNetworkConfigClient) UpdateStatus added in v1.8.0

func (HostNetworkConfigClient) Watch added in v1.8.0

type NetworkAttachmentDefinitionCache added in v1.7.0

type NetworkAttachmentDefinitionCache func(namespace string) cnitype.NetworkAttachmentDefinitionInterface

func (NetworkAttachmentDefinitionCache) AddIndexer added in v1.7.0

func (NetworkAttachmentDefinitionCache) Get added in v1.7.0

func (NetworkAttachmentDefinitionCache) GetByIndex added in v1.7.0

func (NetworkAttachmentDefinitionCache) List added in v1.7.0

type NodeCache added in v1.8.0

type NodeCache func() nodetype.NodeInterface

func (NodeCache) AddIndexer added in v1.8.0

func (c NodeCache) AddIndexer(_ string, _ generic.Indexer[*v1.Node])

func (NodeCache) Get added in v1.8.0

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

func (NodeCache) GetByIndex added in v1.8.0

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

func (NodeCache) List added in v1.8.0

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

type NodeClient added in v1.8.0

type NodeClient func() nodetype.NodeInterface

func (NodeClient) Create added in v1.8.0

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

func (NodeClient) Delete added in v1.8.0

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

func (NodeClient) Get added in v1.8.0

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

func (NodeClient) List added in v1.8.0

func (c NodeClient) List(opts metav1.ListOptions) (*v1.NodeList, error)

func (NodeClient) Patch added in v1.8.0

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

func (NodeClient) Update added in v1.8.0

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

func (NodeClient) UpdateStatus added in v1.8.0

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

func (NodeClient) Watch added in v1.8.0

func (c NodeClient) Watch(opts metav1.ListOptions) (watch.Interface, error)

type SubnetCache

type SubnetCache func() kubeovnType.SubnetInterface

func (SubnetCache) AddIndexer

func (v SubnetCache) AddIndexer(_ string, _ generic.Indexer[*kubeovnv1.Subnet])

func (SubnetCache) Get

func (v SubnetCache) Get(name string) (*kubeovnv1.Subnet, error)

func (SubnetCache) GetByIndex

func (v SubnetCache) GetByIndex(_, _ string) ([]*kubeovnv1.Subnet, error)

func (SubnetCache) List

func (v SubnetCache) List(selector labels.Selector) ([]*kubeovnv1.Subnet, error)

type SubnetClient

type SubnetClient func() kubeovnType.SubnetInterface

type VirtualMachineCache

type VirtualMachineCache func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineCache) AddIndexer

support VMByNetworkIndex for test

func (VirtualMachineCache) Get

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

func (VirtualMachineCache) GetByIndex

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

support VMByNetworkIndex for test

func (VirtualMachineCache) List

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

type VirtualMachineClient

type VirtualMachineClient func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineClient) Create

func (VirtualMachineClient) Delete

func (VirtualMachineClient) Get

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

func (VirtualMachineClient) List

func (VirtualMachineClient) Patch

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

func (VirtualMachineClient) Update

func (VirtualMachineClient) UpdateStatus

func (VirtualMachineClient) Watch

type VirtualMachineInstanceCache

type VirtualMachineInstanceCache func(string) kubevirtv1.VirtualMachineInstanceInterface

func (VirtualMachineInstanceCache) AddIndexer

support VMByNetworkIndex for test

func (VirtualMachineInstanceCache) Get

func (VirtualMachineInstanceCache) GetByIndex

support VMByNetworkIndex for test

func (VirtualMachineInstanceCache) List

type VirtualMachineInstanceClient

type VirtualMachineInstanceClient func(string) kubevirtv1.VirtualMachineInstanceInterface

func (VirtualMachineInstanceClient) Delete

func (VirtualMachineInstanceClient) Get

func (VirtualMachineInstanceClient) List

func (VirtualMachineInstanceClient) Patch

func (VirtualMachineInstanceClient) Watch

type VlanConfigCache

type VlanConfigCache func() networktype.VlanConfigInterface

func (VlanConfigCache) AddIndexer

func (c VlanConfigCache) AddIndexer(_ string, _ generic.Indexer[*v1beta1.VlanConfig])

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)

type VlanConfigClient

type VlanConfigClient func() networktype.VlanConfigInterface

func (VlanConfigClient) Create

func (VlanConfigClient) Delete

func (c VlanConfigClient) Delete(name string, options *metav1.DeleteOptions) error

func (VlanConfigClient) Get

func (c VlanConfigClient) Get(name string, options metav1.GetOptions) (*v1beta1.VlanConfig, error)

func (VlanConfigClient) List

func (VlanConfigClient) Patch

func (c VlanConfigClient) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.VlanConfig, err error)

func (VlanConfigClient) Update

func (VlanConfigClient) UpdateStatus

func (c VlanConfigClient) UpdateStatus(_ *v1beta1.VlanConfig) (*v1beta1.VlanConfig, error)

func (VlanConfigClient) Watch

type VlanStatusCache

type VlanStatusCache func() networktype.VlanStatusInterface

func (VlanStatusCache) AddIndexer

func (c VlanStatusCache) AddIndexer(_ string, _ generic.Indexer[*v1beta1.VlanStatus])

func (VlanStatusCache) Get

func (c VlanStatusCache) Get(name string) (*v1beta1.VlanStatus, error)

func (VlanStatusCache) GetByIndex

func (c VlanStatusCache) GetByIndex(_, _ string) ([]*v1beta1.VlanStatus, error)

func (VlanStatusCache) List

func (c VlanStatusCache) List(selector labels.Selector) ([]*v1beta1.VlanStatus, error)

type VlanStatusClient

type VlanStatusClient func() networktype.VlanStatusInterface

func (VlanStatusClient) Create

func (VlanStatusClient) Delete

func (c VlanStatusClient) Delete(name string, options *metav1.DeleteOptions) error

func (VlanStatusClient) Get

func (c VlanStatusClient) Get(name string, options metav1.GetOptions) (*v1beta1.VlanStatus, error)

func (VlanStatusClient) List

func (VlanStatusClient) Patch

func (c VlanStatusClient) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.VlanStatus, err error)

func (VlanStatusClient) Update

func (VlanStatusClient) UpdateStatus

func (c VlanStatusClient) UpdateStatus(_ *v1beta1.VlanStatus) (*v1beta1.VlanStatus, error)

func (VlanStatusClient) Watch

type VpcCache

type VpcCache func() kubeovnType.VpcInterface

func (VpcCache) AddIndexer

func (v VpcCache) AddIndexer(_ string, _ generic.Indexer[*kubeovnv1.Vpc])

func (VpcCache) Get

func (v VpcCache) Get(name string) (*kubeovnv1.Vpc, error)

func (VpcCache) GetByIndex

func (v VpcCache) GetByIndex(_, _ string) ([]*kubeovnv1.Vpc, error)

func (VpcCache) List

func (v VpcCache) List(selector labels.Selector) ([]*kubeovnv1.Vpc, error)

type VpcClient

type VpcClient func() kubeovnType.VpcInterface

Jump to

Keyboard shortcuts

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