fakeclients

package
v0.0.2-pre Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigmapCache

type ConfigmapCache func(namespace string) corev1type.ConfigMapInterface

func (ConfigmapCache) AddIndexer

func (c ConfigmapCache) AddIndexer(indexName string, indexer ctlcorev1.ConfigMapIndexer)

func (ConfigmapCache) Get

func (c ConfigmapCache) Get(namespace, name string) (*v1.ConfigMap, error)

func (ConfigmapCache) GetByIndex

func (c ConfigmapCache) GetByIndex(indexName, key string) ([]*v1.ConfigMap, error)

func (ConfigmapCache) List

func (c ConfigmapCache) List(namespace string, selector labels.Selector) ([]*v1.ConfigMap, error)

type ConfigmapClient

type ConfigmapClient func(namespace string) corev1type.ConfigMapInterface

func (ConfigmapClient) Create

func (c ConfigmapClient) Create(configMap *v1.ConfigMap) (*v1.ConfigMap, error)

func (ConfigmapClient) Delete

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

func (ConfigmapClient) Get

func (c ConfigmapClient) Get(namespace, name string, opts metav1.GetOptions) (*v1.ConfigMap, error)

func (ConfigmapClient) List

func (c ConfigmapClient) List(namespace string, opts metav1.ListOptions) (*v1.ConfigMapList, error)

func (ConfigmapClient) Patch

func (c ConfigmapClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ConfigMap, err error)

func (ConfigmapClient) Update

func (c ConfigmapClient) Update(configMap *v1.ConfigMap) (*v1.ConfigMap, error)

func (ConfigmapClient) Watch

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

type HarvesterSettingCache

type HarvesterSettingCache func() harvestertype.SettingInterface

func (HarvesterSettingCache) AddIndexer

func (c HarvesterSettingCache) AddIndexer(indexName string, indexer harvesterv1ctl.SettingIndexer)

func (HarvesterSettingCache) Get

func (HarvesterSettingCache) GetByIndex

func (c HarvesterSettingCache) GetByIndex(indexName, key string) ([]*v1beta1.Setting, error)

func (HarvesterSettingCache) List

func (c HarvesterSettingCache) List(selector labels.Selector) ([]*v1beta1.Setting, error)

type HarvesterSettingClient

type HarvesterSettingClient func() harvestertype.SettingInterface

func (HarvesterSettingClient) Create

func (HarvesterSettingClient) Delete

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

func (HarvesterSettingClient) Get

func (HarvesterSettingClient) List

func (HarvesterSettingClient) Patch

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

func (HarvesterSettingClient) Update

func (HarvesterSettingClient) UpdateStatus

func (c HarvesterSettingClient) UpdateStatus(s *v1beta1.Setting) (*v1beta1.Setting, error)

func (HarvesterSettingClient) Watch

type JobClient

type JobClient func(string) batchv1type.JobInterface

func (JobClient) Create

func (c JobClient) Create(*batchv1.Job) (*batchv1.Job, error)

func (JobClient) Delete

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

func (JobClient) Get

func (c JobClient) Get(namespace, name string, options metav1.GetOptions) (*batchv1.Job, error)

func (JobClient) List

func (c JobClient) List(namespace string, opts metav1.ListOptions) (*batchv1.Job, error)

func (JobClient) Patch

func (c JobClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *batchv1.Job, err error)

func (JobClient) Update

func (c JobClient) Update(job *batchv1.Job) (*batchv1.Job, error)

func (JobClient) UpdateStatus

func (c JobClient) UpdateStatus(*batchv1.Job) (*batchv1.Job, error)

func (JobClient) Watch

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

type LonghornSettingCache

type LonghornSettingCache func(string) lhtype.SettingInterface

func (LonghornSettingCache) AddIndexer

func (c LonghornSettingCache) AddIndexer(indexName string, indexer longhornv1ctl.SettingIndexer)

func (LonghornSettingCache) Get

func (c LonghornSettingCache) Get(namespace, name string) (*longhornv1.Setting, error)

func (LonghornSettingCache) GetByIndex

func (c LonghornSettingCache) GetByIndex(indexName, key string) ([]*longhornv1.Setting, error)

func (LonghornSettingCache) List

func (c LonghornSettingCache) List(namespace string, selector labels.Selector) ([]*longhornv1.Setting, error)

type LonghornSettingClient

type LonghornSettingClient func(string) lhtype.SettingInterface

func (LonghornSettingClient) Create

func (LonghornSettingClient) Delete

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

func (LonghornSettingClient) Get

func (c LonghornSettingClient) Get(namespace, name string, options metav1.GetOptions) (*longhornv1.Setting, error)

func (LonghornSettingClient) List

func (LonghornSettingClient) Patch

func (c LonghornSettingClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *longhornv1.Setting, err error)

func (LonghornSettingClient) Update

func (LonghornSettingClient) UpdateStatus

func (c LonghornSettingClient) UpdateStatus(setting *longhornv1.Setting) (*longhornv1.Setting, error)

func (LonghornSettingClient) Watch

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

type NodeCache

type NodeCache func() corev1type.NodeInterface

func (NodeCache) AddIndexer

func (c NodeCache) AddIndexer(indexName string, indexer ctlcorev1.NodeIndexer)

func (NodeCache) Get

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

func (NodeCache) GetByIndex

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

func (NodeCache) List

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

type PersistentVolumeClaimCache

type PersistentVolumeClaimCache func(string) v1.PersistentVolumeClaimInterface

func (PersistentVolumeClaimCache) AddIndexer

