fake

package
v0.8.100 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 9 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 FakeInferenceServices

type FakeInferenceServices struct {
	Fake *FakeServingV1beta1
	// contains filtered or unexported fields
}

FakeInferenceServices implements InferenceServiceInterface

func (*FakeInferenceServices) Create

func (c *FakeInferenceServices) Create(inferenceService *v1beta1.InferenceService) (result *v1beta1.InferenceService, err error)

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

func (*FakeInferenceServices) Delete

func (c *FakeInferenceServices) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeInferenceServices) DeleteCollection

func (c *FakeInferenceServices) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeInferenceServices) Get

func (c *FakeInferenceServices) Get(name string, options v1.GetOptions) (result *v1beta1.InferenceService, err error)

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

func (*FakeInferenceServices) List

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

func (*FakeInferenceServices) Patch

func (c *FakeInferenceServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.InferenceService, err error)

Patch applies the patch and returns the patched inferenceService.

func (*FakeInferenceServices) Update

func (c *FakeInferenceServices) Update(inferenceService *v1beta1.InferenceService) (result *v1beta1.InferenceService, err error)

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

func (*FakeInferenceServices) UpdateStatus

func (c *FakeInferenceServices) UpdateStatus(inferenceService *v1beta1.InferenceService) (*v1beta1.InferenceService, error)

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

func (*FakeInferenceServices) Watch

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

type FakeServingV1beta1

type FakeServingV1beta1 struct {
	*testing.Fake
}

func (*FakeServingV1beta1) InferenceServices

func (c *FakeServingV1beta1) InferenceServices(namespace string) v1beta1.InferenceServiceInterface

func (*FakeServingV1beta1) RESTClient

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