fake

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT 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 FakeCagipV1

type FakeCagipV1 struct {
	*testing.Fake
}

func (*FakeCagipV1) RESTClient

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

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

func (*FakeCagipV1) ResourceQuotaClaims

func (c *FakeCagipV1) ResourceQuotaClaims(namespace string) v1.ResourceQuotaClaimInterface

type FakeResourceQuotaClaims

type FakeResourceQuotaClaims struct {
	Fake *FakeCagipV1
	// contains filtered or unexported fields
}

FakeResourceQuotaClaims implements ResourceQuotaClaimInterface

func (*FakeResourceQuotaClaims) Create

func (c *FakeResourceQuotaClaims) Create(ctx context.Context, resourceQuotaClaim *cagipv1.ResourceQuotaClaim, opts v1.CreateOptions) (result *cagipv1.ResourceQuotaClaim, err error)

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

func (*FakeResourceQuotaClaims) Delete

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

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

func (*FakeResourceQuotaClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeResourceQuotaClaims) Get

func (c *FakeResourceQuotaClaims) Get(ctx context.Context, name string, options v1.GetOptions) (result *cagipv1.ResourceQuotaClaim, err error)

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

func (*FakeResourceQuotaClaims) List

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

func (*FakeResourceQuotaClaims) Patch

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

Patch applies the patch and returns the patched resourceQuotaClaim.

func (*FakeResourceQuotaClaims) Update

func (c *FakeResourceQuotaClaims) Update(ctx context.Context, resourceQuotaClaim *cagipv1.ResourceQuotaClaim, opts v1.UpdateOptions) (result *cagipv1.ResourceQuotaClaim, err error)

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

func (*FakeResourceQuotaClaims) UpdateStatus

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

func (*FakeResourceQuotaClaims) Watch

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

Jump to

Keyboard shortcuts

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