v0.0.0-...-909d7fb Latest Latest

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 10 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeCronjobs

type FakeCronjobs struct {
	Fake *FakeStableV1alpha1
	// contains filtered or unexported fields

FakeCronjobs implements CronjobInterface

func (*FakeCronjobs) Create

func (c *FakeCronjobs) Create(ctx context.Context, cronjob *v1alpha1.Cronjob, opts v1.CreateOptions) (result *v1alpha1.Cronjob, err error)

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

func (*FakeCronjobs) Delete

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

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

func (*FakeCronjobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCronjobs) Get

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

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

func (*FakeCronjobs) List

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

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

func (*FakeCronjobs) Patch

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

Patch applies the patch and returns the patched cronjob.

func (*FakeCronjobs) Update

func (c *FakeCronjobs) Update(ctx context.Context, cronjob *v1alpha1.Cronjob, opts v1.UpdateOptions) (result *v1alpha1.Cronjob, err error)

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

func (*FakeCronjobs) UpdateStatus

func (c *FakeCronjobs) UpdateStatus(ctx context.Context, cronjob *v1alpha1.Cronjob, opts v1.UpdateOptions) (*v1alpha1.Cronjob, error)

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

func (*FakeCronjobs) Watch

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

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

type FakeStableV1alpha1

type FakeStableV1alpha1 struct {

func (*FakeStableV1alpha1) Cronjobs

func (c *FakeStableV1alpha1) Cronjobs(namespace string) v1alpha1.CronjobInterface

func (*FakeStableV1alpha1) RESTClient

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