fake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 FakeCells

type FakeCells struct {
	Fake *FakeMeshV1alpha2
	// contains filtered or unexported fields
}

FakeCells implements CellInterface

func (*FakeCells) Create

func (c *FakeCells) Create(cell *v1alpha2.Cell) (result *v1alpha2.Cell, err error)

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

func (*FakeCells) Delete

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

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

func (*FakeCells) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCells) Get

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

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

func (*FakeCells) List

func (c *FakeCells) List(opts v1.ListOptions) (result *v1alpha2.CellList, err error)

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

func (*FakeCells) Patch

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

Patch applies the patch and returns the patched cell.

func (*FakeCells) Update

func (c *FakeCells) Update(cell *v1alpha2.Cell) (result *v1alpha2.Cell, err error)

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

func (*FakeCells) UpdateStatus

func (c *FakeCells) UpdateStatus(cell *v1alpha2.Cell) (*v1alpha2.Cell, error)

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

func (*FakeCells) Watch

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

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

type FakeComponents

type FakeComponents struct {
	Fake *FakeMeshV1alpha2
	// contains filtered or unexported fields
}

FakeComponents implements ComponentInterface

func (*FakeComponents) Create

func (c *FakeComponents) Create(component *v1alpha2.Component) (result *v1alpha2.Component, err error)

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

func (*FakeComponents) Delete

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

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

func (*FakeComponents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComponents) Get

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

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

func (*FakeComponents) List

func (c *FakeComponents) List(opts v1.ListOptions) (result *v1alpha2.ComponentList, err error)

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

func (*FakeComponents) Patch

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

Patch applies the patch and returns the patched component.

func (*FakeComponents) Update

func (c *FakeComponents) Update(component *v1alpha2.Component) (result *v1alpha2.Component, err error)

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

func (*FakeComponents) UpdateStatus

func (c *FakeComponents) UpdateStatus(component *v1alpha2.Component) (*v1alpha2.Component, error)

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

func (*FakeComponents) Watch

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

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

type FakeComposites

type FakeComposites struct {
	Fake *FakeMeshV1alpha2
	// contains filtered or unexported fields
}

FakeComposites implements CompositeInterface

func (*FakeComposites) Create

func (c *FakeComposites) Create(composite *v1alpha2.Composite) (result *v1alpha2.Composite, err error)

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

func (*FakeComposites) Delete

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

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

func (*FakeComposites) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComposites) Get

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

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

func (*FakeComposites) List

func (c *FakeComposites) List(opts v1.ListOptions) (result *v1alpha2.CompositeList, err error)

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

func (*FakeComposites) Patch

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

Patch applies the patch and returns the patched composite.

func (*FakeComposites) Update

func (c *FakeComposites) Update(composite *v1alpha2.Composite) (result *v1alpha2.Composite, err error)

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

func (*FakeComposites) UpdateStatus

func (c *FakeComposites) UpdateStatus(composite *v1alpha2.Composite) (*v1alpha2.Composite, error)

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

func (*FakeComposites) Watch

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

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

type FakeGateways

type FakeGateways struct {
	Fake *FakeMeshV1alpha2
	// contains filtered or unexported fields
}

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(gateway *v1alpha2.Gateway) (result *v1alpha2.Gateway, err error)

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

func (*FakeGateways) Delete

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

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

func (*FakeGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

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

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

func (*FakeGateways) List

func (c *FakeGateways) List(opts v1.ListOptions) (result *v1alpha2.GatewayList, err error)

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

func (*FakeGateways) Patch

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(gateway *v1alpha2.Gateway) (result *v1alpha2.Gateway, err error)

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

func (*FakeGateways) UpdateStatus

func (c *FakeGateways) UpdateStatus(gateway *v1alpha2.Gateway) (*v1alpha2.Gateway, error)

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

func (*FakeGateways) Watch

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

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

type FakeMeshV1alpha2

type FakeMeshV1alpha2 struct {
	*testing.Fake
}

func (*FakeMeshV1alpha2) Cells

func (c *FakeMeshV1alpha2) Cells(namespace string) v1alpha2.CellInterface

func (*FakeMeshV1alpha2) Components

func (c *FakeMeshV1alpha2) Components(namespace string) v1alpha2.ComponentInterface

func (*FakeMeshV1alpha2) Composites

func (c *FakeMeshV1alpha2) Composites(namespace string) v1alpha2.CompositeInterface

func (*FakeMeshV1alpha2) Gateways

func (c *FakeMeshV1alpha2) Gateways(namespace string) v1alpha2.GatewayInterface

func (*FakeMeshV1alpha2) RESTClient

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

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

func (*FakeMeshV1alpha2) TokenServices

func (c *FakeMeshV1alpha2) TokenServices(namespace string) v1alpha2.TokenServiceInterface

type FakeTokenServices

type FakeTokenServices struct {
	Fake *FakeMeshV1alpha2
	// contains filtered or unexported fields
}

FakeTokenServices implements TokenServiceInterface

func (*FakeTokenServices) Create

func (c *FakeTokenServices) Create(tokenService *v1alpha2.TokenService) (result *v1alpha2.TokenService, err error)

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

func (*FakeTokenServices) Delete

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

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

func (*FakeTokenServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTokenServices) Get

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

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

func (*FakeTokenServices) List

func (c *FakeTokenServices) List(opts v1.ListOptions) (result *v1alpha2.TokenServiceList, err error)

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

func (*FakeTokenServices) Patch

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

Patch applies the patch and returns the patched tokenService.

func (*FakeTokenServices) Update

func (c *FakeTokenServices) Update(tokenService *v1alpha2.TokenService) (result *v1alpha2.TokenService, err error)

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

func (*FakeTokenServices) UpdateStatus

func (c *FakeTokenServices) UpdateStatus(tokenService *v1alpha2.TokenService) (*v1alpha2.TokenService, error)

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

func (*FakeTokenServices) Watch

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

Jump to

Keyboard shortcuts

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