fake

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 13 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 FakeConsolePlugins

type FakeConsolePlugins struct {
	Fake *FakeConsoleV1alpha1
}

FakeConsolePlugins implements ConsolePluginInterface

func (*FakeConsolePlugins) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied consolePlugin.

func (*FakeConsolePlugins) Create

func (c *FakeConsolePlugins) Create(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.CreateOptions) (result *v1alpha1.ConsolePlugin, err error)

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

func (*FakeConsolePlugins) Delete

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

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

func (*FakeConsolePlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConsolePlugins) Get

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

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

func (*FakeConsolePlugins) List

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

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

func (*FakeConsolePlugins) Patch

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

Patch applies the patch and returns the patched consolePlugin.

func (*FakeConsolePlugins) Update

func (c *FakeConsolePlugins) Update(ctx context.Context, consolePlugin *v1alpha1.ConsolePlugin, opts v1.UpdateOptions) (result *v1alpha1.ConsolePlugin, err error)

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

func (*FakeConsolePlugins) Watch

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

type FakeConsoleV1alpha1

type FakeConsoleV1alpha1 struct {
	*testing.Fake
}

func (*FakeConsoleV1alpha1) ConsolePlugins

func (*FakeConsoleV1alpha1) RESTClient

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