fake

package
v0.0.0-...-9022789 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 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 FakeClusteropV1alpha1

type FakeClusteropV1alpha1 struct {
	*testing.Fake
}

func (*FakeClusteropV1alpha1) KubeletUpgrades

func (*FakeClusteropV1alpha1) RESTClient

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

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

type FakeKubeletUpgrades

type FakeKubeletUpgrades struct {
	Fake *FakeClusteropV1alpha1
}

FakeKubeletUpgrades implements KubeletUpgradeInterface

func (*FakeKubeletUpgrades) Create

func (c *FakeKubeletUpgrades) Create(ctx context.Context, kubeletUpgrade *v1alpha1.KubeletUpgrade, opts v1.CreateOptions) (result *v1alpha1.KubeletUpgrade, err error)

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

func (*FakeKubeletUpgrades) Delete

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

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

func (*FakeKubeletUpgrades) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKubeletUpgrades) Get

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

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

func (*FakeKubeletUpgrades) List

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

func (*FakeKubeletUpgrades) Patch

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

Patch applies the patch and returns the patched kubeletUpgrade.

func (*FakeKubeletUpgrades) Update

func (c *FakeKubeletUpgrades) Update(ctx context.Context, kubeletUpgrade *v1alpha1.KubeletUpgrade, opts v1.UpdateOptions) (result *v1alpha1.KubeletUpgrade, err error)

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

func (*FakeKubeletUpgrades) UpdateStatus

func (c *FakeKubeletUpgrades) UpdateStatus(ctx context.Context, kubeletUpgrade *v1alpha1.KubeletUpgrade, opts v1.UpdateOptions) (*v1alpha1.KubeletUpgrade, error)

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

func (*FakeKubeletUpgrades) Watch

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

Jump to

Keyboard shortcuts

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