Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeDirectCSIDrives
- func (c *FakeDirectCSIDrives) Create(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, ...) (result *v1beta2.DirectCSIDrive, err error)
- func (c *FakeDirectCSIDrives) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeDirectCSIDrives) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeDirectCSIDrives) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DirectCSIDrive, err error)
- func (c *FakeDirectCSIDrives) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DirectCSIDriveList, err error)
- func (c *FakeDirectCSIDrives) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta2.DirectCSIDrive, err error)
- func (c *FakeDirectCSIDrives) Update(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, ...) (result *v1beta2.DirectCSIDrive, err error)
- func (c *FakeDirectCSIDrives) UpdateStatus(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, ...) (*v1beta2.DirectCSIDrive, error)
- func (c *FakeDirectCSIDrives) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeDirectCSIVolumes
- func (c *FakeDirectCSIVolumes) Create(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, ...) (result *v1beta2.DirectCSIVolume, err error)
- func (c *FakeDirectCSIVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeDirectCSIVolumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeDirectCSIVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DirectCSIVolume, err error)
- func (c *FakeDirectCSIVolumes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DirectCSIVolumeList, err error)
- func (c *FakeDirectCSIVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta2.DirectCSIVolume, err error)
- func (c *FakeDirectCSIVolumes) Update(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, ...) (result *v1beta2.DirectCSIVolume, err error)
- func (c *FakeDirectCSIVolumes) UpdateStatus(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, ...) (*v1beta2.DirectCSIVolume, error)
- func (c *FakeDirectCSIVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeDirectV1beta2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDirectCSIDrives ¶
type FakeDirectCSIDrives struct {
Fake *FakeDirectV1beta2
}
FakeDirectCSIDrives implements DirectCSIDriveInterface
func (*FakeDirectCSIDrives) Create ¶
func (c *FakeDirectCSIDrives) Create(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, opts v1.CreateOptions) (result *v1beta2.DirectCSIDrive, err error)
Create takes the representation of a directCSIDrive and creates it. Returns the server's representation of the directCSIDrive, and an error, if there is any.
func (*FakeDirectCSIDrives) Delete ¶
func (c *FakeDirectCSIDrives) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the directCSIDrive and deletes it. Returns an error if one occurs.
func (*FakeDirectCSIDrives) DeleteCollection ¶
func (c *FakeDirectCSIDrives) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDirectCSIDrives) Get ¶
func (c *FakeDirectCSIDrives) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DirectCSIDrive, err error)
Get takes name of the directCSIDrive, and returns the corresponding directCSIDrive object, and an error if there is any.
func (*FakeDirectCSIDrives) List ¶
func (c *FakeDirectCSIDrives) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DirectCSIDriveList, err error)
List takes label and field selectors, and returns the list of DirectCSIDrives that match those selectors.
func (*FakeDirectCSIDrives) Patch ¶
func (c *FakeDirectCSIDrives) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.DirectCSIDrive, err error)
Patch applies the patch and returns the patched directCSIDrive.
func (*FakeDirectCSIDrives) Update ¶
func (c *FakeDirectCSIDrives) Update(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, opts v1.UpdateOptions) (result *v1beta2.DirectCSIDrive, err error)
Update takes the representation of a directCSIDrive and updates it. Returns the server's representation of the directCSIDrive, and an error, if there is any.
func (*FakeDirectCSIDrives) UpdateStatus ¶
func (c *FakeDirectCSIDrives) UpdateStatus(ctx context.Context, directCSIDrive *v1beta2.DirectCSIDrive, opts v1.UpdateOptions) (*v1beta2.DirectCSIDrive, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDirectCSIDrives) Watch ¶
func (c *FakeDirectCSIDrives) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested directCSIDrives.
type FakeDirectCSIVolumes ¶
type FakeDirectCSIVolumes struct {
Fake *FakeDirectV1beta2
}
FakeDirectCSIVolumes implements DirectCSIVolumeInterface
func (*FakeDirectCSIVolumes) Create ¶
func (c *FakeDirectCSIVolumes) Create(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, opts v1.CreateOptions) (result *v1beta2.DirectCSIVolume, err error)
Create takes the representation of a directCSIVolume and creates it. Returns the server's representation of the directCSIVolume, and an error, if there is any.
func (*FakeDirectCSIVolumes) Delete ¶
func (c *FakeDirectCSIVolumes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the directCSIVolume and deletes it. Returns an error if one occurs.
func (*FakeDirectCSIVolumes) DeleteCollection ¶
func (c *FakeDirectCSIVolumes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDirectCSIVolumes) Get ¶
func (c *FakeDirectCSIVolumes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.DirectCSIVolume, err error)
Get takes name of the directCSIVolume, and returns the corresponding directCSIVolume object, and an error if there is any.
func (*FakeDirectCSIVolumes) List ¶
func (c *FakeDirectCSIVolumes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DirectCSIVolumeList, err error)
List takes label and field selectors, and returns the list of DirectCSIVolumes that match those selectors.
func (*FakeDirectCSIVolumes) Patch ¶
func (c *FakeDirectCSIVolumes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.DirectCSIVolume, err error)
Patch applies the patch and returns the patched directCSIVolume.
func (*FakeDirectCSIVolumes) Update ¶
func (c *FakeDirectCSIVolumes) Update(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, opts v1.UpdateOptions) (result *v1beta2.DirectCSIVolume, err error)
Update takes the representation of a directCSIVolume and updates it. Returns the server's representation of the directCSIVolume, and an error, if there is any.
func (*FakeDirectCSIVolumes) UpdateStatus ¶
func (c *FakeDirectCSIVolumes) UpdateStatus(ctx context.Context, directCSIVolume *v1beta2.DirectCSIVolume, opts v1.UpdateOptions) (*v1beta2.DirectCSIVolume, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDirectCSIVolumes) Watch ¶
func (c *FakeDirectCSIVolumes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested directCSIVolumes.
type FakeDirectV1beta2 ¶
func (*FakeDirectV1beta2) DirectCSIDrives ¶
func (c *FakeDirectV1beta2) DirectCSIDrives() v1beta2.DirectCSIDriveInterface
func (*FakeDirectV1beta2) DirectCSIVolumes ¶
func (c *FakeDirectV1beta2) DirectCSIVolumes() v1beta2.DirectCSIVolumeInterface
func (*FakeDirectV1beta2) RESTClient ¶
func (c *FakeDirectV1beta2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.