fake

package
v0.0.0-...-24e56ee Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 FakeSetcreed

type FakeSetcreed struct {
	*testing.Fake
}

func (*FakeSetcreed) RESTClient

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

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

func (*FakeSetcreed) StoreServices

func (c *FakeSetcreed) StoreServices(namespace string) internalversion.StoreServiceInterface

type FakeStoreServices

type FakeStoreServices struct {
	Fake *FakeSetcreed
	// contains filtered or unexported fields
}

FakeStoreServices implements StoreServiceInterface

func (*FakeStoreServices) Create

func (c *FakeStoreServices) Create(ctx context.Context, storeService *store.StoreService, opts v1.CreateOptions) (result *store.StoreService, err error)

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

func (*FakeStoreServices) Delete

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

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

func (*FakeStoreServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStoreServices) Get

func (c *FakeStoreServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *store.StoreService, err error)

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

func (*FakeStoreServices) List

func (c *FakeStoreServices) List(ctx context.Context, opts v1.ListOptions) (result *store.StoreServiceList, err error)

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

func (*FakeStoreServices) Patch

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

Patch applies the patch and returns the patched storeService.

func (*FakeStoreServices) Update

func (c *FakeStoreServices) Update(ctx context.Context, storeService *store.StoreService, opts v1.UpdateOptions) (result *store.StoreService, err error)

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

func (*FakeStoreServices) UpdateStatus

func (c *FakeStoreServices) UpdateStatus(ctx context.Context, storeService *store.StoreService, opts v1.UpdateOptions) (*store.StoreService, error)

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

func (*FakeStoreServices) Watch

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

Jump to

Keyboard shortcuts

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