fake

package
v0.0.0-...-9108ab0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeGCSSources

type FakeGCSSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeGCSSources implements GCSSourceInterface

func (*FakeGCSSources) Create

func (c *FakeGCSSources) Create(gCSSource *v1alpha1.GCSSource) (result *v1alpha1.GCSSource, err error)

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

func (*FakeGCSSources) Delete

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

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

func (*FakeGCSSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGCSSources) Get

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

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

func (*FakeGCSSources) List

func (c *FakeGCSSources) List(opts v1.ListOptions) (result *v1alpha1.GCSSourceList, err error)

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

func (*FakeGCSSources) Patch

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

Patch applies the patch and returns the patched gCSSource.

func (*FakeGCSSources) Update

func (c *FakeGCSSources) Update(gCSSource *v1alpha1.GCSSource) (result *v1alpha1.GCSSource, err error)

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

func (*FakeGCSSources) Watch

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

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) GCSSources

func (c *FakeSourcesV1alpha1) GCSSources(namespace string) v1alpha1.GCSSourceInterface

func (*FakeSourcesV1alpha1) RESTClient

func (c *FakeSourcesV1alpha1) 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