fake

package
v2.11.26 Latest Latest
Warning

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

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

type FakeApps struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeApps implements AppInterface

func (*FakeApps) Create

func (c *FakeApps) Create(ctx context.Context, app *v1alpha1.App, opts v1.CreateOptions) (result *v1alpha1.App, err error)

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

func (*FakeApps) Delete

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

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

func (*FakeApps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApps) Get

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

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

func (*FakeApps) List

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

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

func (*FakeApps) Patch

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

Patch applies the patch and returns the patched app.

func (*FakeApps) Update

func (c *FakeApps) Update(ctx context.Context, app *v1alpha1.App, opts v1.UpdateOptions) (result *v1alpha1.App, err error)

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

func (*FakeApps) UpdateStatus

func (c *FakeApps) UpdateStatus(ctx context.Context, app *v1alpha1.App, opts v1.UpdateOptions) (*v1alpha1.App, error)

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

func (*FakeApps) Watch

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

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

type FakeBuilds

type FakeBuilds struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeBuilds implements BuildInterface

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(ctx context.Context, build *v1alpha1.Build, opts v1.CreateOptions) (result *v1alpha1.Build, err error)

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

func (*FakeBuilds) Delete

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

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

func (*FakeBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuilds) Get

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

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

func (*FakeBuilds) List

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

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

func (*FakeBuilds) Patch

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

Patch applies the patch and returns the patched build.

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (result *v1alpha1.Build, err error)

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

func (*FakeBuilds) UpdateStatus

func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *v1alpha1.Build, opts v1.UpdateOptions) (*v1alpha1.Build, error)

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

func (*FakeBuilds) Watch

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

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

type FakeClusterServiceBrokers

type FakeClusterServiceBrokers struct {
	Fake *FakeKfV1alpha1
}

FakeClusterServiceBrokers implements ClusterServiceBrokerInterface

func (*FakeClusterServiceBrokers) Create

func (c *FakeClusterServiceBrokers) Create(ctx context.Context, clusterServiceBroker *v1alpha1.ClusterServiceBroker, opts v1.CreateOptions) (result *v1alpha1.ClusterServiceBroker, err error)

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

func (*FakeClusterServiceBrokers) Delete

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

func (*FakeClusterServiceBrokers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterServiceBrokers) Get

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

func (*FakeClusterServiceBrokers) List

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

func (*FakeClusterServiceBrokers) Patch

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

Patch applies the patch and returns the patched clusterServiceBroker.

func (*FakeClusterServiceBrokers) Update

func (c *FakeClusterServiceBrokers) Update(ctx context.Context, clusterServiceBroker *v1alpha1.ClusterServiceBroker, opts v1.UpdateOptions) (result *v1alpha1.ClusterServiceBroker, err error)

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

func (*FakeClusterServiceBrokers) UpdateStatus

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

func (*FakeClusterServiceBrokers) Watch

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

type FakeKfV1alpha1

type FakeKfV1alpha1 struct {
	*testing.Fake
}

func (*FakeKfV1alpha1) Apps

func (c *FakeKfV1alpha1) Apps(namespace string) v1alpha1.AppInterface

func (*FakeKfV1alpha1) Builds

func (c *FakeKfV1alpha1) Builds(namespace string) v1alpha1.BuildInterface

func (*FakeKfV1alpha1) ClusterServiceBrokers

func (c *FakeKfV1alpha1) ClusterServiceBrokers() v1alpha1.ClusterServiceBrokerInterface

func (*FakeKfV1alpha1) RESTClient

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

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

func (*FakeKfV1alpha1) Routes

func (c *FakeKfV1alpha1) Routes(namespace string) v1alpha1.RouteInterface

func (*FakeKfV1alpha1) Scales

func (c *FakeKfV1alpha1) Scales(namespace string) v1alpha1.ScaleInterface

func (*FakeKfV1alpha1) ServiceBrokers

func (c *FakeKfV1alpha1) ServiceBrokers(namespace string) v1alpha1.ServiceBrokerInterface

func (*FakeKfV1alpha1) ServiceInstanceBindings

func (c *FakeKfV1alpha1) ServiceInstanceBindings(namespace string) v1alpha1.ServiceInstanceBindingInterface

func (*FakeKfV1alpha1) ServiceInstances

func (c *FakeKfV1alpha1) ServiceInstances(namespace string) v1alpha1.ServiceInstanceInterface

func (*FakeKfV1alpha1) SourcePackages

func (c *FakeKfV1alpha1) SourcePackages(namespace string) v1alpha1.SourcePackageInterface

