fake

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.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 FakeKyvernoV1beta1

type FakeKyvernoV1beta1 struct {
	*testing.Fake
}

func (*FakeKyvernoV1beta1) RESTClient

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

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

func (*FakeKyvernoV1beta1) UpdateRequests

func (c *FakeKyvernoV1beta1) UpdateRequests(namespace string) v1beta1.UpdateRequestInterface

type FakeUpdateRequests

type FakeUpdateRequests struct {
	Fake *FakeKyvernoV1beta1
	// contains filtered or unexported fields
}

FakeUpdateRequests implements UpdateRequestInterface

func (*FakeUpdateRequests) Create

func (c *FakeUpdateRequests) Create(ctx context.Context, updateRequest *v1beta1.UpdateRequest, opts v1.CreateOptions) (result *v1beta1.UpdateRequest, err error)

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

func (*FakeUpdateRequests) Delete

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

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

func (*FakeUpdateRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUpdateRequests) Get

func (c *FakeUpdateRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.UpdateRequest, err error)

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

func (*FakeUpdateRequests) List

func (c *FakeUpdateRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.UpdateRequestList, err error)

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

func (*FakeUpdateRequests) Patch

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

Patch applies the patch and returns the patched updateRequest.

func (*FakeUpdateRequests) Update

func (c *FakeUpdateRequests) Update(ctx context.Context, updateRequest *v1beta1.UpdateRequest, opts v1.UpdateOptions) (result *v1beta1.UpdateRequest, err error)

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

func (*FakeUpdateRequests) UpdateStatus

func (c *FakeUpdateRequests) UpdateStatus(ctx context.Context, updateRequest *v1beta1.UpdateRequest, opts v1.UpdateOptions) (*v1beta1.UpdateRequest, error)

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

func (*FakeUpdateRequests) Watch

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

Jump to

Keyboard shortcuts

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