package fake

import "k8s.io/client-go/deprecated/typed/scheduling/v1beta1/fake"

Package fake has the automatically generated clients.

Index

Types

type FakePriorityClasses

type FakePriorityClasses struct {
	Fake *FakeSchedulingV1beta1
}

FakePriorityClasses implements PriorityClassInterface

func (*FakePriorityClasses) Create

func (c *FakePriorityClasses) Create(priorityClass *v1beta1.PriorityClass) (result *v1beta1.PriorityClass, err error)

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

func (*FakePriorityClasses) Delete

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

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

func (*FakePriorityClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePriorityClasses) Get

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

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

func (*FakePriorityClasses) List

func (c *FakePriorityClasses) List(opts v1.ListOptions) (result *v1beta1.PriorityClassList, err error)

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

func (*FakePriorityClasses) Patch

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

Patch applies the patch and returns the patched priorityClass.

func (*FakePriorityClasses) Update

func (c *FakePriorityClasses) Update(priorityClass *v1beta1.PriorityClass) (result *v1beta1.PriorityClass, err error)

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

func (*FakePriorityClasses) Watch

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

type FakeSchedulingV1beta1

type FakeSchedulingV1beta1 struct {
	*testing.Fake
}

func (*FakeSchedulingV1beta1) PriorityClasses

func (*FakeSchedulingV1beta1) RESTClient

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

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

Source Files

doc.go fake_priorityclass.go fake_scheduling_client.go

Version
v0.19.16
Published
Oct 28, 2021
Platform
linux/amd64
Imports
9 packages
Last checked
58 seconds ago

Tools for package owners.