fake

package
v0.0.0-...-0b89419 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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 FakeCustomV1alpha1

type FakeCustomV1alpha1 struct {
	*testing.Fake
}

func (*FakeCustomV1alpha1) ExitHandlers

func (c *FakeCustomV1alpha1) ExitHandlers(namespace string) v1alpha1.ExitHandlerInterface

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.

type FakeExitHandlers

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

FakeExitHandlers implements ExitHandlerInterface

func (*FakeExitHandlers) Create

func (c *FakeExitHandlers) Create(ctx context.Context, exitHandler *v1alpha1.ExitHandler, opts v1.CreateOptions) (result *v1alpha1.ExitHandler, err error)

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

func (*FakeExitHandlers) Delete

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

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

func (*FakeExitHandlers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExitHandlers) Get

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

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

func (*FakeExitHandlers) List

func (c *FakeExitHandlers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ExitHandlerList, err error)

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

func (*FakeExitHandlers) Patch

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

Patch applies the patch and returns the patched exitHandler.

func (*FakeExitHandlers) Update

func (c *FakeExitHandlers) Update(ctx context.Context, exitHandler *v1alpha1.ExitHandler, opts v1.UpdateOptions) (result *v1alpha1.ExitHandler, err error)

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

func (*FakeExitHandlers) Watch

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

Jump to

Keyboard shortcuts

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