fake

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEvictions

type FakeEvictions struct {
	Fake *FakePolicyV1beta1
	// contains filtered or unexported fields
}

FakeEvictions implements EvictionInterface

func (*FakeEvictions) Evict

func (c *FakeEvictions) Evict(eviction *policy.Eviction) error

type FakePodDisruptionBudgets

type FakePodDisruptionBudgets struct {
	Fake *FakePolicyV1beta1
	// contains filtered or unexported fields
}

FakePodDisruptionBudgets implements PodDisruptionBudgetInterface

func (*FakePodDisruptionBudgets) Create

func (c *FakePodDisruptionBudgets) Create(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)

func (*FakePodDisruptionBudgets) Delete

func (c *FakePodDisruptionBudgets) Delete(name string, options *v1.DeleteOptions) error

func (*FakePodDisruptionBudgets) DeleteCollection

func (c *FakePodDisruptionBudgets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

func (*FakePodDisruptionBudgets) Get

func (c *FakePodDisruptionBudgets) Get(name string, options v1.GetOptions) (result *v1beta1.PodDisruptionBudget, err error)

func (*FakePodDisruptionBudgets) List

func (*FakePodDisruptionBudgets) Patch

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

Patch applies the patch and returns the patched podDisruptionBudget.

func (*FakePodDisruptionBudgets) Update

func (c *FakePodDisruptionBudgets) Update(podDisruptionBudget *v1beta1.PodDisruptionBudget) (result *v1beta1.PodDisruptionBudget, err error)

func (*FakePodDisruptionBudgets) UpdateStatus

func (c *FakePodDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1beta1.PodDisruptionBudget) (*v1beta1.PodDisruptionBudget, error)

func (*FakePodDisruptionBudgets) Watch

Watch returns a watch.Interface that watches the requested podDisruptionBudgets.

type FakePolicyV1beta1

type FakePolicyV1beta1 struct {
	*testing.Fake
}

func (*FakePolicyV1beta1) Evictions

func (c *FakePolicyV1beta1) Evictions(namespace string) v1beta1.EvictionInterface

func (*FakePolicyV1beta1) PodDisruptionBudgets

func (c *FakePolicyV1beta1) PodDisruptionBudgets(namespace string) v1beta1.PodDisruptionBudgetInterface

func (*FakePolicyV1beta1) RESTClient

func (c *FakePolicyV1beta1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Jump to

Keyboard shortcuts

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