fake

package
v1.13.1-k3s2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2019 License: Apache-2.0, 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 FakeSecondExampleV1

type FakeSecondExampleV1 struct {
	*testing.Fake
}

func (*FakeSecondExampleV1) RESTClient

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

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

func (*FakeSecondExampleV1) TestTypes

func (c *FakeSecondExampleV1) TestTypes(namespace string) v1.TestTypeInterface

type FakeTestTypes

type FakeTestTypes struct {
	Fake *FakeSecondExampleV1
	// contains filtered or unexported fields
}

FakeTestTypes implements TestTypeInterface

func (*FakeTestTypes) Create

func (c *FakeTestTypes) Create(testType *example2v1.TestType) (result *example2v1.TestType, err error)

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

func (*FakeTestTypes) Delete

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

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

func (*FakeTestTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTestTypes) Get

func (c *FakeTestTypes) Get(name string, options v1.GetOptions) (result *example2v1.TestType, err error)

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

func (*FakeTestTypes) List

func (c *FakeTestTypes) List(opts v1.ListOptions) (result *example2v1.TestTypeList, err error)

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

func (*FakeTestTypes) Patch

func (c *FakeTestTypes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *example2v1.TestType, err error)

Patch applies the patch and returns the patched testType.

func (*FakeTestTypes) Update

func (c *FakeTestTypes) Update(testType *example2v1.TestType) (result *example2v1.TestType, err error)

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

func (*FakeTestTypes) UpdateStatus

func (c *FakeTestTypes) UpdateStatus(testType *example2v1.TestType) (*example2v1.TestType, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTestTypes) Watch

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

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

Jump to

Keyboard shortcuts

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