fake

package
v0.0.0-...-bd62828 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 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 FakeBasiccontrollerV1alpha1

type FakeBasiccontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeBasiccontrollerV1alpha1) Demos

func (*FakeBasiccontrollerV1alpha1) RESTClient

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

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

type FakeDemos

type FakeDemos struct {
	Fake *FakeBasiccontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeDemos implements DemoInterface

func (*FakeDemos) Create

func (c *FakeDemos) Create(ctx context.Context, demo *v1alpha1.Demo, opts v1.CreateOptions) (result *v1alpha1.Demo, err error)

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

func (*FakeDemos) Delete

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

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

func (*FakeDemos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDemos) Get

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

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

func (*FakeDemos) List

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

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

func (*FakeDemos) Patch

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

Patch applies the patch and returns the patched demo.

func (*FakeDemos) Update

func (c *FakeDemos) Update(ctx context.Context, demo *v1alpha1.Demo, opts v1.UpdateOptions) (result *v1alpha1.Demo, err error)

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

func (*FakeDemos) UpdateStatus

func (c *FakeDemos) UpdateStatus(ctx context.Context, demo *v1alpha1.Demo, opts v1.UpdateOptions) (*v1alpha1.Demo, error)

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

func (*FakeDemos) Watch

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

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

Jump to

Keyboard shortcuts

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