fake

package
v0.0.0-...-87722f0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 FakeStableV1

type FakeStableV1 struct {
	*testing.Fake
}

func (*FakeStableV1) RESTClient

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

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

func (*FakeStableV1) Students

func (c *FakeStableV1) Students(namespace string) v1.StudentInterface

type FakeStudents

type FakeStudents struct {
	Fake *FakeStableV1
	// contains filtered or unexported fields
}

FakeStudents implements StudentInterface

func (*FakeStudents) Create

func (c *FakeStudents) Create(student *stablev1.Student) (result *stablev1.Student, err error)

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

func (*FakeStudents) Delete

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

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

func (*FakeStudents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStudents) Get

func (c *FakeStudents) Get(name string, options v1.GetOptions) (result *stablev1.Student, err error)

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

func (*FakeStudents) List

func (c *FakeStudents) List(opts v1.ListOptions) (result *stablev1.StudentList, err error)

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

func (*FakeStudents) Patch

func (c *FakeStudents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *stablev1.Student, err error)

Patch applies the patch and returns the patched student.

func (*FakeStudents) Update

func (c *FakeStudents) Update(student *stablev1.Student) (result *stablev1.Student, err error)

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

func (*FakeStudents) Watch

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

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

Jump to

Keyboard shortcuts

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