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