fake

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 9

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(ctx context.Context, configuration *servingv1.Configuration, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

func (c *FakeConfigurations) Get(ctx context.Context, 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

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

func (*FakeConfigurations) Patch

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

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(ctx context.Context, configuration *servingv1.Configuration, opts v1.UpdateOptions) (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(ctx context.Context, configuration *servingv1.Configuration, opts v1.UpdateOptions) (*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(ctx context.Context, revision *servingv1.Revision, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRevisions) Get

func (c *FakeRevisions) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *servingv1.Revision, err error)

Patch applies the patch and returns the patched revision.

func (*FakeRevisions) Update

func (c *FakeRevisions) Update(ctx context.Context, revision *servingv1.Revision, opts v1.UpdateOptions) (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(ctx context.Context, revision *servingv1.Revision, opts v1.UpdateOptions) (*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

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(ctx context.Context, route *servingv1.Route, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoutes) Get

func (c *FakeRoutes) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *servingv1.Route, err error)

Patch applies the patch and returns the patched route.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(ctx context.Context, route *servingv1.Route, opts v1.UpdateOptions) (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(ctx context.Context, route *servingv1.Route, opts v1.UpdateOptions) (*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(ctx context.Context, 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(ctx context.Context, service *servingv1.Service, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServices) Get

func (c *FakeServices) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *servingv1.Service, err error)

Patch applies the patch and returns the patched service.

func (*FakeServices) Update

func (c *FakeServices) Update(ctx context.Context, service *servingv1.Service, opts v1.UpdateOptions) (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(ctx context.Context, service *servingv1.Service, opts v1.UpdateOptions) (*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(ctx context.Context, 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