fake

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

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

Go to latest
Published: Jan 8, 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 FakeBucketClasses

type FakeBucketClasses struct {
	Fake *FakeStorageV1alpha1
}

FakeBucketClasses implements BucketClassInterface

func (*FakeBucketClasses) Apply

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

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 FakeBucketPools

type FakeBucketPools struct {
	Fake *FakeStorageV1alpha1
}

FakeBucketPools implements BucketPoolInterface

func (*FakeBucketPools) Apply

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

func (*FakeBucketPools) ApplyStatus

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

func (*FakeBucketPools) Create

func (c *FakeBucketPools) Create(ctx context.Context, bucketPool *v1alpha1.BucketPool, opts v1.CreateOptions) (result *v1alpha1.BucketPool, err error)

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

func (*FakeBucketPools) Delete

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

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

func (*FakeBucketPools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBucketPools) Get

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

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

func (*FakeBucketPools) List

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

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

func (*FakeBucketPools) Patch

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

Patch applies the patch and returns the patched bucketPool.

func (*FakeBucketPools) Update

func (c *FakeBucketPools) Update(ctx context.Context, bucketPool *v1alpha1.BucketPool, opts v1.UpdateOptions) (result *v1alpha1.BucketPool, err error)

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

func (*FakeBucketPools) UpdateStatus

func (c *FakeBucketPools) UpdateStatus(ctx context.Context, bucketPool *v1alpha1.BucketPool, opts v1.UpdateOptions) (*v1alpha1.BucketPool, error)

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

func (*FakeBucketPools) Watch

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

type FakeBuckets

type FakeBuckets struct {
	Fake *FakeStorageV1alpha1
	// contains filtered or unexported fields
}

FakeBuckets implements BucketInterface

func (*FakeBuckets) Apply

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

func (*FakeBuckets) ApplyStatus

func (c *FakeBuckets) ApplyStatus(ctx context.Context, bucket *storagev1alpha1.BucketApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Bucket, err error)

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

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 FakeStorageV1alpha1

type FakeStorageV1alpha1 struct {
	*testing.Fake
}

func (*FakeStorageV1alpha1) BucketClasses

func (*FakeStorageV1alpha1) BucketPools

func (*FakeStorageV1alpha1) Buckets

func (c *FakeStorageV1alpha1) Buckets(namespace string) v1alpha1.BucketInterface

func (*FakeStorageV1alpha1) RESTClient

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

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

func (*FakeStorageV1alpha1) VolumeClasses

func (*FakeStorageV1alpha1) VolumePools

func (*FakeStorageV1alpha1) Volumes

func (c *FakeStorageV1alpha1) Volumes(namespace string) v1alpha1.VolumeInterface

type FakeVolumeClasses

type FakeVolumeClasses struct {
	Fake *FakeStorageV1alpha1
}

FakeVolumeClasses implements VolumeClassInterface

func (*FakeVolumeClasses) Apply

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

func (*FakeVolumeClasses) Create

func (c *FakeVolumeClasses) Create(ctx context.Context, volumeClass *v1alpha1.VolumeClass, opts v1.CreateOptions) (result *v1alpha1.VolumeClass, err error)

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

func (*FakeVolumeClasses) Delete

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

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

func (*FakeVolumeClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeClasses) Get

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

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

func (*FakeVolumeClasses) List

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

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

func (*FakeVolumeClasses) Patch

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

Patch applies the patch and returns the patched volumeClass.

func (*FakeVolumeClasses) Update

func (c *FakeVolumeClasses) Update(ctx context.Context, volumeClass *v1alpha1.VolumeClass, opts v1.UpdateOptions) (result *v1alpha1.VolumeClass, err error)

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

func (*FakeVolumeClasses) Watch

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

type FakeVolumePools

type FakeVolumePools struct {
	Fake *FakeStorageV1alpha1
}

FakeVolumePools implements VolumePoolInterface

func (*FakeVolumePools) Apply

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

func (*FakeVolumePools) ApplyStatus

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

func (*FakeVolumePools) Create

func (c *FakeVolumePools) Create(ctx context.Context, volumePool *v1alpha1.VolumePool, opts v1.CreateOptions) (result *v1alpha1.VolumePool, err error)

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

func (*FakeVolumePools) Delete

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

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

func (*FakeVolumePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumePools) Get

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

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

func (*FakeVolumePools) List

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

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

func (*FakeVolumePools) Patch

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

Patch applies the patch and returns the patched volumePool.

func (*FakeVolumePools) Update

func (c *FakeVolumePools) Update(ctx context.Context, volumePool *v1alpha1.VolumePool, opts v1.UpdateOptions) (result *v1alpha1.VolumePool, err error)

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

func (*FakeVolumePools) UpdateStatus

func (c *FakeVolumePools) UpdateStatus(ctx context.Context, volumePool *v1alpha1.VolumePool, opts v1.UpdateOptions) (*v1alpha1.VolumePool, error)

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

func (*FakeVolumePools) Watch

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

type FakeVolumes

type FakeVolumes struct {
	Fake *FakeStorageV1alpha1
	// contains filtered or unexported fields
}

FakeVolumes implements VolumeInterface

func (*FakeVolumes) Apply

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

func (*FakeVolumes) ApplyStatus

func (c *FakeVolumes) ApplyStatus(ctx context.Context, volume *storagev1alpha1.VolumeApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Volume, err error)

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

func (*FakeVolumes) Create

func (c *FakeVolumes) Create(ctx context.Context, volume *v1alpha1.Volume, opts v1.CreateOptions) (result *v1alpha1.Volume, err error)

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

func (*FakeVolumes) Delete

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

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

func (*FakeVolumes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumes) Get

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

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

func (*FakeVolumes) List

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

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

func (*FakeVolumes) Patch

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

Patch applies the patch and returns the patched volume.

func (*FakeVolumes) Update

func (c *FakeVolumes) Update(ctx context.Context, volume *v1alpha1.Volume, opts v1.UpdateOptions) (result *v1alpha1.Volume, err error)

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

func (*FakeVolumes) UpdateStatus

func (c *FakeVolumes) UpdateStatus(ctx context.Context, volume *v1alpha1.Volume, opts v1.UpdateOptions) (*v1alpha1.Volume, error)

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

func (*FakeVolumes) Watch

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

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

Jump to

Keyboard shortcuts

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