fake

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 12 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 FakeHostPathProvisioners

type FakeHostPathProvisioners struct {
	Fake *FakeHostpathprovisionerV1beta1
}

FakeHostPathProvisioners implements HostPathProvisionerInterface

func (*FakeHostPathProvisioners) Apply added in v0.18.0

Apply takes the given apply declarative configuration, applies it and returns the applied hostPathProvisioner.

func (*FakeHostPathProvisioners) ApplyStatus added in v0.18.0

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

func (*FakeHostPathProvisioners) Create

func (c *FakeHostPathProvisioners) Create(ctx context.Context, hostPathProvisioner *v1beta1.HostPathProvisioner, opts v1.CreateOptions) (result *v1beta1.HostPathProvisioner, err error)

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

func (*FakeHostPathProvisioners) Delete

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

func (*FakeHostPathProvisioners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHostPathProvisioners) Get

func (c *FakeHostPathProvisioners) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.HostPathProvisioner, err error)

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

func (*FakeHostPathProvisioners) List

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

func (*FakeHostPathProvisioners) Patch

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

Patch applies the patch and returns the patched hostPathProvisioner.

func (*FakeHostPathProvisioners) Update

func (c *FakeHostPathProvisioners) Update(ctx context.Context, hostPathProvisioner *v1beta1.HostPathProvisioner, opts v1.UpdateOptions) (result *v1beta1.HostPathProvisioner, err error)

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

func (*FakeHostPathProvisioners) UpdateStatus

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

func (*FakeHostPathProvisioners) Watch

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

type FakeHostpathprovisionerV1beta1

type FakeHostpathprovisionerV1beta1 struct {
	*testing.Fake
}

func (*FakeHostpathprovisionerV1beta1) HostPathProvisioners

func (*FakeHostpathprovisionerV1beta1) RESTClient

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