fake

package
v0.0.0-...-fb97594 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 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 FakeBucketAccessClasses

type FakeBucketAccessClasses struct {
	Fake *FakeObjectstorageV1alpha1
}

FakeBucketAccessClasses implements BucketAccessClassInterface

func (*FakeBucketAccessClasses) Create

func (c *FakeBucketAccessClasses) Create(ctx context.Context, bucketAccessClass *v1alpha1.BucketAccessClass, opts v1.CreateOptions) (result *v1alpha1.BucketAccessClass, err error)

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

func (*FakeBucketAccessClasses) Delete

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

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

func (*FakeBucketAccessClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketAccessClasses) Get

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

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

func (*FakeBucketAccessClasses) List

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

func (*FakeBucketAccessClasses) Patch

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

Patch applies the patch and returns the patched bucketAccessClass.

func (*FakeBucketAccessClasses) Update

func (c *FakeBucketAccessClasses) Update(ctx context.Context, bucketAccessClass *v1alpha1.BucketAccessClass, opts v1.UpdateOptions) (result *v1alpha1.BucketAccessClass, err error)

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

func (*FakeBucketAccessClasses) Watch

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

type FakeBucketAccessRequests

type FakeBucketAccessRequests struct {
	Fake *FakeObjectstorageV1alpha1
	// contains filtered or unexported fields
}

FakeBucketAccessRequests implements BucketAccessRequestInterface

func (*FakeBucketAccessRequests) Create

func (c *FakeBucketAccessRequests) Create(ctx context.Context, bucketAccessRequest *v1alpha1.BucketAccessRequest, opts v1.CreateOptions) (result *v1alpha1.BucketAccessRequest, err error)

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

func (*FakeBucketAccessRequests) Delete

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

func (*FakeBucketAccessRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketAccessRequests) Get

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

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

func (*FakeBucketAccessRequests) List

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

func (*FakeBucketAccessRequests) Patch

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

Patch applies the patch and returns the patched bucketAccessRequest.

func (*FakeBucketAccessRequests) Update

func (c *FakeBucketAccessRequests) Update(ctx context.Context, bucketAccessRequest *v1alpha1.BucketAccessRequest, opts v1.UpdateOptions) (result *v1alpha1.BucketAccessRequest, err error)

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

func (*FakeBucketAccessRequests) UpdateStatus

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

func (*FakeBucketAccessRequests) Watch

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

type FakeBucketAccesses

type FakeBucketAccesses struct {
	Fake *FakeObjectstorageV1alpha1
}

FakeBucketAccesses implements BucketAccessInterface

func (*FakeBucketAccesses) Create

func (c *FakeBucketAccesses) Create(ctx context.Context, bucketAccess *v1alpha1.BucketAccess, opts v1.CreateOptions) (result *v1alpha1.BucketAccess, err error)

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

func (*FakeBucketAccesses) Delete

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

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

func (*FakeBucketAccesses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketAccesses) Get

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

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

func (*FakeBucketAccesses) List

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

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

func (*FakeBucketAccesses) Patch

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

Patch applies the patch and returns the patched bucketAccess.

func (*FakeBucketAccesses) Update

func (c *FakeBucketAccesses) Update(ctx context.Context, bucketAccess *v1alpha1.BucketAccess, opts v1.UpdateOptions) (result *v1alpha1.BucketAccess, err error)

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

func (*FakeBucketAccesses) UpdateStatus

func (c *FakeBucketAccesses) UpdateStatus(ctx context.Context, bucketAccess *v1alpha1.BucketAccess, opts v1.UpdateOptions) (*v1alpha1.BucketAccess, error)

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

func (*FakeBucketAccesses) Watch

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

type FakeBucketClasses

type FakeBucketClasses struct {
	Fake *FakeObjectstorageV1alpha1
}

FakeBucketClasses implements BucketClassInterface

func (*FakeBucketClasses) Create

