fake

package
v0.0.0-...-558fac8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 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 FakeGqlSources

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

FakeGqlSources implements GqlSourceInterface

func (*FakeGqlSources) Create

func (c *FakeGqlSources) Create(gqlSource *v1alpha1.GqlSource) (result *v1alpha1.GqlSource, err error)

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

func (*FakeGqlSources) Delete

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

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

func (*FakeGqlSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGqlSources) Get

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

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

func (*FakeGqlSources) List

func (c *FakeGqlSources) List(opts v1.ListOptions) (result *v1alpha1.GqlSourceList, err error)

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

func (*FakeGqlSources) Patch

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

Patch applies the patch and returns the patched gqlSource.

func (*FakeGqlSources) Update

func (c *FakeGqlSources) Update(gqlSource *v1alpha1.GqlSource) (result *v1alpha1.GqlSource, err error)

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

func (*FakeGqlSources) UpdateStatus

func (c *FakeGqlSources) UpdateStatus(gqlSource *v1alpha1.GqlSource) (*v1alpha1.GqlSource, error)

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

func (*FakeGqlSources) Watch

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

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) GqlSources

func (c *FakeSourcesV1alpha1) GqlSources(namespace string) v1alpha1.GqlSourceInterface

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