Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeConsumerV1alpha1
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeConsumerV1alpha1 ¶
func (*FakeConsumerV1alpha1) Consumers ¶
func (c *FakeConsumerV1alpha1) Consumers() v1alpha1.ConsumerInterface
func (*FakeConsumerV1alpha1) RESTClient ¶
func (c *FakeConsumerV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeConsumers ¶
type FakeConsumers struct {
Fake *FakeConsumerV1alpha1
}
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.