fake

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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 FakeHelloWorlds

type FakeHelloWorlds struct {
	Fake *FakeRrkV1
	// contains filtered or unexported fields
}

FakeHelloWorlds implements HelloWorldInterface

func (*FakeHelloWorlds) Create

func (c *FakeHelloWorlds) Create(ctx context.Context, helloWorld *rrkv1.HelloWorld, opts v1.CreateOptions) (result *rrkv1.HelloWorld, err error)

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

func (*FakeHelloWorlds) Delete

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

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

func (*FakeHelloWorlds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelloWorlds) Get

func (c *FakeHelloWorlds) Get(ctx context.Context, name string, options v1.GetOptions) (result *rrkv1.HelloWorld, err error)

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

func (*FakeHelloWorlds) List

func (c *FakeHelloWorlds) List(ctx context.Context, opts v1.ListOptions) (result *rrkv1.HelloWorldList, err error)

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

func (*FakeHelloWorlds) Patch

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

Patch applies the patch and returns the patched helloWorld.

func (*FakeHelloWorlds) Update

func (c *FakeHelloWorlds) Update(ctx context.Context, helloWorld *rrkv1.HelloWorld, opts v1.UpdateOptions) (result *rrkv1.HelloWorld, err error)

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

func (*FakeHelloWorlds) UpdateStatus

func (c *FakeHelloWorlds) UpdateStatus(ctx context.Context, helloWorld *rrkv1.HelloWorld, opts v1.UpdateOptions) (*rrkv1.HelloWorld, error)

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

func (*FakeHelloWorlds) Watch

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

type FakeRrkV1

type FakeRrkV1 struct {
	*testing.Fake
}

func (*FakeRrkV1) HelloWorlds

func (c *FakeRrkV1) HelloWorlds(namespace string) v1.HelloWorldInterface

func (*FakeRrkV1) RESTClient

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