Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeEventsV1alpha1
- type FakeStorages
- func (c *FakeStorages) Create(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)
- func (c *FakeStorages) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeStorages) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeStorages) Get(name string, options v1.GetOptions) (result *v1alpha1.Storage, err error)
- func (c *FakeStorages) List(opts v1.ListOptions) (result *v1alpha1.StorageList, err error)
- func (c *FakeStorages) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Storage, err error)
- func (c *FakeStorages) Update(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)
- func (c *FakeStorages) UpdateStatus(storage *v1alpha1.Storage) (*v1alpha1.Storage, error)
- func (c *FakeStorages) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEventsV1alpha1 ¶
func (*FakeEventsV1alpha1) RESTClient ¶
func (c *FakeEventsV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeEventsV1alpha1) Storages ¶ added in v0.8.1
func (c *FakeEventsV1alpha1) Storages(namespace string) v1alpha1.StorageInterface
type FakeStorages ¶ added in v0.8.1
type FakeStorages struct { Fake *FakeEventsV1alpha1 // contains filtered or unexported fields }
FakeStorages implements StorageInterface
func (*FakeStorages) Create ¶ added in v0.8.1
Create takes the representation of a storage and creates it. Returns the server's representation of the storage, and an error, if there is any.
func (*FakeStorages) Delete ¶ added in v0.8.1
func (c *FakeStorages) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the storage and deletes it. Returns an error if one occurs.
func (*FakeStorages) DeleteCollection ¶ added in v0.8.1
func (c *FakeStorages) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeStorages) Get ¶ added in v0.8.1
func (c *FakeStorages) Get(name string, options v1.GetOptions) (result *v1alpha1.Storage, err error)
Get takes name of the storage, and returns the corresponding storage object, and an error if there is any.
func (*FakeStorages) List ¶ added in v0.8.1
func (c *FakeStorages) List(opts v1.ListOptions) (result *v1alpha1.StorageList, err error)
List takes label and field selectors, and returns the list of Storages that match those selectors.
func (*FakeStorages) Patch ¶ added in v0.8.1
func (c *FakeStorages) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Storage, err error)
Patch applies the patch and returns the patched storage.
func (*FakeStorages) Update ¶ added in v0.8.1
Update takes the representation of a storage and updates it. Returns the server's representation of the storage, and an error, if there is any.
func (*FakeStorages) UpdateStatus ¶ added in v0.8.1
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeStorages) Watch ¶ added in v0.8.1
func (c *FakeStorages) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested storages.