fakeclients

package
v0.0.0-...-0f6798d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRole

type ClusterRole func() rbacv1type.ClusterRoleInterface

func (ClusterRole) Create

func (ClusterRole) Delete

func (c ClusterRole) Delete(name string, opts *metav1.DeleteOptions) error

func (ClusterRole) Get

func (c ClusterRole) Get(name string, options metav1.GetOptions) (*rbacv1.ClusterRole, error)

func (ClusterRole) List

func (ClusterRole) Patch

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

func (ClusterRole) Update

func (ClusterRole) UpdateStatus

func (c ClusterRole) UpdateStatus(cr *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

func (ClusterRole) Watch

type ClusterRoleCache

type ClusterRoleCache func() rbacv1type.ClusterRoleInterface

func (ClusterRoleCache) AddIndexer

func (ClusterRoleCache) Get

func (ClusterRoleCache) GetByIndex

func (c ClusterRoleCache) GetByIndex(_ string, _ string) ([]*rbacv1.ClusterRole, error)

func (ClusterRoleCache) List

func (c ClusterRoleCache) List(selector labels.Selector) ([]*rbacv1.ClusterRole, error)

type GlobalRole

type GlobalRole func() ctlmgmtv1.GlobalRoleInterface

func (GlobalRole) Create

func (g GlobalRole) Create(gr *mgmtv1.GlobalRole) (*mgmtv1.GlobalRole, error)

func (GlobalRole) Delete

func (g GlobalRole) Delete(name string, opts *metav1.DeleteOptions) error

func (GlobalRole) Get

func (g GlobalRole) Get(name string, options metav1.GetOptions) (*mgmtv1.GlobalRole, error)

func (GlobalRole) List

func (GlobalRole) Patch

func (g GlobalRole) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *mgmtv1.GlobalRole, err error)

func (GlobalRole) Update

func (g GlobalRole) Update(gr *mgmtv1.GlobalRole) (*mgmtv1.GlobalRole, error)

func (GlobalRole) UpdateStatus

func (g GlobalRole) UpdateStatus(gr *mgmtv1.GlobalRole) (*mgmtv1.GlobalRole, error)

func (GlobalRole) Watch

func (g GlobalRole) Watch(opts metav1.ListOptions) (watch.Interface, error)

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 PlanCache

type PlanCache func(string) ctlupgradev1.PlanInterface

func (PlanCache) AddIndexer

func (u PlanCache) AddIndexer(_ string, _ generic.Indexer[*upgradev1.Plan])

func (PlanCache) Get

func (u PlanCache) Get(namespace string, name string) (*upgradev1.Plan, error)

func (PlanCache) GetByIndex

func (u PlanCache) GetByIndex(_ string, _ string) ([]*upgradev1.Plan, error)

func (PlanCache) List

func (u PlanCache) List(namespace string, selector labels.Selector) ([]*upgradev1.Plan, error)

type PlanClient

type PlanClient func(string) ctlupgradev1.PlanInterface

func (PlanClient) Create

func (n PlanClient) Create(plan *upgradev1.Plan) (*upgradev1.Plan, error)

func (PlanClient) Delete

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

func (PlanClient) Get

func (n PlanClient) Get(namespace, name string, options metav1.GetOptions) (*upgradev1.Plan, error)

func (PlanClient) List

func (n PlanClient) List(namespace string, opts metav1.ListOptions) (*upgradev1.PlanList, error)

func (PlanClient) Patch

func (n PlanClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*upgradev1.Plan, error)

func (PlanClient) Update

func (n PlanClient) Update(plan *upgradev1.Plan) (*upgradev1.Plan, error)

func (PlanClient) UpdateStatus

func (n PlanClient) UpdateStatus(plan *upgradev1.Plan) (*upgradev1.Plan, error)

func (PlanClient) Watch

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

type PodCache

type PodCache func(string) corev1type.PodInterface

func (PodCache) AddIndexer

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

func (PodCache) Get

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

func (PodCache) GetByIndex

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

func (PodCache) List

func (u 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 RoleCache

type RoleCache func(string) rbacv1type.RoleInterface

func (RoleCache) AddIndexer

func (r RoleCache) AddIndexer(_ string, _ generic.Indexer[*rbacv1.Role])

func (RoleCache) Get

func (r RoleCache) Get(namespace string, name string) (*rbacv1.Role, error)

func (RoleCache) GetByIndex

func (r RoleCache) GetByIndex(_ string, _ string) ([]*rbacv1.Role, error)

func (RoleCache) List

func (r RoleCache) List(namespace string, selector labels.Selector) ([]*rbacv1.Role, error)

type RoleClient

type RoleClient func(string) rbacv1type.RoleInterface

func (RoleClient) Create

func (p RoleClient) Create(pod *rbacv1.Role) (*rbacv1.Role, error)

func (RoleClient) Delete

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

func (RoleClient) Get

func (p RoleClient) Get(namespace, name string, options metav1.GetOptions) (*rbacv1.Role, error)

func (RoleClient) List

func (p RoleClient) List(namespace string, opts metav1.ListOptions) (*rbacv1.RoleList, error)

func (RoleClient) Patch

func (p RoleClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *rbacv1.Role, err error)

func (RoleClient) Update

func (p RoleClient) Update(pod *rbacv1.Role) (*rbacv1.Role, error)

func (RoleClient) UpdateStatus

func (p RoleClient) UpdateStatus(pod *rbacv1.Role) (*rbacv1.Role, error)

func (RoleClient) Watch

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

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)

type UpgradeCache

type UpgradeCache func(string) ctlllmosv1.UpgradeInterface

func (UpgradeCache) AddIndexer

func (u UpgradeCache) AddIndexer(_ string, _ generic.Indexer[*llmosv1.Upgrade])

func (UpgradeCache) Get

func (u UpgradeCache) Get(namespace string, name string) (*llmosv1.Upgrade, error)

func (UpgradeCache) GetByIndex

func (u UpgradeCache) GetByIndex(_ string, _ string) ([]*llmosv1.Upgrade, error)

func (UpgradeCache) List

func (u UpgradeCache) List(namespace string, selector labels.Selector) ([]*llmosv1.Upgrade, error)

type UpgradeClient

type UpgradeClient func(string) ctlllmosv1.UpgradeInterface

func (UpgradeClient) Create

func (n UpgradeClient) Create(upgrade *llmosv1.Upgrade) (*llmosv1.Upgrade, error)

func (UpgradeClient) Delete

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

func (UpgradeClient) Get

func (n UpgradeClient) Get(namespace, name string, options metav1.GetOptions) (*llmosv1.Upgrade, error)

func (UpgradeClient) List

func (n UpgradeClient) List(namespace string, opts metav1.ListOptions) (*llmosv1.UpgradeList, error)

func (UpgradeClient) Patch

func (n UpgradeClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*llmosv1.Upgrade, error)

func (UpgradeClient) Update

func (n UpgradeClient) Update(upgrade *llmosv1.Upgrade) (*llmosv1.Upgrade, error)

func (UpgradeClient) UpdateStatus

func (n UpgradeClient) UpdateStatus(upgrade *llmosv1.Upgrade) (*llmosv1.Upgrade, error)

func (UpgradeClient) Watch

func (n UpgradeClient) 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