fake

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 10 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 FakeIngressRouteTCPs

type FakeIngressRouteTCPs struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeIngressRouteTCPs implements IngressRouteTCPInterface

func (*FakeIngressRouteTCPs) Create

func (c *FakeIngressRouteTCPs) Create(ctx context.Context, ingressRouteTCP *v1alpha1.IngressRouteTCP, opts v1.CreateOptions) (result *v1alpha1.IngressRouteTCP, err error)

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

func (*FakeIngressRouteTCPs) Delete

func (c *FakeIngressRouteTCPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIngressRouteTCPs) DeleteCollection

func (c *FakeIngressRouteTCPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIngressRouteTCPs) Get

func (c *FakeIngressRouteTCPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IngressRouteTCP, err error)

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

func (*FakeIngressRouteTCPs) List

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

func (*FakeIngressRouteTCPs) Patch

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

Patch applies the patch and returns the patched ingressRouteTCP.

func (*FakeIngressRouteTCPs) Update

func (c *FakeIngressRouteTCPs) Update(ctx context.Context, ingressRouteTCP *v1alpha1.IngressRouteTCP, opts v1.UpdateOptions) (result *v1alpha1.IngressRouteTCP, err error)

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

func (*FakeIngressRouteTCPs) Watch

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

type FakeIngressRouteUDPs

type FakeIngressRouteUDPs struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeIngressRouteUDPs implements IngressRouteUDPInterface

func (*FakeIngressRouteUDPs) Create

func (c *FakeIngressRouteUDPs) Create(ctx context.Context, ingressRouteUDP *v1alpha1.IngressRouteUDP, opts v1.CreateOptions) (result *v1alpha1.IngressRouteUDP, err error)

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

func (*FakeIngressRouteUDPs) Delete

func (c *FakeIngressRouteUDPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIngressRouteUDPs) DeleteCollection

func (c *FakeIngressRouteUDPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIngressRouteUDPs) Get

func (c *FakeIngressRouteUDPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IngressRouteUDP, err error)

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

func (*FakeIngressRouteUDPs) List

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

func (*FakeIngressRouteUDPs) Patch

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

Patch applies the patch and returns the patched ingressRouteUDP.

func (*FakeIngressRouteUDPs) Update

func (c *FakeIngressRouteUDPs) Update(ctx context.Context, ingressRouteUDP *v1alpha1.IngressRouteUDP, opts v1.UpdateOptions) (result *v1alpha1.IngressRouteUDP, err error)

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

func (*FakeIngressRouteUDPs) Watch

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

type FakeIngressRoutes

type FakeIngressRoutes struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeIngressRoutes implements IngressRouteInterface

func (*FakeIngressRoutes) Create

func (c *FakeIngressRoutes) Create(ctx context.Context, ingressRoute *v1alpha1.IngressRoute, opts v1.CreateOptions) (result *v1alpha1.IngressRoute, err error)

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

func (*FakeIngressRoutes) Delete

func (c *FakeIngressRoutes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeIngressRoutes) DeleteCollection

func (c *FakeIngressRoutes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeIngressRoutes) Get

func (c *FakeIngressRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IngressRoute, err error)

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

func (*FakeIngressRoutes) List

func (c *FakeIngressRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IngressRouteList, err error)

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

func (*FakeIngressRoutes) Patch

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

Patch applies the patch and returns the patched ingressRoute.

func (*FakeIngressRoutes) Update

func (c *FakeIngressRoutes) Update(ctx context.Context, ingressRoute *v1alpha1.IngressRoute, opts v1.UpdateOptions) (result *v1alpha1.IngressRoute, err error)

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

func (*FakeIngressRoutes) Watch

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

type FakeMiddlewareTCPs added in v2.5.0

type FakeMiddlewareTCPs struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeMiddlewareTCPs implements MiddlewareTCPInterface

func (*FakeMiddlewareTCPs) Create added in v2.5.0

func (c *FakeMiddlewareTCPs) Create(ctx context.Context, middlewareTCP *v1alpha1.MiddlewareTCP, opts v1.CreateOptions) (result *v1alpha1.MiddlewareTCP, err error)

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

func (*FakeMiddlewareTCPs) Delete added in v2.5.0

