fake

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 10 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 FakeQuotaV1alpha2

type FakeQuotaV1alpha2 struct {
	*testing.Fake
}

func (*FakeQuotaV1alpha2) RESTClient

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

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

func (*FakeQuotaV1alpha2) ResourceQuotas

type FakeResourceQuotas

type FakeResourceQuotas struct {
	Fake *FakeQuotaV1alpha2
}

FakeResourceQuotas implements ResourceQuotaInterface

func (*FakeResourceQuotas) Create

func (c *FakeResourceQuotas) Create(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.CreateOptions) (result *v1alpha2.ResourceQuota, err error)

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

func (*FakeResourceQuotas) Delete

func (c *FakeResourceQuotas) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeResourceQuotas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceQuotas) Get

func (c *FakeResourceQuotas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.ResourceQuota, err error)

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

func (*FakeResourceQuotas) List

func (c *FakeResourceQuotas) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceQuotaList, err error)

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

func (*FakeResourceQuotas) Patch

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

Patch applies the patch and returns the patched resourceQuota.

func (*FakeResourceQuotas) Update

func (c *FakeResourceQuotas) Update(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.UpdateOptions) (result *v1alpha2.ResourceQuota, err error)

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

func (*FakeResourceQuotas) UpdateStatus

func (c *FakeResourceQuotas) UpdateStatus(ctx context.Context, resourceQuota *v1alpha2.ResourceQuota, opts v1.UpdateOptions) (*v1alpha2.ResourceQuota, error)

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

func (*FakeResourceQuotas) Watch

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

Jump to

Keyboard shortcuts

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