fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: BSD-3-Clause 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 FakeCustomResources

type FakeCustomResources struct {
	Fake *FakeNokubeV1
	// contains filtered or unexported fields
}

FakeCustomResources implements CustomResourceInterface

func (*FakeCustomResources) Create

func (c *FakeCustomResources) Create(customResource *customresourcev1.CustomResource) (result *customresourcev1.CustomResource, err error)

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

func (*FakeCustomResources) Delete

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

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

func (*FakeCustomResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomResources) Get

func (c *FakeCustomResources) Get(name string, options v1.GetOptions) (result *customresourcev1.CustomResource, err error)

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

func (*FakeCustomResources) List

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

func (*FakeCustomResources) Patch

func (c *FakeCustomResources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *customresourcev1.CustomResource, err error)

Patch applies the patch and returns the patched customResource.

func (*FakeCustomResources) Update

func (c *FakeCustomResources) Update(customResource *customresourcev1.CustomResource) (result *customresourcev1.CustomResource, err error)

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

func (*FakeCustomResources) Watch

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

type FakeNokubeV1

type FakeNokubeV1 struct {
	*testing.Fake
}

func (*FakeNokubeV1) CustomResources

func (c *FakeNokubeV1) CustomResources(namespace string) v1.CustomResourceInterface

func (*FakeNokubeV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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