func (c *FakeMiddlewareTCPs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMiddlewareTCPs) DeleteCollection added in v2.5.0

func (c *FakeMiddlewareTCPs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMiddlewareTCPs) Get added in v2.5.0

func (c *FakeMiddlewareTCPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MiddlewareTCP, err error)

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

func (*FakeMiddlewareTCPs) List added in v2.5.0

func (c *FakeMiddlewareTCPs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MiddlewareTCPList, err error)

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

func (*FakeMiddlewareTCPs) Patch added in v2.5.0

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

Patch applies the patch and returns the patched middlewareTCP.

func (*FakeMiddlewareTCPs) Update added in v2.5.0

func (c *FakeMiddlewareTCPs) Update(ctx context.Context, middlewareTCP *v1alpha1.MiddlewareTCP, opts v1.UpdateOptions) (result *v1alpha1.MiddlewareTCP, err error)

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

func (*FakeMiddlewareTCPs) Watch added in v2.5.0

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

type FakeMiddlewares

type FakeMiddlewares struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeMiddlewares implements MiddlewareInterface

func (*FakeMiddlewares) Create

func (c *FakeMiddlewares) Create(ctx context.Context, middleware *v1alpha1.Middleware, opts v1.CreateOptions) (result *v1alpha1.Middleware, err error)

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

func (*FakeMiddlewares) Delete

func (c *FakeMiddlewares) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMiddlewares) DeleteCollection

func (c *FakeMiddlewares) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMiddlewares) Get

func (c *FakeMiddlewares) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Middleware, err error)

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

func (*FakeMiddlewares) List

func (c *FakeMiddlewares) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MiddlewareList, err error)

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

func (*FakeMiddlewares) Patch

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

Patch applies the patch and returns the patched middleware.

func (*FakeMiddlewares) Update

func (c *FakeMiddlewares) Update(ctx context.Context, middleware *v1alpha1.Middleware, opts v1.UpdateOptions) (result *v1alpha1.Middleware, err error)

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

func (*FakeMiddlewares) Watch

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

type FakeServersTransports added in v2.4.0

type FakeServersTransports struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeServersTransports implements ServersTransportInterface

func (*FakeServersTransports) Create added in v2.4.0

func (c *FakeServersTransports) Create(ctx context.Context, serversTransport *v1alpha1.ServersTransport, opts v1.CreateOptions) (result *v1alpha1.ServersTransport, err error)

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

func (*FakeServersTransports) Delete added in v2.4.0

func (c *FakeServersTransports) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeServersTransports) DeleteCollection added in v2.4.0

func (c *FakeServersTransports) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeServersTransports) Get added in v2.4.0

func (c *FakeServersTransports) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServersTransport, err error)

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

func (*FakeServersTransports) List added in v2.4.0

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

func (*FakeServersTransports) Patch added in v2.4.0

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

Patch applies the patch and returns the patched serversTransport.

func (*FakeServersTransports) Update added in v2.4.0

func (c *FakeServersTransports) Update(ctx context.Context, serversTransport *v1alpha1.ServersTransport, opts v1.UpdateOptions) (result *v1alpha1.ServersTransport, err error)

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

func (*FakeServersTransports) Watch added in v2.4.0

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

type FakeTLSOptions

type FakeTLSOptions struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeTLSOptions implements TLSOptionInterface

func (*FakeTLSOptions) Create

func (c *FakeTLSOptions) Create(ctx context.Context, tLSOption *v1alpha1.TLSOption, opts v1.CreateOptions) (result *v1alpha1.TLSOption, err error)

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

func (*FakeTLSOptions) Delete

func (c *FakeTLSOptions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTLSOptions) DeleteCollection

func (c *FakeTLSOptions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTLSOptions) Get

func (c *FakeTLSOptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TLSOption, err error)

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

func (*FakeTLSOptions) List

func (c *FakeTLSOptions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TLSOptionList, err error)

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

func (*FakeTLSOptions) Patch

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

Patch applies the patch and returns the patched tLSOption.

func (*FakeTLSOptions) Update

func (c *FakeTLSOptions) Update(ctx context.Context, tLSOption *v1alpha1.TLSOption, opts v1.UpdateOptions) (result *v1alpha1.TLSOption, err error)

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

