Version: v0.22.2 Latest Latest

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 10 Imported by: 8



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeCrV1

type FakeCrV1 struct {

func (*FakeCrV1) Examples

func (c *FakeCrV1) Examples(namespace string) v1.ExampleInterface

func (*FakeCrV1) RESTClient

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

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

type FakeExamples

type FakeExamples struct {
	Fake *FakeCrV1
	// contains filtered or unexported fields

FakeExamples implements ExampleInterface

func (*FakeExamples) Create

func (c *FakeExamples) Create(ctx context.Context, example *crv1.Example, opts v1.CreateOptions) (result *crv1.Example, err error)

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

func (*FakeExamples) Delete

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

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

func (*FakeExamples) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExamples) Get

func (c *FakeExamples) Get(ctx context.Context, name string, options v1.GetOptions) (result *crv1.Example, err error)

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

func (*FakeExamples) List

func (c *FakeExamples) List(ctx context.Context, opts v1.ListOptions) (result *crv1.ExampleList, err error)

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

func (*FakeExamples) Patch

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

Patch applies the patch and returns the patched example.

func (*FakeExamples) Update

func (c *FakeExamples) Update(ctx context.Context, example *crv1.Example, opts v1.UpdateOptions) (result *crv1.Example, err error)

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

func (*FakeExamples) Watch

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

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

Jump to

Keyboard shortcuts

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