fake

package
Version: v1.13.3-k3s2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 FakeApiextensions

type FakeApiextensions struct {
	*testing.Fake
}

func (*FakeApiextensions) CustomResourceDefinitions

func (*FakeApiextensions) RESTClient

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

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

type FakeCustomResourceDefinitions

type FakeCustomResourceDefinitions struct {
	Fake *FakeApiextensions
}

FakeCustomResourceDefinitions implements CustomResourceDefinitionInterface

func (*FakeCustomResourceDefinitions) Create

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

func (*FakeCustomResourceDefinitions) Delete

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

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

func (*FakeCustomResourceDefinitions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomResourceDefinitions) Get

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

func (*FakeCustomResourceDefinitions) List

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

func (*FakeCustomResourceDefinitions) Patch

func (c *FakeCustomResourceDefinitions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apiextensions.CustomResourceDefinition, err error)

Patch applies the patch and returns the patched customResourceDefinition.

func (*FakeCustomResourceDefinitions) Update

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

func (*FakeCustomResourceDefinitions) UpdateStatus

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

func (*FakeCustomResourceDefinitions) Watch

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

Jump to

Keyboard shortcuts

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