fakeclients

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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 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)

Jump to

Keyboard shortcuts

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