fake

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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 FakeControlPlaneApplicationBundles

type FakeControlPlaneApplicationBundles struct {
	Fake *FakeUnikornV1alpha1
}

FakeControlPlaneApplicationBundles implements ControlPlaneApplicationBundleInterface

func (*FakeControlPlaneApplicationBundles) Create

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

func (*FakeControlPlaneApplicationBundles) Delete

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

func (*FakeControlPlaneApplicationBundles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControlPlaneApplicationBundles) Get

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

func (*FakeControlPlaneApplicationBundles) List

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

func (*FakeControlPlaneApplicationBundles) Patch

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

Patch applies the patch and returns the patched controlPlaneApplicationBundle.

func (*FakeControlPlaneApplicationBundles) Update

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

func (*FakeControlPlaneApplicationBundles) UpdateStatus

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

func (*FakeControlPlaneApplicationBundles) Watch

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

type FakeControlPlanes

type FakeControlPlanes struct {
	Fake *FakeUnikornV1alpha1
	// contains filtered or unexported fields
}

FakeControlPlanes implements ControlPlaneInterface

func (*FakeControlPlanes) Create

func (c *FakeControlPlanes) Create(ctx context.Context, controlPlane *v1alpha1.ControlPlane, opts v1.CreateOptions) (result *v1alpha1.ControlPlane, err error)

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

func (*FakeControlPlanes) Delete

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

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

func (*FakeControlPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControlPlanes) Get

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

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

func (*FakeControlPlanes) List

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

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

func (*FakeControlPlanes) Patch

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

Patch applies the patch and returns the patched controlPlane.

func (*FakeControlPlanes) Update

func (c *FakeControlPlanes) Update(ctx context.Context, controlPlane *v1alpha1.ControlPlane, opts v1.UpdateOptions) (result *v1alpha1.ControlPlane, err error)

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

func (*FakeControlPlanes) UpdateStatus

func (c *FakeControlPlanes) UpdateStatus(ctx context.Context, controlPlane *v1alpha1.ControlPlane, opts v1.UpdateOptions) (*v1alpha1.ControlPlane, error)

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

func (*FakeControlPlanes) Watch

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

type FakeKubernetesClusterApplicationBundles

type FakeKubernetesClusterApplicationBundles struct {
	Fake *FakeUnikornV1alpha1
}

FakeKubernetesClusterApplicationBundles implements KubernetesClusterApplicationBundleInterface

func (*FakeKubernetesClusterApplicationBundles) Create

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

func (*FakeKubernetesClusterApplicationBundles) Delete

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

func (*FakeKubernetesClusterApplicationBundles) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeKubernetesClusterApplicationBundles) Get

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

func (*FakeKubernetesClusterApplicationBundles) List

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

func (*FakeKubernetesClusterApplicationBundles) Patch

Patch applies the patch and returns the patched kubernetesClusterApplicationBundle.

func (*FakeKubernetesClusterApplicationBundles) Update

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

func (*FakeKubernetesClusterApplicationBundles) UpdateStatus

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

func (*FakeKubernetesClusterApplicationBundles) Watch

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

type FakeKubernetesClusters

type FakeKubernetesClusters struct {
	Fake *FakeUnikornV1alpha1
	// contains filtered or unexported fields
}

FakeKubernetesClusters implements KubernetesClusterInterface

func (*FakeKubernetesClusters) Create

func (c *FakeKubernetesClusters) Create(ctx context.Context, kubernetesCluster *v1alpha1.KubernetesCluster, opts v1.CreateOptions) (result *v1alpha1.KubernetesCluster, err error)

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

func (*FakeKubernetesClusters) Delete

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

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

func (*FakeKubernetesClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubernetesClusters) Get

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

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

func (*FakeKubernetesClusters) List

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

func (*FakeKubernetesClusters) Patch

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

Patch applies the patch and returns the patched kubernetesCluster.

func (*FakeKubernetesClusters) Update

func (c *FakeKubernetesClusters) Update(ctx context.Context, kubernetesCluster *v1alpha1.KubernetesCluster, opts v1.UpdateOptions) (result *v1alpha1.KubernetesCluster, err error)

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

func (*FakeKubernetesClusters) UpdateStatus

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

func (*FakeKubernetesClusters) Watch

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

type FakeProjects

type FakeProjects struct {
	Fake *FakeUnikornV1alpha1
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *v1alpha1.Project, opts v1.CreateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) Delete

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

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

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

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

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

func (*FakeProjects) List

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

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (*v1alpha1.Project, error)

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

func (*FakeProjects) Watch

func (c *FakeProjects) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeUnikornV1alpha1

type FakeUnikornV1alpha1 struct {
	*testing.Fake
}

func (*FakeUnikornV1alpha1) ControlPlaneApplicationBundles

func (c *FakeUnikornV1alpha1) ControlPlaneApplicationBundles() v1alpha1.ControlPlaneApplicationBundleInterface

func (*FakeUnikornV1alpha1) ControlPlanes

func (c *FakeUnikornV1alpha1) ControlPlanes(namespace string) v1alpha1.ControlPlaneInterface

func (*FakeUnikornV1alpha1) KubernetesClusterApplicationBundles

func (c *FakeUnikornV1alpha1) KubernetesClusterApplicationBundles() v1alpha1.KubernetesClusterApplicationBundleInterface

func (*FakeUnikornV1alpha1) KubernetesClusters

func (c *FakeUnikornV1alpha1) KubernetesClusters(namespace string) v1alpha1.KubernetesClusterInterface

func (*FakeUnikornV1alpha1) Projects

func (*FakeUnikornV1alpha1) RESTClient

func (c *FakeUnikornV1alpha1) 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