fakeclients

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 21 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 DeploymentCache

type DeploymentCache func(string) appsv1type.DeploymentInterface

func (DeploymentCache) AddIndexer

func (d DeploymentCache) AddIndexer(indexName string, indexer generic.Indexer[*appsv1.Deployment])

func (DeploymentCache) Get

func (d DeploymentCache) Get(namespace, name string) (*appsv1.Deployment, error)

func (DeploymentCache) GetByIndex

func (d DeploymentCache) GetByIndex(indexName, key string) ([]*appsv1.Deployment, error)

func (DeploymentCache) List

func (d DeploymentCache) List(namespace string, selector labels.Selector) ([]*appsv1.Deployment, error)

type DeploymentClient

type DeploymentClient func(string) appsv1type.DeploymentInterface

func (DeploymentClient) Create

func (d DeploymentClient) Create(deployment *appsv1.Deployment) (*appsv1.Deployment, error)

func (DeploymentClient) Delete

func (d DeploymentClient) Delete(_, _ string, _ *metav1.DeleteOptions) error

func (DeploymentClient) Get

func (d DeploymentClient) Get(namespace, name string, options metav1.GetOptions) (*appsv1.Deployment, error)

func (DeploymentClient) List

func (DeploymentClient) Patch

func (d DeploymentClient) Patch(_, _ string, _ types.PatchType, _ []byte, _ ...string) (result *appsv1.Deployment, err error)

func (DeploymentClient) Update

func (d DeploymentClient) Update(deployment *appsv1.Deployment) (*appsv1.Deployment, error)

func (DeploymentClient) UpdateStatus

func (DeploymentClient) Watch

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 HelmChartCache

type HelmChartCache func(string) typedhelmv1.HelmChartInterface

func (HelmChartCache) AddIndexer

func (c HelmChartCache) AddIndexer(_ string, _ generic.Indexer[*helmv1.HelmChart])

func (HelmChartCache) Get

func (c HelmChartCache) Get(namespace string, name string) (*helmv1.HelmChart, error)

func (HelmChartCache) GetByIndex

func (c HelmChartCache) GetByIndex(_ string, _ string) ([]*helmv1.HelmChart, error)

func (HelmChartCache) List

func (c HelmChartCache) List(namespace string, selector labels.Selector) ([]*helmv1.HelmChart, error)

type HelmChartClient

type HelmChartClient func(string) typedhelmv1.HelmChartInterface

func (HelmChartClient) Create

func (c HelmChartClient) Create(chart *helmv1.HelmChart) (*helmv1.HelmChart, error)

func (HelmChartClient) Delete

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

func (HelmChartClient) Get

func (c HelmChartClient) Get(namespace, name string, options metav1.GetOptions) (*helmv1.HelmChart, error)

func (HelmChartClient) List

func (c HelmChartClient) List(namespace string, opts metav1.ListOptions) (*helmv1.HelmChartList, error)

func (HelmChartClient) Patch

func (c HelmChartClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (*helmv1.HelmChart, error)

func (HelmChartClient) Update

func (c HelmChartClient) Update(plan *helmv1.HelmChart) (*helmv1.HelmChart, error)

func (HelmChartClient) UpdateStatus

func (c HelmChartClient) UpdateStatus(plan *helmv1.HelmChart) (*helmv1.HelmChart, error)

func (HelmChartClient) Watch

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

type ManagedAddonCache

type ManagedAddonCache func(string) typedmgmtv1.ManagedAddonInterface

func (ManagedAddonCache) AddIndexer

func (m ManagedAddonCache) AddIndexer(indexName string, indexer generic.Indexer[*mgmtv1.ManagedAddon])

func (ManagedAddonCache) Get

func (m ManagedAddonCache) Get(namespace, name string) (*mgmtv1.ManagedAddon, error)

func (ManagedAddonCache) GetByIndex

func (m ManagedAddonCache) GetByIndex(indexName, key string) ([]*mgmtv1.ManagedAddon, error)

func (ManagedAddonCache) List

func (m ManagedAddonCache) List(namespace string, selector labels.Selector) ([]*mgmtv1.ManagedAddon, error)

type ManagedAddonClient

type ManagedAddonClient func(string) typedmgmtv1.ManagedAddonInterface

func (ManagedAddonClient) Create

func (ManagedAddonClient) Delete

func (m ManagedAddonClient) Delete(namespace, name string, options *metav1.DeleteOptions) error

func (ManagedAddonClient) Get

func (m ManagedAddonClient) Get(namespace, name string, options metav1.GetOptions) (*mgmtv1.ManagedAddon, error)

func (ManagedAddonClient) List

func (ManagedAddonClient) Patch

func (m ManagedAddonClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *mgmtv1.ManagedAddon, err error)

func (ManagedAddonClient) Update

func (ManagedAddonClient) UpdateStatus

func (m ManagedAddonClient) UpdateStatus(addon *mgmtv1.ManagedAddon) (*mgmtv1.ManagedAddon, error)

func (ManagedAddonClient) Watch

func (m ManagedAddonClient) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)

func (ManagedAddonClient) WithImpersonation

type NodeCache

type NodeCache func() corev1type.NodeInterface

func (NodeCache) AddIndexer

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

func (NodeCache) Get

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

func (NodeCache) GetByIndex

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

func (NodeCache) List

func (c NodeCache) List(selector labels.Selector) ([]*v1.Node, 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() ctlllmosv1.UpgradeInterface

func (UpgradeCache) AddIndexer

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

func (UpgradeCache) Get

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

func (UpgradeCache) GetByIndex

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

func (UpgradeCache) List

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

type UpgradeClient

type UpgradeClient func() ctlllmosv1.UpgradeInterface

func (UpgradeClient) Create

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

func (UpgradeClient) Delete

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

func (UpgradeClient) Get

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

func (UpgradeClient) List

func (UpgradeClient) Patch

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

Jump to

Keyboard shortcuts

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