fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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 added in v0.3.0

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

FakeInferenceServices implements InferenceServiceInterface

func (*FakeInferenceServices) Create added in v0.3.0

func (c *FakeInferenceServices) Create(inferenceService *v1alpha2.InferenceService) (result *v1alpha2.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 added in v0.3.0

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 added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeInferenceServices) Get added in v0.3.0

func (c *FakeInferenceServices) Get(name string, options v1.GetOptions) (result *v1alpha2.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 added in v0.3.0

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

func (*FakeInferenceServices) Patch added in v0.3.0

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

Patch applies the patch and returns the patched inferenceService.

func (*FakeInferenceServices) Update added in v0.3.0

func (c *FakeInferenceServices) Update(inferenceService *v1alpha2.InferenceService) (result *v1alpha2.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 added in v0.3.0

func (c *FakeInferenceServices) UpdateStatus(inferenceService *v1alpha2.InferenceService) (*v1alpha2.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 added in v0.3.0

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

type FakeServingV1alpha2

type FakeServingV1alpha2 struct {
	*testing.Fake
}

func (*FakeServingV1alpha2) InferenceServices added in v0.3.0

func (c *FakeServingV1alpha2) InferenceServices(namespace string) v1alpha2.InferenceServiceInterface

func (*FakeServingV1alpha2) RESTClient

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