fake

package
Version: v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 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 *FakePolicy
	// 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 *FakePolicy
	// contains filtered or unexported fields
}

FakePodDisruptionBudgets implements PodDisruptionBudgetInterface

func (*FakePodDisruptionBudgets) Create

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

Create takes the representation of a podDisruptionBudget and creates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any.

func (*FakePodDisruptionBudgets) Delete

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

Delete takes name of the podDisruptionBudget and deletes it. Returns an error if one occurs.

func (*FakePodDisruptionBudgets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodDisruptionBudgets) Get

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

Get takes name of the podDisruptionBudget, and returns the corresponding podDisruptionBudget object, and an error if there is any.

func (*FakePodDisruptionBudgets) List

List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors.

func (*FakePodDisruptionBudgets) Patch

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

Patch applies the patch and returns the patched podDisruptionBudget.

func (*FakePodDisruptionBudgets) Update

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

Update takes the representation of a podDisruptionBudget and updates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any.

func (*FakePodDisruptionBudgets) UpdateStatus

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

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePodDisruptionBudgets) Watch

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

type FakePodSecurityPolicies added in v1.11.0

type FakePodSecurityPolicies struct {
	Fake *FakePolicy
}

FakePodSecurityPolicies implements PodSecurityPolicyInterface

func (*FakePodSecurityPolicies) Create added in v1.11.0

func (c *FakePodSecurityPolicies) Create(podSecurityPolicy *policy.PodSecurityPolicy) (result *policy.PodSecurityPolicy, err error)

Create takes the representation of a podSecurityPolicy and creates it. Returns the server's representation of the podSecurityPolicy, and an error, if there is any.

func (*FakePodSecurityPolicies) Delete added in v1.11.0

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

Delete takes name of the podSecurityPolicy and deletes it. Returns an error if one occurs.

func (*FakePodSecurityPolicies) DeleteCollection added in v1.11.0

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

DeleteCollection deletes a collection of objects.

func (*FakePodSecurityPolicies) Get added in v1.11.0

func (c *FakePodSecurityPolicies) Get(name string, options v1.GetOptions) (result *policy.PodSecurityPolicy, err error)

Get takes name of the podSecurityPolicy, and returns the corresponding podSecurityPolicy object, and an error if there is any.

func (*FakePodSecurityPolicies) List added in v1.11.0

List takes label and field selectors, and returns the list of PodSecurityPolicies that match those selectors.

func (*FakePodSecurityPolicies) Patch added in v1.11.0

func (c *FakePodSecurityPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *policy.PodSecurityPolicy, err error)

Patch applies the patch and returns the patched podSecurityPolicy.

func (*FakePodSecurityPolicies) Update added in v1.11.0

func (c *FakePodSecurityPolicies) Update(podSecurityPolicy *policy.PodSecurityPolicy) (result *policy.PodSecurityPolicy, err error)

Update takes the representation of a podSecurityPolicy and updates it. Returns the server's representation of the podSecurityPolicy, and an error, if there is any.

func (*FakePodSecurityPolicies) Watch added in v1.11.0

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

type FakePolicy

type FakePolicy struct {
	*testing.Fake
}

func (*FakePolicy) Evictions

func (c *FakePolicy) Evictions(namespace string) internalversion.EvictionInterface

func (*FakePolicy) PodDisruptionBudgets

func (c *FakePolicy) PodDisruptionBudgets(namespace string) internalversion.PodDisruptionBudgetInterface

func (*FakePolicy) PodSecurityPolicies added in v1.11.0

func (c *FakePolicy) PodSecurityPolicies() internalversion.PodSecurityPolicyInterface

func (*FakePolicy) RESTClient

func (c *FakePolicy) 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL