Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeStorageProviders
- func (c *FakeStorageProviders) Create(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeStorageProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeStorageProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageProviderList, err error)
- func (c *FakeStorageProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) Update(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (result *v1alpha1.StorageProvider, err error)
- func (c *FakeStorageProviders) UpdateStatus(ctx context.Context, storageProvider *v1alpha1.StorageProvider, ...) (*v1alpha1.StorageProvider, error)
- func (c *FakeStorageProviders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeStorageV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStorageProviders ¶
type FakeStorageProviders struct {
Fake *FakeStorageV1alpha1
}
FakeStorageProviders implements StorageProviderInterface
func (*FakeStorageProviders) Create ¶
func (c *FakeStorageProviders) Create(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.CreateOptions) (result *v1alpha1.StorageProvider, err error)
Create takes the representation of a storageProvider and creates it. Returns the server's representation of the storageProvider, and an error, if there is any.
func (*FakeStorageProviders) Delete ¶
func (c *FakeStorageProviders) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the storageProvider and deletes it. Returns an error if one occurs.
func (*FakeStorageProviders) DeleteCollection ¶
func (c *FakeStorageProviders) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStorageProviders) Get ¶
func (c *FakeStorageProviders) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.StorageProvider, err error)
Get takes name of the storageProvider, and returns the corresponding storageProvider object, and an error if there is any.
func (*FakeStorageProviders) List ¶
func (c *FakeStorageProviders) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageProviderList, err error)
List takes label and field selectors, and returns the list of StorageProviders that match those selectors.
func (*FakeStorageProviders) Patch ¶
func (c *FakeStorageProviders) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.StorageProvider, err error)
Patch applies the patch and returns the patched storageProvider.
func (*FakeStorageProviders) Update ¶
func (c *FakeStorageProviders) Update(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.UpdateOptions) (result *v1alpha1.StorageProvider, err error)
Update takes the representation of a storageProvider and updates it. Returns the server's representation of the storageProvider, and an error, if there is any.
func (*FakeStorageProviders) UpdateStatus ¶
func (c *FakeStorageProviders) UpdateStatus(ctx context.Context, storageProvider *v1alpha1.StorageProvider, opts v1.UpdateOptions) (*v1alpha1.StorageProvider, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeStorageProviders) Watch ¶
func (c *FakeStorageProviders) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested storageProviders.
type FakeStorageV1alpha1 ¶
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) StorageProviders ¶
func (c *FakeStorageV1alpha1) StorageProviders() v1alpha1.StorageProviderInterface