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