fake

package
v0.0.0-...-f5b21ba Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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 FakeMyResources

type FakeMyResources struct {
	Fake *FakeSamplecontrollerV1alpha1
	// contains filtered or unexported fields
}

FakeMyResources implements MyResourceInterface

func (*FakeMyResources) Create

func (c *FakeMyResources) Create(ctx context.Context, myResource *v1alpha1.MyResource, opts v1.CreateOptions) (result *v1alpha1.MyResource, err error)

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

func (*FakeMyResources) Delete

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

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

func (*FakeMyResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMyResources) Get

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

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

func (*FakeMyResources) List

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

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

func (*FakeMyResources) Patch

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

Patch applies the patch and returns the patched myResource.

func (*FakeMyResources) Update

func (c *FakeMyResources) Update(ctx context.Context, myResource *v1alpha1.MyResource, opts v1.UpdateOptions) (result *v1alpha1.MyResource, err error)

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

func (*FakeMyResources) UpdateStatus

func (c *FakeMyResources) UpdateStatus(ctx context.Context, myResource *v1alpha1.MyResource, opts v1.UpdateOptions) (*v1alpha1.MyResource, error)

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

func (*FakeMyResources) Watch

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

type FakeSamplecontrollerV1alpha1

type FakeSamplecontrollerV1alpha1 struct {
	*testing.Fake
}

func (*FakeSamplecontrollerV1alpha1) MyResources

func (*FakeSamplecontrollerV1alpha1) RESTClient

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