fake

package
v0.0.0-...-f9da79c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 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 FakeClusterTriggerAuthentications

type FakeClusterTriggerAuthentications struct {
	Fake *FakeKedaV1alpha1
}

FakeClusterTriggerAuthentications implements ClusterTriggerAuthenticationInterface

func (*FakeClusterTriggerAuthentications) Create

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

func (*FakeClusterTriggerAuthentications) Delete

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

func (*FakeClusterTriggerAuthentications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTriggerAuthentications) Get

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

func (*FakeClusterTriggerAuthentications) List

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

func (*FakeClusterTriggerAuthentications) Patch

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

Patch applies the patch and returns the patched clusterTriggerAuthentication.

func (*FakeClusterTriggerAuthentications) Update

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

func (*FakeClusterTriggerAuthentications) UpdateStatus

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

func (*FakeClusterTriggerAuthentications) Watch

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

type FakeKedaV1alpha1

type FakeKedaV1alpha1 struct {
	*testing.Fake
}

func (*FakeKedaV1alpha1) ClusterTriggerAuthentications

func (c *FakeKedaV1alpha1) ClusterTriggerAuthentications() v1alpha1.ClusterTriggerAuthenticationInterface

func (*FakeKedaV1alpha1) RESTClient

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

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

func (*FakeKedaV1alpha1) ScaledJobs

func (c *FakeKedaV1alpha1) ScaledJobs(namespace string) v1alpha1.ScaledJobInterface

func (*FakeKedaV1alpha1) ScaledObjects

func (c *FakeKedaV1alpha1) ScaledObjects(namespace string) v1alpha1.ScaledObjectInterface

func (*FakeKedaV1alpha1) TriggerAuthentications

func (c *FakeKedaV1alpha1) TriggerAuthentications(namespace string) v1alpha1.TriggerAuthenticationInterface

type FakeScaledJobs

type FakeScaledJobs struct {
	Fake *FakeKedaV1alpha1
	// contains filtered or unexported fields
}

FakeScaledJobs implements ScaledJobInterface

func (*FakeScaledJobs) Create

func (c *FakeScaledJobs) Create(ctx context.Context, scaledJob *v1alpha1.ScaledJob, opts v1.CreateOptions) (result *v1alpha1.ScaledJob, err error)

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

func (*FakeScaledJobs) Delete

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

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

func (*FakeScaledJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScaledJobs) Get

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

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

func (*FakeScaledJobs) List

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

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

func (*FakeScaledJobs) Patch

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

Patch applies the patch and returns the patched scaledJob.

func (*FakeScaledJobs) Update

func (c *FakeScaledJobs) Update(ctx context.Context, scaledJob *v1alpha1.ScaledJob, opts v1.UpdateOptions) (result *v1alpha1.ScaledJob, err error)

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

func (*FakeScaledJobs) UpdateStatus

func (c *FakeScaledJobs) UpdateStatus(ctx context.Context, scaledJob *v1alpha1.ScaledJob, opts v1.UpdateOptions) (*v1alpha1.ScaledJob, error)

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

func (*FakeScaledJobs) Watch

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

type FakeScaledObjects

type FakeScaledObjects struct {
	Fake *FakeKedaV1alpha1
	// contains filtered or unexported fields
}

FakeScaledObjects implements ScaledObjectInterface

func (*FakeScaledObjects) Create

func (c *FakeScaledObjects) Create(ctx context.Context, scaledObject *v1alpha1.ScaledObject, opts v1.CreateOptions) (result *v1alpha1.ScaledObject, err error)

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

func (*FakeScaledObjects) Delete

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

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

func (*FakeScaledObjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScaledObjects) Get

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

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

func (*FakeScaledObjects) List

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

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

func (*FakeScaledObjects) Patch

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

Patch applies the patch and returns the patched scaledObject.

func (*FakeScaledObjects) Update

func (c *FakeScaledObjects) Update(ctx context.Context, scaledObject *v1alpha1.ScaledObject, opts v1.UpdateOptions) (result *v1alpha1.ScaledObject, err error)

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

func (*FakeScaledObjects) UpdateStatus

func (c *FakeScaledObjects) UpdateStatus(ctx context.Context, scaledObject *v1alpha1.ScaledObject, opts v1.UpdateOptions) (*v1alpha1.ScaledObject, error)

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

func (*FakeScaledObjects) Watch

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

type FakeTriggerAuthentications

type FakeTriggerAuthentications struct {
	Fake *FakeKedaV1alpha1
	// contains filtered or unexported fields
}

FakeTriggerAuthentications implements TriggerAuthenticationInterface

func (*FakeTriggerAuthentications) Create

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

func (*FakeTriggerAuthentications) Delete

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

func (*FakeTriggerAuthentications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggerAuthentications) Get

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

func (*FakeTriggerAuthentications) List

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

func (*FakeTriggerAuthentications) Patch

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

Patch applies the patch and returns the patched triggerAuthentication.

func (*FakeTriggerAuthentications) Update

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

func (*FakeTriggerAuthentications) UpdateStatus

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

func (*FakeTriggerAuthentications) Watch

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

Jump to

Keyboard shortcuts

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