fake

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 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 FakeApis

type FakeApis struct {
	Fake *FakeGatewayV1alpha2
	// contains filtered or unexported fields
}

FakeApis implements ApiInterface

func (*FakeApis) Create

func (c *FakeApis) Create(api *v1alpha2.Api) (result *v1alpha2.Api, err error)

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

func (*FakeApis) Delete

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

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

func (*FakeApis) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApis) Get

func (c *FakeApis) Get(name string, options v1.GetOptions) (result *v1alpha2.Api, err error)

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

func (*FakeApis) List

func (c *FakeApis) List(opts v1.ListOptions) (result *v1alpha2.ApiList, err error)

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

func (*FakeApis) Patch

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

Patch applies the patch and returns the patched api.

func (*FakeApis) Update

func (c *FakeApis) Update(api *v1alpha2.Api) (result *v1alpha2.Api, err error)

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

func (*FakeApis) UpdateStatus

func (c *FakeApis) UpdateStatus(api *v1alpha2.Api) (*v1alpha2.Api, error)

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

func (*FakeApis) Watch

func (c *FakeApis) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeGatewayV1alpha2

type FakeGatewayV1alpha2 struct {
	*testing.Fake
}

func (*FakeGatewayV1alpha2) Apis

func (c *FakeGatewayV1alpha2) Apis(namespace string) v1alpha2.ApiInterface

func (*FakeGatewayV1alpha2) RESTClient

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