fake

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 FakeImagePrePullJobs added in v1.16.0

type FakeImagePrePullJobs struct {
	Fake *FakeOperationsV1alpha1
}

FakeImagePrePullJobs implements ImagePrePullJobInterface

func (*FakeImagePrePullJobs) Create added in v1.16.0

func (c *FakeImagePrePullJobs) Create(ctx context.Context, imagePrePullJob *v1alpha1.ImagePrePullJob, opts v1.CreateOptions) (result *v1alpha1.ImagePrePullJob, err error)

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

func (*FakeImagePrePullJobs) Delete added in v1.16.0

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

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

func (*FakeImagePrePullJobs) DeleteCollection added in v1.16.0

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

DeleteCollection deletes a collection of objects.

func (*FakeImagePrePullJobs) Get added in v1.16.0

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

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

func (*FakeImagePrePullJobs) List added in v1.16.0

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

func (*FakeImagePrePullJobs) Patch added in v1.16.0

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

Patch applies the patch and returns the patched imagePrePullJob.

func (*FakeImagePrePullJobs) Update added in v1.16.0

func (c *FakeImagePrePullJobs) Update(ctx context.Context, imagePrePullJob *v1alpha1.ImagePrePullJob, opts v1.UpdateOptions) (result *v1alpha1.ImagePrePullJob, err error)

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

func (*FakeImagePrePullJobs) UpdateStatus added in v1.16.0

func (c *FakeImagePrePullJobs) UpdateStatus(ctx context.Context, imagePrePullJob *v1alpha1.ImagePrePullJob, opts v1.UpdateOptions) (*v1alpha1.ImagePrePullJob, error)

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

func (*FakeImagePrePullJobs) Watch added in v1.16.0

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

type FakeNodeUpgradeJobs

type FakeNodeUpgradeJobs struct {
	Fake *FakeOperationsV1alpha1
}

FakeNodeUpgradeJobs implements NodeUpgradeJobInterface

func (*FakeNodeUpgradeJobs) Create

func (c *FakeNodeUpgradeJobs) Create(ctx context.Context, nodeUpgradeJob *v1alpha1.NodeUpgradeJob, opts v1.CreateOptions) (result *v1alpha1.NodeUpgradeJob, err error)

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

func (*FakeNodeUpgradeJobs) Delete

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

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

func (*FakeNodeUpgradeJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNodeUpgradeJobs) Get

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

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

func (*FakeNodeUpgradeJobs) List

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

func (*FakeNodeUpgradeJobs) Patch

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

Patch applies the patch and returns the patched nodeUpgradeJob.

func (*FakeNodeUpgradeJobs) Update

func (c *FakeNodeUpgradeJobs) Update(ctx context.Context, nodeUpgradeJob *v1alpha1.NodeUpgradeJob, opts v1.UpdateOptions) (result *v1alpha1.NodeUpgradeJob, err error)

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

func (*FakeNodeUpgradeJobs) UpdateStatus

func (c *FakeNodeUpgradeJobs) UpdateStatus(ctx context.Context, nodeUpgradeJob *v1alpha1.NodeUpgradeJob, opts v1.UpdateOptions) (*v1alpha1.NodeUpgradeJob, error)

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

func (*FakeNodeUpgradeJobs) Watch

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

type FakeOperationsV1alpha1

type FakeOperationsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperationsV1alpha1) ImagePrePullJobs added in v1.16.0

func (*FakeOperationsV1alpha1) NodeUpgradeJobs

func (*FakeOperationsV1alpha1) RESTClient

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