fake

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: MIT 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 FakeTodoexampleV1

type FakeTodoexampleV1 struct {
	*testing.Fake
}

func (*FakeTodoexampleV1) RESTClient

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

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

func (*FakeTodoexampleV1) Todos

func (c *FakeTodoexampleV1) Todos(namespace string) v1.TodoInterface

type FakeTodos

type FakeTodos struct {
	Fake *FakeTodoexampleV1
	// contains filtered or unexported fields
}

FakeTodos implements TodoInterface

func (*FakeTodos) Create

func (c *FakeTodos) Create(todo *todoexamplev1.Todo) (result *todoexamplev1.Todo, err error)

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

func (*FakeTodos) Delete

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

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

func (*FakeTodos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTodos) Get

func (c *FakeTodos) Get(name string, options v1.GetOptions) (result *todoexamplev1.Todo, err error)

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

func (*FakeTodos) List

func (c *FakeTodos) List(opts v1.ListOptions) (result *todoexamplev1.TodoList, err error)

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

func (*FakeTodos) Patch

func (c *FakeTodos) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *todoexamplev1.Todo, err error)

Patch applies the patch and returns the patched todo.

func (*FakeTodos) Update

func (c *FakeTodos) Update(todo *todoexamplev1.Todo) (result *todoexamplev1.Todo, err error)

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

func (*FakeTodos) Watch

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

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

Jump to

Keyboard shortcuts

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