fake

package
v0.0.0-...-cbe8cb9 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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 FakeObjectV1alpha1

type FakeObjectV1alpha1 struct {
	*testing.Fake
}

func (*FakeObjectV1alpha1) PXBucketAccesses

func (c *FakeObjectV1alpha1) PXBucketAccesses(namespace string) v1alpha1.PXBucketAccessInterface

func (*FakeObjectV1alpha1) PXBucketClaims

func (c *FakeObjectV1alpha1) PXBucketClaims(namespace string) v1alpha1.PXBucketClaimInterface

func (*FakeObjectV1alpha1) PXBucketClasses

func (c *FakeObjectV1alpha1) PXBucketClasses() v1alpha1.PXBucketClassInterface

func (*FakeObjectV1alpha1) RESTClient

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

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

type FakePXBucketAccesses

type FakePXBucketAccesses struct {
	Fake *FakeObjectV1alpha1
	// contains filtered or unexported fields
}

FakePXBucketAccesses implements PXBucketAccessInterface

func (*FakePXBucketAccesses) Create

func (c *FakePXBucketAccesses) Create(ctx context.Context, pXBucketAccess *v1alpha1.PXBucketAccess, opts v1.CreateOptions) (result *v1alpha1.PXBucketAccess, err error)

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

func (*FakePXBucketAccesses) Delete

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

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

func (*FakePXBucketAccesses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePXBucketAccesses) Get

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

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

func (*FakePXBucketAccesses) List

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

func (*FakePXBucketAccesses) Patch

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

Patch applies the patch and returns the patched pXBucketAccess.

func (*FakePXBucketAccesses) Update

func (c *FakePXBucketAccesses) Update(ctx context.Context, pXBucketAccess *v1alpha1.PXBucketAccess, opts v1.UpdateOptions) (result *v1alpha1.PXBucketAccess, err error)

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

func (*FakePXBucketAccesses) UpdateStatus

func (c *FakePXBucketAccesses) UpdateStatus(ctx context.Context, pXBucketAccess *v1alpha1.PXBucketAccess, opts v1.UpdateOptions) (*v1alpha1.PXBucketAccess, error)

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

func (*FakePXBucketAccesses) Watch

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

type FakePXBucketClaims

type FakePXBucketClaims struct {
	Fake *FakeObjectV1alpha1
	// contains filtered or unexported fields
}

FakePXBucketClaims implements PXBucketClaimInterface

func (*FakePXBucketClaims) Create

func (c *FakePXBucketClaims) Create(ctx context.Context, pXBucketClaim *v1alpha1.PXBucketClaim, opts v1.CreateOptions) (result *v1alpha1.PXBucketClaim, err error)

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

func (*FakePXBucketClaims) Delete

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

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

func (*FakePXBucketClaims) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePXBucketClaims) Get

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

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

func (*FakePXBucketClaims) List

func (c *FakePXBucketClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PXBucketClaimList, err error)

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

func (*FakePXBucketClaims) Patch

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

Patch applies the patch and returns the patched pXBucketClaim.

func (*FakePXBucketClaims) Update

func (c *FakePXBucketClaims) Update(ctx context.Context, pXBucketClaim *v1alpha1.PXBucketClaim, opts v1.UpdateOptions) (result *v1alpha1.PXBucketClaim, err error)

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

func (*FakePXBucketClaims) UpdateStatus

func (c *FakePXBucketClaims) UpdateStatus(ctx context.Context, pXBucketClaim *v1alpha1.PXBucketClaim, opts v1.UpdateOptions) (*v1alpha1.PXBucketClaim, error)

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

func (*FakePXBucketClaims) Watch

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

type FakePXBucketClasses

type FakePXBucketClasses struct {
	Fake *FakeObjectV1alpha1
}

FakePXBucketClasses implements PXBucketClassInterface

func (*FakePXBucketClasses) Create

func (c *FakePXBucketClasses) Create(ctx context.Context, pXBucketClass *v1alpha1.PXBucketClass, opts v1.CreateOptions) (result *v1alpha1.PXBucketClass, err error)

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

func (*FakePXBucketClasses) Delete

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

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

func (*FakePXBucketClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePXBucketClasses) Get

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

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

func (*FakePXBucketClasses) List

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

func (*FakePXBucketClasses) Patch

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

Patch applies the patch and returns the patched pXBucketClass.

func (*FakePXBucketClasses) Update

func (c *FakePXBucketClasses) Update(ctx context.Context, pXBucketClass *v1alpha1.PXBucketClass, opts v1.UpdateOptions) (result *v1alpha1.PXBucketClass, err error)

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

func (*FakePXBucketClasses) Watch

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

Jump to

Keyboard shortcuts

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