fake

package
v0.0.0-...-1dfa148 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) Crons

func (c *FakeAppsV1alpha1) Crons(namespace string) v1alpha1.CronInterface

func (*FakeAppsV1alpha1) RESTClient

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

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

type FakeCrons

type FakeCrons struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeCrons implements CronInterface

func (*FakeCrons) Create

func (c *FakeCrons) Create(ctx context.Context, cron *v1alpha1.Cron, opts v1.CreateOptions) (result *v1alpha1.Cron, err error)

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

func (*FakeCrons) Delete

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

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

func (*FakeCrons) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCrons) Get

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

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

func (*FakeCrons) List

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

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

func (*FakeCrons) Patch

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

Patch applies the patch and returns the patched cron.

func (*FakeCrons) Update

func (c *FakeCrons) Update(ctx context.Context, cron *v1alpha1.Cron, opts v1.UpdateOptions) (result *v1alpha1.Cron, err error)

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

func (*FakeCrons) UpdateStatus

func (c *FakeCrons) UpdateStatus(ctx context.Context, cron *v1alpha1.Cron, opts v1.UpdateOptions) (*v1alpha1.Cron, error)

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

func (*FakeCrons) Watch

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

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

Jump to

Keyboard shortcuts

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