fake

package
v0.0.0-...-cda2c1b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 FakeSampleResources

type FakeSampleResources struct {
	Fake *FakeSamplecontrollerV1
	// contains filtered or unexported fields
}

FakeSampleResources implements SampleResourceInterface

func (*FakeSampleResources) Create

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

func (*FakeSampleResources) Delete

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

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

func (*FakeSampleResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSampleResources) Get

func (c *FakeSampleResources) Get(name string, options v1.GetOptions) (result *samplecontrollerv1.SampleResource, err error)

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

func (*FakeSampleResources) List

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

func (*FakeSampleResources) Patch

func (c *FakeSampleResources) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *samplecontrollerv1.SampleResource, err error)

Patch applies the patch and returns the patched sampleResource.

func (*FakeSampleResources) Update

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

func (*FakeSampleResources) Watch

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

type FakeSamplecontrollerV1

type FakeSamplecontrollerV1 struct {
	*testing.Fake
}

func (*FakeSamplecontrollerV1) RESTClient

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

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

func (*FakeSamplecontrollerV1) SampleResources

func (c *FakeSamplecontrollerV1) SampleResources(namespace string) v1.SampleResourceInterface

Jump to

Keyboard shortcuts

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