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