fake

package
v0.0.0-...-246ecee Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 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 FakeSubmarineV1alpha1

type FakeSubmarineV1alpha1 struct {
	*testing.Fake
}

func (*FakeSubmarineV1alpha1) RESTClient

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

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

func (*FakeSubmarineV1alpha1) Submarines

func (c *FakeSubmarineV1alpha1) Submarines(namespace string) v1alpha1.SubmarineInterface

type FakeSubmarines

type FakeSubmarines struct {
	Fake *FakeSubmarineV1alpha1
	// contains filtered or unexported fields
}

FakeSubmarines implements SubmarineInterface

func (*FakeSubmarines) Create

func (c *FakeSubmarines) Create(ctx context.Context, submarine *v1alpha1.Submarine, opts v1.CreateOptions) (result *v1alpha1.Submarine, err error)

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

func (*FakeSubmarines) Delete

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

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

func (*FakeSubmarines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubmarines) Get

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

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

func (*FakeSubmarines) List

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

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

func (*FakeSubmarines) Patch

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

Patch applies the patch and returns the patched submarine.

func (*FakeSubmarines) Update

func (c *FakeSubmarines) Update(ctx context.Context, submarine *v1alpha1.Submarine, opts v1.UpdateOptions) (result *v1alpha1.Submarine, err error)

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

func (*FakeSubmarines) UpdateStatus

func (c *FakeSubmarines) UpdateStatus(ctx context.Context, submarine *v1alpha1.Submarine, opts v1.UpdateOptions) (*v1alpha1.Submarine, error)

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

func (*FakeSubmarines) Watch

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

Jump to

Keyboard shortcuts

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