fake

package
v0.0.0-...-c9bbdc1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 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 FakeMoodlecontrollerV1

type FakeMoodlecontrollerV1 struct {
	*testing.Fake
}

func (*FakeMoodlecontrollerV1) Moodles

func (c *FakeMoodlecontrollerV1) Moodles(namespace string) v1.MoodleInterface

func (*FakeMoodlecontrollerV1) RESTClient

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

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

type FakeMoodles

type FakeMoodles struct {
	Fake *FakeMoodlecontrollerV1
	// contains filtered or unexported fields
}

FakeMoodles implements MoodleInterface

func (*FakeMoodles) Create

func (c *FakeMoodles) Create(moodle *moodlecontrollerv1.Moodle) (result *moodlecontrollerv1.Moodle, err error)

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

func (*FakeMoodles) Delete

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

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

func (*FakeMoodles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMoodles) Get

func (c *FakeMoodles) Get(name string, options v1.GetOptions) (result *moodlecontrollerv1.Moodle, err error)

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

func (*FakeMoodles) List

func (c *FakeMoodles) List(opts v1.ListOptions) (result *moodlecontrollerv1.MoodleList, err error)

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

func (*FakeMoodles) Patch

func (c *FakeMoodles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *moodlecontrollerv1.Moodle, err error)

Patch applies the patch and returns the patched moodle.

func (*FakeMoodles) Update

func (c *FakeMoodles) Update(moodle *moodlecontrollerv1.Moodle) (result *moodlecontrollerv1.Moodle, err error)

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

func (*FakeMoodles) Watch

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

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

Jump to

Keyboard shortcuts

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