fake

package
v1.6.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 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 FakeInstanceInfos

type FakeInstanceInfos struct {
	Fake *FakeMultishareV1
	// contains filtered or unexported fields
}

FakeInstanceInfos implements InstanceInfoInterface

func (*FakeInstanceInfos) Create

func (c *FakeInstanceInfos) Create(ctx context.Context, instanceInfo *multisharev1.InstanceInfo, opts v1.CreateOptions) (result *multisharev1.InstanceInfo, err error)

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

func (*FakeInstanceInfos) Delete

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

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

func (*FakeInstanceInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstanceInfos) Get

func (c *FakeInstanceInfos) Get(ctx context.Context, name string, options v1.GetOptions) (result *multisharev1.InstanceInfo, err error)

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

func (*FakeInstanceInfos) List

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

func (*FakeInstanceInfos) Patch

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

Patch applies the patch and returns the patched instanceInfo.

func (*FakeInstanceInfos) Update

func (c *FakeInstanceInfos) Update(ctx context.Context, instanceInfo *multisharev1.InstanceInfo, opts v1.UpdateOptions) (result *multisharev1.InstanceInfo, err error)

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

func (*FakeInstanceInfos) UpdateStatus

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

func (*FakeInstanceInfos) Watch

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

type FakeMultishareV1

type FakeMultishareV1 struct {
	*testing.Fake
}

func (*FakeMultishareV1) InstanceInfos

func (c *FakeMultishareV1) InstanceInfos(namespace string) v1.InstanceInfoInterface

func (*FakeMultishareV1) RESTClient

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

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

func (*FakeMultishareV1) ShareInfos

func (c *FakeMultishareV1) ShareInfos(namespace string) v1.ShareInfoInterface

type FakeShareInfos

type FakeShareInfos struct {
	Fake *FakeMultishareV1
	// contains filtered or unexported fields
}

FakeShareInfos implements ShareInfoInterface

func (*FakeShareInfos) Create

func (c *FakeShareInfos) Create(ctx context.Context, shareInfo *multisharev1.ShareInfo, opts v1.CreateOptions) (result *multisharev1.ShareInfo, err error)

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

func (*FakeShareInfos) Delete

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

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

func (*FakeShareInfos) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShareInfos) Get

func (c *FakeShareInfos) Get(ctx context.Context, name string, options v1.GetOptions) (result *multisharev1.ShareInfo, err error)

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

func (*FakeShareInfos) List

func (c *FakeShareInfos) List(ctx context.Context, opts v1.ListOptions) (result *multisharev1.ShareInfoList, err error)

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

func (*FakeShareInfos) Patch

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

Patch applies the patch and returns the patched shareInfo.

func (*FakeShareInfos) Update

func (c *FakeShareInfos) Update(ctx context.Context, shareInfo *multisharev1.ShareInfo, opts v1.UpdateOptions) (result *multisharev1.ShareInfo, err error)

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

func (*FakeShareInfos) UpdateStatus

func (c *FakeShareInfos) UpdateStatus(ctx context.Context, shareInfo *multisharev1.ShareInfo, opts v1.UpdateOptions) (*multisharev1.ShareInfo, error)

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

func (*FakeShareInfos) Watch

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

Jump to

Keyboard shortcuts

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