func (*FakeTLSOptions) Watch

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

type FakeTLSStores

type FakeTLSStores struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeTLSStores implements TLSStoreInterface

func (*FakeTLSStores) Create

func (c *FakeTLSStores) Create(ctx context.Context, tLSStore *v1alpha1.TLSStore, opts v1.CreateOptions) (result *v1alpha1.TLSStore, err error)

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

func (*FakeTLSStores) Delete

func (c *FakeTLSStores) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTLSStores) DeleteCollection

func (c *FakeTLSStores) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTLSStores) Get

func (c *FakeTLSStores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TLSStore, err error)

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

func (*FakeTLSStores) List

func (c *FakeTLSStores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TLSStoreList, err error)

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

func (*FakeTLSStores) Patch

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

Patch applies the patch and returns the patched tLSStore.

func (*FakeTLSStores) Update

func (c *FakeTLSStores) Update(ctx context.Context, tLSStore *v1alpha1.TLSStore, opts v1.UpdateOptions) (result *v1alpha1.TLSStore, err error)

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

func (*FakeTLSStores) Watch

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

type FakeTraefikServices

type FakeTraefikServices struct {
	Fake *FakeTraefikV1alpha1
	// contains filtered or unexported fields
}

FakeTraefikServices implements TraefikServiceInterface

func (*FakeTraefikServices) Create

func (c *FakeTraefikServices) Create(ctx context.Context, traefikService *v1alpha1.TraefikService, opts v1.CreateOptions) (result *v1alpha1.TraefikService, err error)

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

func (*FakeTraefikServices) Delete

func (c *FakeTraefikServices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTraefikServices) DeleteCollection

func (c *FakeTraefikServices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTraefikServices) Get

func (c *FakeTraefikServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TraefikService, err error)

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

func (*FakeTraefikServices) List

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

func (*FakeTraefikServices) Patch

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

Patch applies the patch and returns the patched traefikService.

func (*FakeTraefikServices) Update

func (c *FakeTraefikServices) Update(ctx context.Context, traefikService *v1alpha1.TraefikService, opts v1.UpdateOptions) (result *v1alpha1.TraefikService, err error)

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

func (*FakeTraefikServices) Watch

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

type FakeTraefikV1alpha1

type FakeTraefikV1alpha1 struct {
	*testing.Fake
}

func (*FakeTraefikV1alpha1) IngressRouteTCPs

func (c *FakeTraefikV1alpha1) IngressRouteTCPs(namespace string) v1alpha1.IngressRouteTCPInterface

func (*FakeTraefikV1alpha1) IngressRouteUDPs

func (c *FakeTraefikV1alpha1) IngressRouteUDPs(namespace string) v1alpha1.IngressRouteUDPInterface

func (*FakeTraefikV1alpha1) IngressRoutes

func (c *FakeTraefikV1alpha1) IngressRoutes(namespace string) v1alpha1.IngressRouteInterface

func (*FakeTraefikV1alpha1) MiddlewareTCPs added in v2.5.0

func (c *FakeTraefikV1alpha1) MiddlewareTCPs(namespace string) v1alpha1.MiddlewareTCPInterface

func (*FakeTraefikV1alpha1) Middlewares

func (c *FakeTraefikV1alpha1) Middlewares(namespace string) v1alpha1.MiddlewareInterface

func (*FakeTraefikV1alpha1) RESTClient

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

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

func (*FakeTraefikV1alpha1) ServersTransports added in v2.4.0

func (c *FakeTraefikV1alpha1) ServersTransports(namespace string) v1alpha1.ServersTransportInterface

func (*FakeTraefikV1alpha1) TLSOptions

func (c *FakeTraefikV1alpha1) TLSOptions(namespace string) v1alpha1.TLSOptionInterface

func (*FakeTraefikV1alpha1) TLSStores

func (c *FakeTraefikV1alpha1) TLSStores(namespace string) v1alpha1.TLSStoreInterface

func (*FakeTraefikV1alpha1) TraefikServices

func (c *FakeTraefikV1alpha1) TraefikServices(namespace string) v1alpha1.TraefikServiceInterface

Jump to

Keyboard shortcuts

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