fakeclients

package
v0.0.0-...-d0cda72 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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotebookClient

type NotebookClient func(string) ctlmlv1.NotebookInterface

func (NotebookClient) Create

func (n NotebookClient) Create(notebook *mlv1.Notebook) (*mlv1.Notebook, error)

func (NotebookClient) Delete

func (n NotebookClient) Delete(namespace, name string, options *metav1.DeleteOptions) error

func (NotebookClient) Get

func (n NotebookClient) Get(namespace, name string, options metav1.GetOptions) (*mlv1.Notebook, error)

func (NotebookClient) List

func (n NotebookClient) List(namespace string, opts metav1.ListOptions) (*mlv1.NotebookList, error)

func (NotebookClient) Patch

func (n NotebookClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*mlv1.Notebook, error)

func (NotebookClient) Update

func (n NotebookClient) Update(notebook *mlv1.Notebook) (*mlv1.Notebook, error)

func (NotebookClient) UpdateStatus

func (n NotebookClient) UpdateStatus(notebook *mlv1.Notebook) (*mlv1.Notebook, error)

func (NotebookClient) Watch

func (n NotebookClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

type PodCache

type PodCache func(string) corev1type.PodInterface

func (PodCache) AddIndexer

func (p PodCache) AddIndexer(_ string, _ generic.Indexer[*v1.Pod])

func (PodCache) Get

func (p PodCache) Get(namespace string, name string) (*v1.Pod, error)

func (PodCache) GetByIndex

func (p PodCache) GetByIndex(_ string, _ string) ([]*v1.Pod, error)

func (PodCache) List

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

type PodClient

type PodClient func(string) corev1type.PodInterface

func (PodClient) Create

func (p PodClient) Create(pod *v1.Pod) (*v1.Pod, error)

func (PodClient) Delete

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

func (PodClient) Get

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

func (PodClient) List

func (p PodClient) List(namespace string, opts metav1.ListOptions) (*v1.PodList, error)

func (PodClient) Patch

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

func (PodClient) Update

func (p PodClient) Update(pod *v1.Pod) (*v1.Pod, error)

func (PodClient) UpdateStatus

func (p PodClient) UpdateStatus(pod *v1.Pod) (*v1.Pod, error)

func (PodClient) Watch

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

func (PodClient) WithImpersonation

type QueueCache

type QueueCache func() ctlschedulv1.QueueInterface

func (QueueCache) AddIndexer

func (q QueueCache) AddIndexer(_ string, _ generic.Indexer[*scheduling.Queue])

func (QueueCache) Get

func (q QueueCache) Get(name string) (*scheduling.Queue, error)

func (QueueCache) GetByIndex

func (q QueueCache) GetByIndex(_, _ string) ([]*scheduling.Queue, error)

func (QueueCache) List

func (q QueueCache) List(selector labels.Selector) ([]*scheduling.Queue, error)

type QueueClient

type QueueClient func() ctlschedulv1.QueueInterface

func (QueueClient) Create

func (q QueueClient) Create(queue *scheduling.Queue) (*scheduling.Queue, error)

func (QueueClient) Delete

func (q QueueClient) Delete(name string, options *metav1.DeleteOptions) error

func (QueueClient) Get

func (q QueueClient) Get(name string, options metav1.GetOptions) (*scheduling.Queue, error)

func (QueueClient) List

func (QueueClient) Patch

func (q QueueClient) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *scheduling.Queue, err error)

func (QueueClient) Update

func (q QueueClient) Update(queue *scheduling.Queue) (*scheduling.Queue, error)

func (QueueClient) UpdateStatus

func (q QueueClient) UpdateStatus(queue *scheduling.Queue) (*scheduling.Queue, error)

func (QueueClient) Watch

type ServiceCache

type ServiceCache func(string) typecorev1.ServiceInterface

func (ServiceCache) AddIndexer

func (p ServiceCache) AddIndexer(_ string, _ generic.Indexer[*v1.Service])

func (ServiceCache) Get

func (p ServiceCache) Get(namespace string, name string) (*v1.Service, error)

func (ServiceCache) GetByIndex

func (p ServiceCache) GetByIndex(_ string, _ string) ([]*v1.Service, error)

func (ServiceCache) List

func (p ServiceCache) List(namespace string, selector labels.Selector) ([]*v1.Service, error)

type ServiceClient

type ServiceClient func(string) typecorev1.ServiceInterface

func (ServiceClient) Create

func (n ServiceClient) Create(service *v1.Service) (*v1.Service, error)

func (ServiceClient) Delete

func (n ServiceClient) Delete(namespace, name string, options *metav1.DeleteOptions) error

func (ServiceClient) Get

func (n ServiceClient) Get(namespace, name string, options metav1.GetOptions) (*v1.Service, error)

func (ServiceClient) List

func (n ServiceClient) List(namespace string, opts metav1.ListOptions) (*v1.ServiceList, error)

func (ServiceClient) Patch

func (n ServiceClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*v1.Service, error)

func (ServiceClient) Update

func (n ServiceClient) Update(service *v1.Service) (*v1.Service, error)

func (ServiceClient) UpdateStatus

func (n ServiceClient) UpdateStatus(service *v1.Service) (*v1.Service, error)

func (ServiceClient) Watch

func (n ServiceClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

func (ServiceClient) WithImpersonation

type StatefulSetCache

type StatefulSetCache func(string) typeappsv1.StatefulSetInterface

func (StatefulSetCache) AddIndexer

func (StatefulSetCache) Get

func (p StatefulSetCache) Get(namespace string, name string) (*appsv1.StatefulSet, error)

func (StatefulSetCache) GetByIndex

func (p StatefulSetCache) GetByIndex(_ string, _ string) ([]*appsv1.StatefulSet, error)

func (StatefulSetCache) List

func (p StatefulSetCache) List(namespace string, selector labels.Selector) ([]*appsv1.StatefulSet, error)

type StatefulSetClient

type StatefulSetClient func(string) typeappsv1.StatefulSetInterface

func (StatefulSetClient) Create

func (StatefulSetClient) Delete

func (n StatefulSetClient) Delete(namespace, name string, options *metav1.DeleteOptions) error

func (StatefulSetClient) Get

func (n StatefulSetClient) Get(namespace, name string, options metav1.GetOptions) (*appsv1.StatefulSet, error)

func (StatefulSetClient) List

func (StatefulSetClient) Patch

func (n StatefulSetClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*appsv1.StatefulSet, error)

func (StatefulSetClient) Update

func (StatefulSetClient) UpdateStatus

func (n StatefulSetClient) UpdateStatus(ss *appsv1.StatefulSet) (*appsv1.StatefulSet, error)

func (StatefulSetClient) Watch

func (n StatefulSetClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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