func (*FakeKfV1alpha1) Spaces

func (*FakeKfV1alpha1) TaskSchedules

func (c *FakeKfV1alpha1) TaskSchedules(namespace string) v1alpha1.TaskScheduleInterface

func (*FakeKfV1alpha1) Tasks

func (c *FakeKfV1alpha1) Tasks(namespace string) v1alpha1.TaskInterface

type FakeRoutes

type FakeRoutes struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeRoutes implements RouteInterface

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(ctx context.Context, route *v1alpha1.Route, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Route, err error)

Patch applies the patch and returns the patched route.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(ctx context.Context, route *v1alpha1.Route, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Route, opts v1.UpdateOptions) (*v1alpha1.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 FakeScales

type FakeScales struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeScales implements ScaleInterface

func (*FakeScales) Create

func (c *FakeScales) Create(ctx context.Context, scale *v1alpha1.Scale, opts v1.CreateOptions) (result *v1alpha1.Scale, err error)

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

func (*FakeScales) Delete

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

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

func (*FakeScales) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScales) Get

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

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

func (*FakeScales) List

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

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

func (*FakeScales) Patch

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

Patch applies the patch and returns the patched scale.

func (*FakeScales) Update

func (c *FakeScales) Update(ctx context.Context, scale *v1alpha1.Scale, opts v1.UpdateOptions) (result *v1alpha1.Scale, err error)

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

func (*FakeScales) Watch

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

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

type FakeServiceBrokers

type FakeServiceBrokers struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeServiceBrokers implements ServiceBrokerInterface

func (*FakeServiceBrokers) Create

func (c *FakeServiceBrokers) Create(ctx context.Context, serviceBroker *v1alpha1.ServiceBroker, opts v1.CreateOptions) (result *v1alpha1.ServiceBroker, err error)

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

func (*FakeServiceBrokers) Delete

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

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

func (*FakeServiceBrokers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceBrokers) Get

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

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

func (*FakeServiceBrokers) List

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

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

func (*FakeServiceBrokers) Patch

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

Patch applies the patch and returns the patched serviceBroker.

func (*FakeServiceBrokers) Update

func (c *FakeServiceBrokers) Update(ctx context.Context, serviceBroker *v1alpha1.ServiceBroker, opts v1.UpdateOptions) (result *v1alpha1.ServiceBroker, err error)

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

func (*FakeServiceBrokers) UpdateStatus

func (c *FakeServiceBrokers) UpdateStatus(ctx context.Context, serviceBroker *v1alpha1.ServiceBroker, opts v1.UpdateOptions) (*v1alpha1.ServiceBroker, error)

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

func (*FakeServiceBrokers) Watch

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

type FakeServiceInstanceBindings

type FakeServiceInstanceBindings struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeServiceInstanceBindings implements ServiceInstanceBindingInterface

func (*FakeServiceInstanceBindings) Create

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

func (*FakeServiceInstanceBindings) Delete

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

func (*FakeServiceInstanceBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceInstanceBindings) Get

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

func (*FakeServiceInstanceBindings) List

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

func (*FakeServiceInstanceBindings) Patch

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

Patch applies the patch and returns the patched serviceInstanceBinding.

func (*FakeServiceInstanceBindings) Update

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

func (*FakeServiceInstanceBindings) UpdateStatus

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

func (*FakeServiceInstanceBindings) Watch

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

type FakeServiceInstances

type FakeServiceInstances struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeServiceInstances implements ServiceInstanceInterface

func (*FakeServiceInstances) Create

func (c *FakeServiceInstances) Create(ctx context.Context, serviceInstance *v1alpha1.ServiceInstance, opts v1.CreateOptions) (result *v1alpha1.ServiceInstance, err error)

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

func (*FakeServiceInstances) Delete

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

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

func (*FakeServiceInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceInstances) Get

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

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

func (*FakeServiceInstances) List

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

func (*FakeServiceInstances) Patch

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

Patch applies the patch and returns the patched serviceInstance.

func (*FakeServiceInstances) Update

func (c *FakeServiceInstances) Update(ctx context.Context, serviceInstance *v1alpha1.ServiceInstance, opts v1.UpdateOptions) (result *v1alpha1.ServiceInstance, err error)

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

func (*FakeServiceInstances) UpdateStatus

func (c *FakeServiceInstances) UpdateStatus(ctx context.Context, serviceInstance *v1alpha1.ServiceInstance, opts v1.UpdateOptions) (*v1alpha1.ServiceInstance, error)

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

