fake

package
Version: v0.0.0-...-fb4d9db Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 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 FakePodGroups

type FakePodGroups struct {
	Fake *FakeSchedulingV1alpha1
	// contains filtered or unexported fields
}

FakePodGroups implements PodGroupInterface

func (*FakePodGroups) Create

func (c *FakePodGroups) Create(podGroup *v1alpha1.PodGroup) (result *v1alpha1.PodGroup, err error)

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

func (*FakePodGroups) Delete

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

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

func (*FakePodGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodGroups) Get

func (c *FakePodGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.PodGroup, err error)

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

func (*FakePodGroups) List

func (c *FakePodGroups) List(opts v1.ListOptions) (result *v1alpha1.PodGroupList, err error)

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

func (*FakePodGroups) Patch

func (c *FakePodGroups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodGroup, err error)

Patch applies the patch and returns the patched podGroup.

func (*FakePodGroups) Update

func (c *FakePodGroups) Update(podGroup *v1alpha1.PodGroup) (result *v1alpha1.PodGroup, err error)

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

func (*FakePodGroups) UpdateStatus

func (c *FakePodGroups) UpdateStatus(podGroup *v1alpha1.PodGroup) (*v1alpha1.PodGroup, error)

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

func (*FakePodGroups) Watch

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

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

type FakeQueues

type FakeQueues struct {
	Fake *FakeSchedulingV1alpha1
}

FakeQueues implements QueueInterface

func (*FakeQueues) Create

func (c *FakeQueues) Create(queue *v1alpha1.Queue) (result *v1alpha1.Queue, err error)

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

func (*FakeQueues) Delete

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

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

func (*FakeQueues) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeQueues) Get

func (c *FakeQueues) Get(name string, options v1.GetOptions) (result *v1alpha1.Queue, err error)

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

func (*FakeQueues) List

func (c *FakeQueues) List(opts v1.ListOptions) (result *v1alpha1.QueueList, err error)

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

func (*FakeQueues) Patch

func (c *FakeQueues) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Queue, err error)

Patch applies the patch and returns the patched queue.

func (*FakeQueues) Update

func (c *FakeQueues) Update(queue *v1alpha1.Queue) (result *v1alpha1.Queue, err error)

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

func (*FakeQueues) Watch

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

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

type FakeSchedulingV1alpha1

type FakeSchedulingV1alpha1 struct {
	*testing.Fake
}

func (*FakeSchedulingV1alpha1) PodGroups

func (c *FakeSchedulingV1alpha1) PodGroups(namespace string) v1alpha1.PodGroupInterface

func (*FakeSchedulingV1alpha1) Queues

func (*FakeSchedulingV1alpha1) RESTClient

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