fake

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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 FakeApps

type FakeApps struct {
	Fake *FakeRioV1
	// contains filtered or unexported fields
}

FakeApps implements AppInterface

func (*FakeApps) Create

func (c *FakeApps) Create(app *riocattleiov1.App) (result *riocattleiov1.App, err error)

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

func (*FakeApps) Delete

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

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

func (*FakeApps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApps) Get

func (c *FakeApps) Get(name string, options v1.GetOptions) (result *riocattleiov1.App, err error)

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

func (*FakeApps) List

func (c *FakeApps) List(opts v1.ListOptions) (result *riocattleiov1.AppList, err error)

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

func (*FakeApps) Patch

func (c *FakeApps) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *riocattleiov1.App, err error)

Patch applies the patch and returns the patched app.

func (*FakeApps) Update

func (c *FakeApps) Update(app *riocattleiov1.App) (result *riocattleiov1.App, err error)

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

func (*FakeApps) UpdateStatus

func (c *FakeApps) UpdateStatus(app *riocattleiov1.App) (*riocattleiov1.App, error)

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

func (*FakeApps) Watch

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

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

type FakeExternalServices

type FakeExternalServices struct {
	Fake *FakeRioV1
	// contains filtered or unexported fields
}

FakeExternalServices implements ExternalServiceInterface

func (*FakeExternalServices) Create

func (c *FakeExternalServices) Create(externalService *riocattleiov1.ExternalService) (result *riocattleiov1.ExternalService, err error)

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

func (*FakeExternalServices) Delete

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

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

func (*FakeExternalServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalServices) Get

func (c *FakeExternalServices) Get(name string, options v1.GetOptions) (result *riocattleiov1.ExternalService, err error)

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

func (*FakeExternalServices) List

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

func (*FakeExternalServices) Patch

func (c *FakeExternalServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *riocattleiov1.ExternalService, err error)

Patch applies the patch and returns the patched externalService.

func (*FakeExternalServices) Update

func (c *FakeExternalServices) Update(externalService *riocattleiov1.ExternalService) (result *riocattleiov1.ExternalService, err error)

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

func (*FakeExternalServices) UpdateStatus

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

func (*FakeExternalServices) Watch

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

type FakeRioV1

type FakeRioV1 struct {
	*testing.Fake
}

func (*FakeRioV1) Apps

func (c *FakeRioV1) Apps(namespace string) v1.AppInterface

func (*FakeRioV1) ExternalServices

func (c *FakeRioV1) ExternalServices(namespace string) v1.ExternalServiceInterface

func (*FakeRioV1) RESTClient

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

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

func (*FakeRioV1) Routers

func (c *FakeRioV1) Routers(namespace string) v1.RouterInterface

func (*FakeRioV1) Services

func (c *FakeRioV1) Services(namespace string) v1.ServiceInterface

type FakeRouters

type FakeRouters struct {
	Fake *FakeRioV1
	// contains filtered or unexported fields
}

FakeRouters implements RouterInterface

func (*FakeRouters) Create

func (c *FakeRouters) Create(router *riocattleiov1.Router) (result *riocattleiov1.Router, err error)

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

func (*FakeRouters) Delete

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

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

func (*FakeRouters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRouters) Get

func (c *FakeRouters) Get(name string, options v1.GetOptions) (result *riocattleiov1.Router, err error)

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

func (*FakeRouters) List

func (c *FakeRouters) List(opts v1.ListOptions) (result *riocattleiov1.RouterList, err error)

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

func (*FakeRouters) Patch

func (c *FakeRouters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *riocattleiov1.Router, err error)

Patch applies the patch and returns the patched router.

func (*FakeRouters) Update

func (c *FakeRouters) Update(router *riocattleiov1.Router) (result *riocattleiov1.Router, err error)

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

func (*FakeRouters) UpdateStatus

func (c *FakeRouters) UpdateStatus(router *riocattleiov1.Router) (*riocattleiov1.Router, error)

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

func (*FakeRouters) Watch

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

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

type FakeServices

type FakeServices struct {
	Fake *FakeRioV1
	// contains filtered or unexported fields
}

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(service *riocattleiov1.Service) (result *riocattleiov1.Service, err error)

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

func (*FakeServices) Delete

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

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

func (*FakeServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServices) Get

func (c *FakeServices) Get(name string, options v1.GetOptions) (result *riocattleiov1.Service, err error)

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

func (*FakeServices) List

func (c *FakeServices) List(opts v1.ListOptions) (result *riocattleiov1.ServiceList, err error)

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

func (*FakeServices) Patch

func (c *FakeServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *riocattleiov1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(service *riocattleiov1.Service) (result *riocattleiov1.Service, err error)

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

func (*FakeServices) UpdateStatus

func (c *FakeServices) UpdateStatus(service *riocattleiov1.Service) (*riocattleiov1.Service, error)

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

func (*FakeServices) Watch

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

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

Jump to

Keyboard shortcuts

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