func (*FakeServiceInstances) Watch

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

type FakeSourcePackages

type FakeSourcePackages struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeSourcePackages implements SourcePackageInterface

func (*FakeSourcePackages) Create

func (c *FakeSourcePackages) Create(ctx context.Context, sourcePackage *v1alpha1.SourcePackage, opts v1.CreateOptions) (result *v1alpha1.SourcePackage, err error)

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

func (*FakeSourcePackages) Delete

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

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

func (*FakeSourcePackages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSourcePackages) Get

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

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

func (*FakeSourcePackages) List

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

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

func (*FakeSourcePackages) Patch

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

Patch applies the patch and returns the patched sourcePackage.

func (*FakeSourcePackages) Update

func (c *FakeSourcePackages) Update(ctx context.Context, sourcePackage *v1alpha1.SourcePackage, opts v1.UpdateOptions) (result *v1alpha1.SourcePackage, err error)

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

func (*FakeSourcePackages) UpdateStatus

func (c *FakeSourcePackages) UpdateStatus(ctx context.Context, sourcePackage *v1alpha1.SourcePackage, opts v1.UpdateOptions) (*v1alpha1.SourcePackage, error)

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

func (*FakeSourcePackages) Watch

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

type FakeSpaces

type FakeSpaces struct {
	Fake *FakeKfV1alpha1
}

FakeSpaces implements SpaceInterface

func (*FakeSpaces) Create

func (c *FakeSpaces) Create(ctx context.Context, space *v1alpha1.Space, opts v1.CreateOptions) (result *v1alpha1.Space, err error)

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

func (*FakeSpaces) Delete

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

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

func (*FakeSpaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSpaces) Get

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

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

func (*FakeSpaces) List

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

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

func (*FakeSpaces) Patch

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

Patch applies the patch and returns the patched space.

func (*FakeSpaces) Update

func (c *FakeSpaces) Update(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (result *v1alpha1.Space, err error)

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

func (*FakeSpaces) UpdateStatus

func (c *FakeSpaces) UpdateStatus(ctx context.Context, space *v1alpha1.Space, opts v1.UpdateOptions) (*v1alpha1.Space, error)

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

func (*FakeSpaces) Watch

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

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

type FakeTaskSchedules

type FakeTaskSchedules struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeTaskSchedules implements TaskScheduleInterface

func (*FakeTaskSchedules) Create

func (c *FakeTaskSchedules) Create(ctx context.Context, taskSchedule *v1alpha1.TaskSchedule, opts v1.CreateOptions) (result *v1alpha1.TaskSchedule, err error)

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

func (*FakeTaskSchedules) Delete

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

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

func (*FakeTaskSchedules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTaskSchedules) Get

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

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

func (*FakeTaskSchedules) List

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

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

func (*FakeTaskSchedules) Patch

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

Patch applies the patch and returns the patched taskSchedule.

func (*FakeTaskSchedules) Update

func (c *FakeTaskSchedules) Update(ctx context.Context, taskSchedule *v1alpha1.TaskSchedule, opts v1.UpdateOptions) (result *v1alpha1.TaskSchedule, err error)

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

func (*FakeTaskSchedules) UpdateStatus

func (c *FakeTaskSchedules) UpdateStatus(ctx context.Context, taskSchedule *v1alpha1.TaskSchedule, opts v1.UpdateOptions) (*v1alpha1.TaskSchedule, error)

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

func (*FakeTaskSchedules) Watch

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

type FakeTasks

type FakeTasks struct {
	Fake *FakeKfV1alpha1
	// contains filtered or unexported fields
}

FakeTasks implements TaskInterface

func (*FakeTasks) Create

func (c *FakeTasks) Create(ctx context.Context, task *v1alpha1.Task, opts v1.CreateOptions) (result *v1alpha1.Task, err error)

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

func (*FakeTasks) Delete

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

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

func (*FakeTasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTasks) Get

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

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

func (*FakeTasks) List

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

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

func (*FakeTasks) Patch

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

Patch applies the patch and returns the patched task.

func (*FakeTasks) Update

func (c *FakeTasks) Update(ctx context.Context, task *v1alpha1.Task, opts v1.UpdateOptions) (result *v1alpha1.Task, err error)

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

func (*FakeTasks) UpdateStatus

func (c *FakeTasks) UpdateStatus(ctx context.Context, task *v1alpha1.Task, opts v1.UpdateOptions) (*v1alpha1.Task, error)

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

func (*FakeTasks) Watch

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

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

Jump to

Keyboard shortcuts

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