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