fake

package
v0.0.0-...-8ee384e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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 FakeConcurrencyControls

type FakeConcurrencyControls struct {
	Fake *FakeCustomV1alpha1
	// contains filtered or unexported fields
}

FakeConcurrencyControls implements ConcurrencyControlInterface

func (*FakeConcurrencyControls) Create

func (c *FakeConcurrencyControls) Create(ctx context.Context, concurrencyControl *v1alpha1.ConcurrencyControl, opts v1.CreateOptions) (result *v1alpha1.ConcurrencyControl, err error)

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

func (*FakeConcurrencyControls) Delete

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

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

func (*FakeConcurrencyControls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConcurrencyControls) Get

func (c *FakeConcurrencyControls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConcurrencyControl, err error)

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

func (*FakeConcurrencyControls) List

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

func (*FakeConcurrencyControls) Patch

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

Patch applies the patch and returns the patched concurrencyControl.

func (*FakeConcurrencyControls) Update

func (c *FakeConcurrencyControls) Update(ctx context.Context, concurrencyControl *v1alpha1.ConcurrencyControl, opts v1.UpdateOptions) (result *v1alpha1.ConcurrencyControl, err error)

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

func (*FakeConcurrencyControls) Watch

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

type FakeCustomV1alpha1

type FakeCustomV1alpha1 struct {
	*testing.Fake
}

func (*FakeCustomV1alpha1) ConcurrencyControls

func (c *FakeCustomV1alpha1) ConcurrencyControls(namespace string) v1alpha1.ConcurrencyControlInterface

func (*FakeCustomV1alpha1) RESTClient

func (c *FakeCustomV1alpha1) 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