func (c PersistentVolumeClaimCache) AddIndexer(indexName string, indexer ctlv1.PersistentVolumeClaimIndexer)

func (PersistentVolumeClaimCache) Get

func (PersistentVolumeClaimCache) GetByIndex

func (c PersistentVolumeClaimCache) GetByIndex(indexName, key string) ([]*corev1.PersistentVolumeClaim, error)

func (PersistentVolumeClaimCache) List

type PersistentVolumeClaimClient

type PersistentVolumeClaimClient func(string) v1.PersistentVolumeClaimInterface

func (PersistentVolumeClaimClient) Create

func (PersistentVolumeClaimClient) Delete

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

func (PersistentVolumeClaimClient) Get

func (PersistentVolumeClaimClient) List

func (PersistentVolumeClaimClient) Patch

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

func (PersistentVolumeClaimClient) Update

func (PersistentVolumeClaimClient) UpdateStatus

func (PersistentVolumeClaimClient) Watch

type PlanCache

type PlanCache func(string) upgradev1.PlanInterface

func (PlanCache) AddIndexer

func (c PlanCache) AddIndexer(indexName string, indexer upgradectlv1.PlanIndexer)

func (PlanCache) Get

func (c PlanCache) Get(namespace, name string) (*upgradeapiv1.Plan, error)

func (PlanCache) GetByIndex

func (c PlanCache) GetByIndex(indexName, key string) ([]*upgradeapiv1.Plan, error)

func (PlanCache) List

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

type PlanClient

type PlanClient func(string) upgradev1.PlanInterface

func (PlanClient) Create

func (c PlanClient) Create(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (PlanClient) Delete

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

func (PlanClient) Get

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

func (PlanClient) List

func (c PlanClient) List(namespace string, opts metav1.ListOptions) (*upgradeapiv1.PlanList, error)

func (PlanClient) Patch

func (c PlanClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *upgradeapiv1.Plan, err error)

func (PlanClient) Update

func (c PlanClient) Update(plan *upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (PlanClient) UpdateStatus

func (c PlanClient) UpdateStatus(*upgradeapiv1.Plan) (*upgradeapiv1.Plan, error)

func (PlanClient) Watch

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

type UpgradeCache

type UpgradeCache func(string) harv1type.UpgradeInterface

func (UpgradeCache) AddIndexer

func (c UpgradeCache) AddIndexer(indexName string, indexer ctlharvesterv1.UpgradeIndexer)

func (UpgradeCache) Get

func (c UpgradeCache) Get(namespace, name string) (*harvesterv1.Upgrade, error)

func (UpgradeCache) GetByIndex

func (c UpgradeCache) GetByIndex(indexName, key string) ([]*harvesterv1.Upgrade, error)

func (UpgradeCache) List

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

type UpgradeClient

type UpgradeClient func(string) harv1type.UpgradeInterface

func (UpgradeClient) Create

func (UpgradeClient) Delete

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

func (UpgradeClient) Get

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

func (UpgradeClient) List

func (c UpgradeClient) List(namespace string, opts metav1.ListOptions) (*harvesterv1.UpgradeList, error)

func (UpgradeClient) Patch

func (c UpgradeClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *harvesterv1.Upgrade, err error)

func (UpgradeClient) Update

func (c UpgradeClient) Update(upgrade *harvesterv1.Upgrade) (*harvesterv1.Upgrade, error)

func (UpgradeClient) UpdateStatus

func (UpgradeClient) Watch

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

type VersionCache

type VersionCache func(string) harv1type.VersionInterface

func (VersionCache) AddIndexer

func (c VersionCache) AddIndexer(indexName string, indexer ctlharvesterv1.VersionIndexer)

func (VersionCache) Get

func (c VersionCache) Get(namespace, name string) (*harvesterv1.Version, error)

func (VersionCache) GetByIndex

func (c VersionCache) GetByIndex(indexName, key string) ([]*harvesterv1.Version, error)

func (VersionCache) List

func (c VersionCache) List(namespace string, selector labels.Selector) ([]*harvesterv1.Version, error)

type VirtualMachineClient

type VirtualMachineClient func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineClient) Create

func (VirtualMachineClient) Delete

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

func (VirtualMachineClient) Get

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

func (VirtualMachineClient) List

func (VirtualMachineClient) Patch

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

func (VirtualMachineClient) Update

func (VirtualMachineClient) UpdateStatus

func (VirtualMachineClient) Watch

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

type VirtualMachineImageCache

type VirtualMachineImageCache func(string) harv1type.VirtualMachineImageInterface

func (VirtualMachineImageCache) AddIndexer

func (VirtualMachineImageCache) Get

func (VirtualMachineImageCache) GetByIndex

func (c VirtualMachineImageCache) GetByIndex(indexName, key string) ([]*harvesterv1.VirtualMachineImage, error)

func (VirtualMachineImageCache) List

type VirtualMachineImageClient

type VirtualMachineImageClient func(string) harv1type.VirtualMachineImageInterface

func (VirtualMachineImageClient) Create

func (VirtualMachineImageClient) Delete

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

func (VirtualMachineImageClient) Get

func (VirtualMachineImageClient) List

func (VirtualMachineImageClient) Patch

func (c VirtualMachineImageClient) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *harvesterv1.VirtualMachineImage, err error)

func (VirtualMachineImageClient) Update

func (VirtualMachineImageClient) UpdateStatus

func (VirtualMachineImageClient) Watch

Jump to

Keyboard shortcuts

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