fake

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 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 FakeDevSpaceIDEs

type FakeDevSpaceIDEs struct {
	Fake *FakeRoboscaleV1alpha1
	// contains filtered or unexported fields
}

FakeDevSpaceIDEs implements DevSpaceIDEInterface

func (*FakeDevSpaceIDEs) Create

func (c *FakeDevSpaceIDEs) Create(ctx context.Context, devSpaceIDE *v1alpha1.DevSpaceIDE, opts v1.CreateOptions) (result *v1alpha1.DevSpaceIDE, err error)

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

func (*FakeDevSpaceIDEs) Delete

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

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

func (*FakeDevSpaceIDEs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDevSpaceIDEs) Get

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

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

func (*FakeDevSpaceIDEs) List

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

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

func (*FakeDevSpaceIDEs) Patch

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

Patch applies the patch and returns the patched devSpaceIDE.

func (*FakeDevSpaceIDEs) Update

func (c *FakeDevSpaceIDEs) Update(ctx context.Context, devSpaceIDE *v1alpha1.DevSpaceIDE, opts v1.UpdateOptions) (result *v1alpha1.DevSpaceIDE, err error)

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

func (*FakeDevSpaceIDEs) UpdateStatus

func (c *FakeDevSpaceIDEs) UpdateStatus(ctx context.Context, devSpaceIDE *v1alpha1.DevSpaceIDE, opts v1.UpdateOptions) (*v1alpha1.DevSpaceIDE, error)

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

func (*FakeDevSpaceIDEs) Watch

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

type FakeDevSpaceVDIs

type FakeDevSpaceVDIs struct {
	Fake *FakeRoboscaleV1alpha1
	// contains filtered or unexported fields
}

FakeDevSpaceVDIs implements DevSpaceVDIInterface

func (*FakeDevSpaceVDIs) Create

func (c *FakeDevSpaceVDIs) Create(ctx context.Context, devSpaceVDI *v1alpha1.DevSpaceVDI, opts v1.CreateOptions) (result *v1alpha1.DevSpaceVDI, err error)

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

func (*FakeDevSpaceVDIs) Delete

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

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

func (*FakeDevSpaceVDIs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDevSpaceVDIs) Get

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

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

func (*FakeDevSpaceVDIs) List

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

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

func (*FakeDevSpaceVDIs) Patch

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

Patch applies the patch and returns the patched devSpaceVDI.

func (*FakeDevSpaceVDIs) Update

func (c *FakeDevSpaceVDIs) Update(ctx context.Context, devSpaceVDI *v1alpha1.DevSpaceVDI, opts v1.UpdateOptions) (result *v1alpha1.DevSpaceVDI, err error)

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

func (*FakeDevSpaceVDIs) UpdateStatus

func (c *FakeDevSpaceVDIs) UpdateStatus(ctx context.Context, devSpaceVDI *v1alpha1.DevSpaceVDI, opts v1.UpdateOptions) (*v1alpha1.DevSpaceVDI, error)

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

func (*FakeDevSpaceVDIs) Watch

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

type FakeDevSpaces

type FakeDevSpaces struct {
	Fake *FakeRoboscaleV1alpha1
	// contains filtered or unexported fields
}

FakeDevSpaces implements DevSpaceInterface

func (*FakeDevSpaces) Create

func (c *FakeDevSpaces) Create(ctx context.Context, devspace *v1alpha1.DevSpace, opts v1.CreateOptions) (result *v1alpha1.DevSpace, err error)

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

func (*FakeDevSpaces) Delete

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

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

func (*FakeDevSpaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDevSpaces) Get

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

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

func (*FakeDevSpaces) List

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

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

func (*FakeDevSpaces) Patch

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

Patch applies the patch and returns the patched devspace.

func (*FakeDevSpaces) Update

func (c *FakeDevSpaces) Update(ctx context.Context, devspace *v1alpha1.DevSpace, opts v1.UpdateOptions) (result *v1alpha1.DevSpace, err error)

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

func (*FakeDevSpaces) UpdateStatus

func (c *FakeDevSpaces) UpdateStatus(ctx context.Context, devspace *v1alpha1.DevSpace, opts v1.UpdateOptions) (*v1alpha1.DevSpace, error)

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

func (*FakeDevSpaces) Watch

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

type FakeDevSuites

type FakeDevSuites struct {
	Fake *FakeRoboscaleV1alpha1
	// contains filtered or unexported fields
}

FakeDevSuites implements DevSuiteInterface

func (*FakeDevSuites) Create

func (c *FakeDevSuites) Create(ctx context.Context, devSuite *v1alpha1.DevSuite, opts v1.CreateOptions) (result *v1alpha1.DevSuite, err error)

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

func (*FakeDevSuites) Delete

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

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

func (*FakeDevSuites) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDevSuites) Get

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

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

func (*FakeDevSuites) List

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

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

func (*FakeDevSuites) Patch

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

Patch applies the patch and returns the patched devSuite.

func (*FakeDevSuites) Update

func (c *FakeDevSuites) Update(ctx context.Context, devSuite *v1alpha1.DevSuite, opts v1.UpdateOptions) (result *v1alpha1.DevSuite, err error)

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

func (*FakeDevSuites) UpdateStatus

func (c *FakeDevSuites) UpdateStatus(ctx context.Context, devSuite *v1alpha1.DevSuite, opts v1.UpdateOptions) (*v1alpha1.DevSuite, error)

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

func (*FakeDevSuites) Watch

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

type FakeRoboscaleV1alpha1

type FakeRoboscaleV1alpha1 struct {
	*testing.Fake
}

func (*FakeRoboscaleV1alpha1) DevSpaceIDEs

func (c *FakeRoboscaleV1alpha1) DevSpaceIDEs(namespace string) v1alpha1.DevSpaceIDEInterface

func (*FakeRoboscaleV1alpha1) DevSpaceVDIs

func (c *FakeRoboscaleV1alpha1) DevSpaceVDIs(namespace string) v1alpha1.DevSpaceVDIInterface

func (*FakeRoboscaleV1alpha1) DevSpaces

func (c *FakeRoboscaleV1alpha1) DevSpaces(namespace string) v1alpha1.DevSpaceInterface

func (*FakeRoboscaleV1alpha1) DevSuites

func (c *FakeRoboscaleV1alpha1) DevSuites(namespace string) v1alpha1.DevSuiteInterface

func (*FakeRoboscaleV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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