fakeclient

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 14 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 ctlnetworkv1.IPPoolIndexer)

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)

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) 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 ctlcorev1.NodeIndexer)

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)

type PodCache

type PodCache func(string) typecorev1.PodInterface

func (PodCache) AddIndexer

func (c PodCache) AddIndexer(indexName string, indexer ctlcorev1.PodIndexer)

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)

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) 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