func (c *FakeBucketClasses) Create(ctx context.Context, bucketClass *v1alpha1.BucketClass, opts v1.CreateOptions) (result *v1alpha1.BucketClass, err error)

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

func (*FakeBucketClasses) Delete

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

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

func (*FakeBucketClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketClasses) Get

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

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

func (*FakeBucketClasses) List

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

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

func (*FakeBucketClasses) Patch

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

Patch applies the patch and returns the patched bucketClass.

func (*FakeBucketClasses) Update

func (c *FakeBucketClasses) Update(ctx context.Context, bucketClass *v1alpha1.BucketClass, opts v1.UpdateOptions) (result *v1alpha1.BucketClass, err error)

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

func (*FakeBucketClasses) Watch

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

type FakeBucketRequests

type FakeBucketRequests struct {
	Fake *FakeObjectstorageV1alpha1
	// contains filtered or unexported fields
}

FakeBucketRequests implements BucketRequestInterface

func (*FakeBucketRequests) Create

func (c *FakeBucketRequests) Create(ctx context.Context, bucketRequest *v1alpha1.BucketRequest, opts v1.CreateOptions) (result *v1alpha1.BucketRequest, err error)

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

func (*FakeBucketRequests) Delete

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

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

func (*FakeBucketRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketRequests) Get

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

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

func (*FakeBucketRequests) List

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

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

func (*FakeBucketRequests) Patch

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

Patch applies the patch and returns the patched bucketRequest.

func (*FakeBucketRequests) Update

func (c *FakeBucketRequests) Update(ctx context.Context, bucketRequest *v1alpha1.BucketRequest, opts v1.UpdateOptions) (result *v1alpha1.BucketRequest, err error)

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

func (*FakeBucketRequests) UpdateStatus

func (c *FakeBucketRequests) UpdateStatus(ctx context.Context, bucketRequest *v1alpha1.BucketRequest, opts v1.UpdateOptions) (*v1alpha1.BucketRequest, error)

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

func (*FakeBucketRequests) Watch

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

type FakeBuckets

type FakeBuckets struct {
	Fake *FakeObjectstorageV1alpha1
}

FakeBuckets implements BucketInterface

func (*FakeBuckets) Create

func (c *FakeBuckets) Create(ctx context.Context, bucket *v1alpha1.Bucket, opts v1.CreateOptions) (result *v1alpha1.Bucket, err error)

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

func (*FakeBuckets) Delete

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

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

func (*FakeBuckets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuckets) Get

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

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

func (*FakeBuckets) List

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

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

func (*FakeBuckets) Patch

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

Patch applies the patch and returns the patched bucket.

func (*FakeBuckets) Update

func (c *FakeBuckets) Update(ctx context.Context, bucket *v1alpha1.Bucket, opts v1.UpdateOptions) (result *v1alpha1.Bucket, err error)

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

func (*FakeBuckets) UpdateStatus

func (c *FakeBuckets) UpdateStatus(ctx context.Context, bucket *v1alpha1.Bucket, opts v1.UpdateOptions) (*v1alpha1.Bucket, error)

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

func (*FakeBuckets) Watch

func (c *FakeBuckets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeObjectstorageV1alpha1

type FakeObjectstorageV1alpha1 struct {
	*testing.Fake
}

func (*FakeObjectstorageV1alpha1) BucketAccessClasses

func (*FakeObjectstorageV1alpha1) BucketAccessRequests

func (c *FakeObjectstorageV1alpha1) BucketAccessRequests(namespace string) v1alpha1.BucketAccessRequestInterface

func (*FakeObjectstorageV1alpha1) BucketAccesses

func (*FakeObjectstorageV1alpha1) BucketClasses

func (*FakeObjectstorageV1alpha1) BucketRequests

func (c *FakeObjectstorageV1alpha1) BucketRequests(namespace string) v1alpha1.BucketRequestInterface

func (*FakeObjectstorageV1alpha1) Buckets

func (*FakeObjectstorageV1alpha1) RESTClient

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