fake

package
v0.0.0-...-600323b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

This code is auto-generated by k8s.io/code-generator

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 FakeExampleV1alpha1

type FakeExampleV1alpha1 struct {
	*testing.Fake
}

func (*FakeExampleV1alpha1) RESTClient

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

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

func (*FakeExampleV1alpha1) SimpleExamples

func (c *FakeExampleV1alpha1) SimpleExamples(namespace string) v1alpha1.SimpleExampleInterface

type FakeSimpleExamples

type FakeSimpleExamples struct {
	Fake *FakeExampleV1alpha1
	// contains filtered or unexported fields
}

FakeSimpleExamples implements SimpleExampleInterface

func (*FakeSimpleExamples) Create

func (c *FakeSimpleExamples) Create(simpleExample *v1alpha1.SimpleExample) (result *v1alpha1.SimpleExample, err error)

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

func (*FakeSimpleExamples) Delete

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

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

func (*FakeSimpleExamples) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSimpleExamples) Get

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

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

func (*FakeSimpleExamples) List

func (c *FakeSimpleExamples) List(opts v1.ListOptions) (result *v1alpha1.SimpleExampleList, err error)

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

func (*FakeSimpleExamples) Patch

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

Patch applies the patch and returns the patched simpleExample.

func (*FakeSimpleExamples) Update

func (c *FakeSimpleExamples) Update(simpleExample *v1alpha1.SimpleExample) (result *v1alpha1.SimpleExample, err error)

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

func (*FakeSimpleExamples) Watch

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

Jump to

Keyboard shortcuts

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