v1.14.10 Latest Latest

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakePodPresets

type FakePodPresets struct {
	Fake *FakeSettings
	// contains filtered or unexported fields

FakePodPresets implements PodPresetInterface

func (*FakePodPresets) Create

func (c *FakePodPresets) Create(podPreset *settings.PodPreset) (result *settings.PodPreset, err error)

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

func (*FakePodPresets) Delete

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

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

func (*FakePodPresets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodPresets) Get

func (c *FakePodPresets) Get(name string, options v1.GetOptions) (result *settings.PodPreset, err error)

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

func (*FakePodPresets) List

func (c *FakePodPresets) List(opts v1.ListOptions) (result *settings.PodPresetList, err error)

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

func (*FakePodPresets) Patch

func (c *FakePodPresets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *settings.PodPreset, err error)

Patch applies the patch and returns the patched podPreset.

func (*FakePodPresets) Update

func (c *FakePodPresets) Update(podPreset *settings.PodPreset) (result *settings.PodPreset, err error)

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

func (*FakePodPresets) Watch

func (c *FakePodPresets) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeSettings

type FakeSettings struct {

func (*FakeSettings) PodPresets

func (c *FakeSettings) PodPresets(namespace string) internalversion.PodPresetInterface

func (*FakeSettings) RESTClient

func (c *FakeSettings) 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