fakeclient

package
v1.6.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPPoolCache

type IPPoolCache func(string) typenetworkv1.IPPoolInterface

func (IPPoolCache) AddIndexer

func (c IPPoolCache) AddIndexer(indexName string, indexer generic.Indexer[*networkv1.IPPool])

func (IPPoolCache) Get

func (c IPPoolCache) Get(namespace, name string) (*networkv1.IPPool, error)

func (IPPoolCache) GetByIndex

func (c IPPoolCache) GetByIndex(indexName, key string) ([]*networkv1.IPPool, error)

func (IPPoolCache) List

func (c IPPoolCache) List(namespace string, selector labels.Selector) ([]*networkv1.IPPool, error)

type IPPoolClient

type IPPoolClient func(string) typenetworkv1.IPPoolInterface

func (IPPoolClient) Create

func (IPPoolClient) Delete

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

func (IPPoolClient) Get

func (c IPPoolClient) Get(namespace, name string, options metav1.GetOptions) (*networkv1.IPPool, error)

func (IPPoolClient) List

func (c IPPoolClient) List(namespace string, opts metav1.ListOptions) (*networkv1.IPPoolList, error)

func (IPPoolClient) Patch

func (c IPPoolClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *networkv1.IPPool, err error)

func (IPPoolClient) Update

func (c IPPoolClient) Update(ipPool *networkv1.IPPool) (*networkv1.IPPool, error)

func (IPPoolClient) UpdateStatus

func (c IPPoolClient) UpdateStatus(ipPool *networkv1.IPPool) (*networkv1.IPPool, error)

func (IPPoolClient) Watch

func (c IPPoolClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

func (IPPoolClient) WithImpersonation added in v1.5.1

type NetworkAttachmentDefinitionCache

type NetworkAttachmentDefinitionCache func(string) typecniv1.NetworkAttachmentDefinitionInterface

func (NetworkAttachmentDefinitionCache) AddIndexer

func (NetworkAttachmentDefinitionCache) Get

func (NetworkAttachmentDefinitionCache) GetByIndex

func (NetworkAttachmentDefinitionCache) List

type NetworkAttachmentDefinitionClient

type NetworkAttachmentDefinitionClient func(string) typecniv1.NetworkAttachmentDefinitionInterface

func (NetworkAttachmentDefinitionClient) Create

func (NetworkAttachmentDefinitionClient) Delete

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

func (NetworkAttachmentDefinitionClient) Get

func (NetworkAttachmentDefinitionClient) List

func (NetworkAttachmentDefinitionClient) Patch

func (c NetworkAttachmentDefinitionClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *cniv1.NetworkAttachmentDefinition, err error)

func (NetworkAttachmentDefinitionClient) Update

func (NetworkAttachmentDefinitionClient) UpdateStatus added in v1.5.1

func (NetworkAttachmentDefinitionClient) Watch

type NodeCache added in v0.3.0

type NodeCache func() typecorev1.NodeInterface

func (NodeCache) AddIndexer added in v0.3.0

func (c NodeCache) AddIndexer(indexName string, indexer generic.Indexer[*corev1.Node])

func (NodeCache) Get added in v0.3.0

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

func (NodeCache) GetByIndex added in v0.3.0

func (c NodeCache) GetByIndex(indexName, key string) ([]*corev1.Node, error)

func (NodeCache) List added in v0.3.0

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

type NodeClient added in v0.3.0

type NodeClient func() typecorev1.NodeInterface

func (NodeClient) Create added in v0.3.0

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

func (NodeClient) Delete added in v0.3.0

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

func (NodeClient) Get added in v0.3.0

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

func (NodeClient) List added in v0.3.0

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

func (NodeClient) Patch added in v0.3.0

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

func (NodeClient) Update added in v0.3.0

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

func (NodeClient) UpdateStatus added in v0.3.0

func (c NodeClient) UpdateStatus(node *corev1.Node) (*corev1.Node, error)

func (NodeClient) Watch added in v0.3.0

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

func (NodeClient) WithImpersonation added in v1.5.1

type PodCache

type PodCache func(string) typecorev1.PodInterface

func (PodCache) AddIndexer

func (c PodCache) AddIndexer(indexName string, indexer generic.Indexer[*corev1.Pod])

func (PodCache) Get

func (c PodCache) Get(namespace, name string) (*corev1.Pod, error)

func (PodCache) GetByIndex

func (c PodCache) GetByIndex(indexName, key string) ([]*corev1.Pod, error)

func (PodCache) List

func (c PodCache) List(namespace string, selector labels.Selector) ([]*corev1.Pod, error)

type PodClient

type PodClient func(string) typecorev1.PodInterface

func (PodClient) Create

func (c PodClient) Create(pod *corev1.Pod) (*corev1.Pod, error)

func (PodClient) Delete

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

func (PodClient) Get

func (c PodClient) Get(namespace, name string, options metav1.GetOptions) (*corev1.Pod, error)

func (PodClient) List

func (c PodClient) List(namespace string, opts metav1.ListOptions) (*corev1.PodList, error)

func (PodClient) Patch

func (c PodClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *corev1.Pod, err error)

func (PodClient) Update

func (c PodClient) Update(pod *corev1.Pod) (*corev1.Pod, error)

func (PodClient) UpdateStatus

func (c PodClient) UpdateStatus(pod *corev1.Pod) (*corev1.Pod, error)

func (PodClient) Watch

func (c PodClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

func (PodClient) WithImpersonation added in v1.5.1

type VirtualMachineCache added in v1.6.0

type VirtualMachineCache func(string) typekubevirtv1.VirtualMachineInterface

func (VirtualMachineCache) AddIndexer added in v1.6.0

func (c VirtualMachineCache) AddIndexer(indexName string, indexer generic.Indexer[*kubevirtv1.VirtualMachine])

func (VirtualMachineCache) Get added in v1.6.0

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

func (VirtualMachineCache) GetByIndex added in v1.6.0

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

func (VirtualMachineCache) List added in v1.6.0

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

type VirtualMachineClient added in v1.6.0

type VirtualMachineClient func(string) typekubevirtv1.VirtualMachineInterface

func (VirtualMachineClient) Create added in v1.6.0

func (VirtualMachineClient) Delete added in v1.6.0

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

func (VirtualMachineClient) Get added in v1.6.0

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

func (VirtualMachineClient) List added in v1.6.0

func (VirtualMachineClient) Patch added in v1.6.0

func (c VirtualMachineClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *kubevirtv1.VirtualMachine, err error)

func (VirtualMachineClient) Update added in v1.6.0

func (VirtualMachineClient) UpdateStatus added in v1.6.0

func (VirtualMachineClient) Watch added in v1.6.0

func (c VirtualMachineClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

func (VirtualMachineClient) WithImpersonation added in v1.6.0

type VirtualMachineNetworkConfigCache

type VirtualMachineNetworkConfigCache func(string) typenetworkv1.VirtualMachineNetworkConfigInterface

func (VirtualMachineNetworkConfigCache) AddIndexer

func (VirtualMachineNetworkConfigCache) Get

func (VirtualMachineNetworkConfigCache) GetByIndex

func (VirtualMachineNetworkConfigCache) List

type VirtualMachineNetworkConfigClient

type VirtualMachineNetworkConfigClient func(string) typenetworkv1.VirtualMachineNetworkConfigInterface

func (VirtualMachineNetworkConfigClient) Create

func (VirtualMachineNetworkConfigClient) Delete

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

func (VirtualMachineNetworkConfigClient) Get

func (VirtualMachineNetworkConfigClient) List

func (VirtualMachineNetworkConfigClient) Patch

func (c VirtualMachineNetworkConfigClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *networkv1.VirtualMachineNetworkConfig, err error)

func (VirtualMachineNetworkConfigClient) Update

func (VirtualMachineNetworkConfigClient) UpdateStatus

func (VirtualMachineNetworkConfigClient) Watch

Jump to

Keyboard shortcuts

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