fake

package
v0.0.0-...-8e197b7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 FakeHPENodeInfos

type FakeHPENodeInfos struct {
	Fake *FakeStorageV1
}

FakeHPENodeInfos implements HPENodeInfoInterface

func (*FakeHPENodeInfos) Create

func (c *FakeHPENodeInfos) Create(hPENodeInfo *hpestoragev1.HPENodeInfo) (result *hpestoragev1.HPENodeInfo, err error)

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

func (*FakeHPENodeInfos) Delete

func (c *FakeHPENodeInfos) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeHPENodeInfos) DeleteCollection

func (c *FakeHPENodeInfos) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHPENodeInfos) Get

func (c *FakeHPENodeInfos) Get(name string, options v1.GetOptions) (result *hpestoragev1.HPENodeInfo, err error)

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

func (*FakeHPENodeInfos) List

func (c *FakeHPENodeInfos) List(opts v1.ListOptions) (result *hpestoragev1.HPENodeInfoList, err error)

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

func (*FakeHPENodeInfos) Patch

func (c *FakeHPENodeInfos) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *hpestoragev1.HPENodeInfo, err error)

Patch applies the patch and returns the patched hPENodeInfo.

func (*FakeHPENodeInfos) Update

func (c *FakeHPENodeInfos) Update(hPENodeInfo *hpestoragev1.HPENodeInfo) (result *hpestoragev1.HPENodeInfo, err error)

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

func (*FakeHPENodeInfos) Watch

func (c *FakeHPENodeInfos) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeStorageV1

type FakeStorageV1 struct {
	*testing.Fake
}

func (*FakeStorageV1) HPENodeInfos

func (c *FakeStorageV1) HPENodeInfos() v1.HPENodeInfoInterface

func (*FakeStorageV1) RESTClient

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