fakeclients

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 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 added in v1.0.0

type ConfigmapCache func(namespace string) corev1type.ConfigMapInterface

func (ConfigmapCache) AddIndexer added in v1.0.0

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

func (ConfigmapCache) Get added in v1.0.0

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

func (ConfigmapCache) GetByIndex added in v1.0.0

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

func (ConfigmapCache) List added in v1.0.0

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

type ConfigmapClient added in v1.0.0

type ConfigmapClient func(namespace string) corev1type.ConfigMapInterface

func (ConfigmapClient) Create added in v1.0.0

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

func (ConfigmapClient) Delete added in v1.0.0

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

func (ConfigmapClient) Get added in v1.0.0

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

func (ConfigmapClient) List added in v1.0.0

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

func (ConfigmapClient) Patch added in v1.0.0

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

func (ConfigmapClient) Update added in v1.0.0

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

func (ConfigmapClient) Watch added in v1.0.0

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

type HarvesterSettingCache added in v1.0.0

type HarvesterSettingCache func() harvestertype.SettingInterface

func (HarvesterSettingCache) AddIndexer added in v1.0.0

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

func (HarvesterSettingCache) Get added in v1.0.0

func (HarvesterSettingCache) GetByIndex added in v1.0.0

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

func (HarvesterSettingCache) List added in v1.0.0

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

type HarvesterSettingClient added in v1.0.0

type HarvesterSettingClient func() harvestertype.SettingInterface

func (HarvesterSettingClient) Create added in v1.0.0

func (HarvesterSettingClient) Delete added in v1.0.0

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

func (HarvesterSettingClient) Get added in v1.0.0

func (HarvesterSettingClient) List added in v1.0.0

func (HarvesterSettingClient) Patch added in v1.0.0

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

func (HarvesterSettingClient) Update added in v1.0.0

func (HarvesterSettingClient) UpdateStatus added in v1.0.0

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

func (HarvesterSettingClient) Watch added in v1.0.0

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 added in v1.0.0

type LonghornSettingCache func(string) lhtype.SettingInterface

func (LonghornSettingCache) AddIndexer added in v1.0.0

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

func (LonghornSettingCache) Get added in v1.0.0

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

func (LonghornSettingCache) GetByIndex added in v1.0.0

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

func (LonghornSettingCache) List added in v1.0.0

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

type LonghornSettingClient added in v1.0.0

type LonghornSettingClient func(string) lhtype.SettingInterface

func (LonghornSettingClient) Create added in v1.0.0

func (LonghornSettingClient) Delete added in v1.0.0

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

func (LonghornSettingClient) Get added in v1.0.0

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

func (LonghornSettingClient) List added in v1.0.0

func (LonghornSettingClient) Patch added in v1.0.0

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

func (LonghornSettingClient) Update added in v1.0.0

func (LonghornSettingClient) UpdateStatus added in v1.0.0

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

func (LonghornSettingClient) Watch added in v1.0.0

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 added in v0.3.0

type PersistentVolumeClaimCache func(string) v1.PersistentVolumeClaimInterface

func (PersistentVolumeClaimCache) AddIndexer added in v0.3.0

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

func (PersistentVolumeClaimCache) Get added in v0.3.0

func (PersistentVolumeClaimCache) GetByIndex added in v0.3.0

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

func (PersistentVolumeClaimCache) List added in v0.3.0

type PersistentVolumeClaimClient added in v0.3.0

type PersistentVolumeClaimClient func(string) v1.PersistentVolumeClaimInterface

func (PersistentVolumeClaimClient) Create added in v0.3.0

func (PersistentVolumeClaimClient) Delete added in v0.3.0

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

func (PersistentVolumeClaimClient) Get added in v0.3.0

func (PersistentVolumeClaimClient) List added in v0.3.0

func (PersistentVolumeClaimClient) Patch added in v0.3.0

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

func (PersistentVolumeClaimClient) Update added in v0.3.0

func (PersistentVolumeClaimClient) UpdateStatus added in v0.3.0

func (PersistentVolumeClaimClient) Watch added in v0.3.0

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 added in v1.0.0

type VersionCache func(string) harv1type.VersionInterface

func (VersionCache) AddIndexer added in v1.0.0

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

func (VersionCache) Get added in v1.0.0

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

func (VersionCache) GetByIndex added in v1.0.0

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

func (VersionCache) List added in v1.0.0

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

type VirtualMachineClient added in v1.0.0

type VirtualMachineClient func(string) kubevirtv1.VirtualMachineInterface

func (VirtualMachineClient) Create added in v1.0.0

func (VirtualMachineClient) Delete added in v1.0.0

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

func (VirtualMachineClient) Get added in v1.0.0

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

func (VirtualMachineClient) List added in v1.0.0

func (VirtualMachineClient) Patch added in v1.0.0

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

func (VirtualMachineClient) Update added in v1.0.0

func (VirtualMachineClient) UpdateStatus added in v1.0.0

func (VirtualMachineClient) Watch added in v1.0.0

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

type VirtualMachineImageCache added in v1.0.0

type VirtualMachineImageCache func(string) harv1type.VirtualMachineImageInterface

func (VirtualMachineImageCache) AddIndexer added in v1.0.0

func (VirtualMachineImageCache) Get added in v1.0.0

func (VirtualMachineImageCache) GetByIndex added in v1.0.0

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

func (VirtualMachineImageCache) List added in v1.0.0

type VirtualMachineImageClient added in v1.0.0

type VirtualMachineImageClient func(string) harv1type.VirtualMachineImageInterface

func (VirtualMachineImageClient) Create added in v1.0.0

func (VirtualMachineImageClient) Delete added in v1.0.0

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

func (VirtualMachineImageClient) Get added in v1.0.0

func (VirtualMachineImageClient) List added in v1.0.0

func (VirtualMachineImageClient) Patch added in v1.0.0

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

func (VirtualMachineImageClient) Update added in v1.0.0

func (VirtualMachineImageClient) UpdateStatus added in v1.0.0

func (VirtualMachineImageClient) Watch added in v1.0.0

Jump to

Keyboard shortcuts

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