fake

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 FakeConfigurations

type FakeConfigurations struct {
	Fake *FakeServingV1
	// contains filtered or unexported fields
}

FakeConfigurations implements ConfigurationInterface

func (*FakeConfigurations) Create

func (c *FakeConfigurations) Create(configuration *servingv1.Configuration) (result *servingv1.Configuration, err error)

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

func (*FakeConfigurations) Delete

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

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

func (*FakeConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

func (c *FakeConfigurations) Get(name string, options v1.GetOptions) (result *servingv1.Configuration, err error)

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

func (*FakeConfigurations) List

func (c *FakeConfigurations) List(opts v1.ListOptions) (result *servingv1.ConfigurationList, err error)

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

func (*FakeConfigurations) Patch

func (c *FakeConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *servingv1.Configuration, err error)

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(configuration *servingv1.Configuration) (result *servingv1.Configuration, err error)

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

func (*FakeConfigurations) UpdateStatus

func (c *FakeConfigurations) UpdateStatus(configuration *servingv1.Configuration) (*servingv1.Configuration, error)

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

func (*FakeConfigurations) Watch

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

type FakeRevisions

type FakeRevisions struct {
	Fake *FakeServingV1
	// contains filtered or unexported fields
}

FakeRevisions implements RevisionInterface

func (*FakeRevisions) Create

func (c *FakeRevisions) Create(revision *servingv1.Revision) (result *servingv1.Revision, err error)

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

func (*FakeRevisions) Delete

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

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

func (*FakeRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRevisions) Get

func (c *FakeRevisions) Get(name string, options v1.GetOptions) (result *servingv1.Revision, err error)

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

func (*FakeRevisions) List

func (c *FakeRevisions) List(opts v1.ListOptions) (result *servingv1.RevisionList, err error)

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

func (*FakeRevisions) Patch

func (c *FakeRevisions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *servingv1.Revision, err error)

Patch applies the patch and returns the patched revision.

func (*FakeRevisions) Update

func (c *FakeRevisions) Update(revision *servingv1.Revision) (result *servingv1.Revision, err error)

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

func (*FakeRevisions) UpdateStatus

func (c *FakeRevisions) UpdateStatus(revision *servingv1.Revision) (*servingv1.Revision, error)

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

func (*FakeRevisions) Watch

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

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

type FakeRoutes

type FakeRoutes struct {
	Fake *FakeServingV1
	// contains filtered or unexported fields
}

FakeRoutes implements RouteInterface

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(route *servingv1.Route) (result *servingv1.Route, err error)

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

func (*FakeRoutes) Delete

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

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

func (*FakeRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoutes) Get

func (c *FakeRoutes) Get(name string, options v1.GetOptions) (result *servingv1.Route, err error)

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

func (*FakeRoutes) List

func (c *FakeRoutes) List(opts v1.ListOptions) (result *servingv1.RouteList, err error)

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

func (*FakeRoutes) Patch

func (c *FakeRoutes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *servingv1.Route, err error)

Patch applies the patch and returns the patched route.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(route *servingv1.Route) (result *servingv1.Route, err error)

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

func (*FakeRoutes) UpdateStatus

func (c *FakeRoutes) UpdateStatus(route *servingv1.Route) (*servingv1.Route, error)

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

func (*FakeRoutes) Watch

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

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

type FakeServices

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

FakeServices implements ServiceInterface

func (*FakeServices) Create

func (c *FakeServices) Create(service *servingv1.Service) (result *servingv1.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 *servingv1.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 *servingv1.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 *servingv1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(service *servingv1.Service) (result *servingv1.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 *servingv1.Service) (*servingv1.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.

type FakeServingV1

type FakeServingV1 struct {
	*testing.Fake
}

func (*FakeServingV1) Configurations

func (c *FakeServingV1) Configurations(namespace string) v1.ConfigurationInterface

func (*FakeServingV1) RESTClient

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

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

func (*FakeServingV1) Revisions

func (c *FakeServingV1) Revisions(namespace string) v1.RevisionInterface

func (*FakeServingV1) Routes

func (c *FakeServingV1) Routes(namespace string) v1.RouteInterface

func (*FakeServingV1) Services

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

Jump to

Keyboard shortcuts

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