fake

package
v0.0.0-...-a33a1e6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: GPL-3.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 FakeServerlessV1

type FakeServerlessV1 struct {
	*testing.Fake
}

func (*FakeServerlessV1) RESTClient

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

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

func (*FakeServerlessV1) Serverlessquotas

func (c *FakeServerlessV1) Serverlessquotas(namespace string) v1.ServerlessquotaInterface

type FakeServerlessquotas

type FakeServerlessquotas struct {
	Fake *FakeServerlessV1
	// contains filtered or unexported fields
}

FakeServerlessquotas implements ServerlessquotaInterface

func (*FakeServerlessquotas) Create

func (c *FakeServerlessquotas) Create(ctx context.Context, serverlessquota *v1.Serverlessquota, opts metav1.CreateOptions) (result *v1.Serverlessquota, err error)

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

func (*FakeServerlessquotas) Delete

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

func (*FakeServerlessquotas) DeleteCollection

func (c *FakeServerlessquotas) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServerlessquotas) Get

func (c *FakeServerlessquotas) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Serverlessquota, err error)

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

func (*FakeServerlessquotas) List

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

func (*FakeServerlessquotas) Patch

func (c *FakeServerlessquotas) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Serverlessquota, err error)

Patch applies the patch and returns the patched serverlessquota.

func (*FakeServerlessquotas) Update

func (c *FakeServerlessquotas) Update(ctx context.Context, serverlessquota *v1.Serverlessquota, opts metav1.UpdateOptions) (result *v1.Serverlessquota, err error)

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

func (*FakeServerlessquotas) Watch

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

Jump to

Keyboard shortcuts

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