fake

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 12 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 FakeCommands

type FakeCommands struct {
	Fake *FakePowergridV10
	// contains filtered or unexported fields
}

FakeCommands implements CommandInterface

func (*FakeCommands) Apply

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

func (*FakeCommands) Create

func (c *FakeCommands) Create(ctx context.Context, command *v10.Command, opts v1.CreateOptions) (result *v10.Command, err error)

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

func (*FakeCommands) Delete

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

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

func (*FakeCommands) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCommands) Get

func (c *FakeCommands) Get(ctx context.Context, name string, options v1.GetOptions) (result *v10.Command, err error)

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

func (*FakeCommands) List

func (c *FakeCommands) List(ctx context.Context, opts v1.ListOptions) (result *v10.CommandList, err error)

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

func (*FakeCommands) Patch

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

Patch applies the patch and returns the patched command.

func (*FakeCommands) Update

func (c *FakeCommands) Update(ctx context.Context, command *v10.Command, opts v1.UpdateOptions) (result *v10.Command, err error)

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

func (*FakeCommands) Watch

func (c *FakeCommands) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakePowergridV10

type FakePowergridV10 struct {
	*testing.Fake
}

func (*FakePowergridV10) Commands

func (c *FakePowergridV10) Commands(namespace string) v10.CommandInterface

func (*FakePowergridV10) RESTClient

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