Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeInternalV1
- type FakePullSubscriptions
- func (c *FakePullSubscriptions) Create(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, ...) (result *inteventsv1.PullSubscription, err error)
- func (c *FakePullSubscriptions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePullSubscriptions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePullSubscriptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *inteventsv1.PullSubscription, err error)
- func (c *FakePullSubscriptions) List(ctx context.Context, opts v1.ListOptions) (result *inteventsv1.PullSubscriptionList, err error)
- func (c *FakePullSubscriptions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *inteventsv1.PullSubscription, err error)
- func (c *FakePullSubscriptions) Update(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, ...) (result *inteventsv1.PullSubscription, err error)
- func (c *FakePullSubscriptions) UpdateStatus(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, ...) (*inteventsv1.PullSubscription, error)
- func (c *FakePullSubscriptions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeTopics
- func (c *FakeTopics) Create(ctx context.Context, topic *inteventsv1.Topic, opts v1.CreateOptions) (result *inteventsv1.Topic, err error)
- func (c *FakeTopics) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeTopics) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeTopics) Get(ctx context.Context, name string, options v1.GetOptions) (result *inteventsv1.Topic, err error)
- func (c *FakeTopics) List(ctx context.Context, opts v1.ListOptions) (result *inteventsv1.TopicList, err error)
- func (c *FakeTopics) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *inteventsv1.Topic, err error)
- func (c *FakeTopics) Update(ctx context.Context, topic *inteventsv1.Topic, opts v1.UpdateOptions) (result *inteventsv1.Topic, err error)
- func (c *FakeTopics) UpdateStatus(ctx context.Context, topic *inteventsv1.Topic, opts v1.UpdateOptions) (*inteventsv1.Topic, error)
- func (c *FakeTopics) 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 FakeInternalV1 ¶
func (*FakeInternalV1) PullSubscriptions ¶
func (c *FakeInternalV1) PullSubscriptions(namespace string) v1.PullSubscriptionInterface
func (*FakeInternalV1) RESTClient ¶
func (c *FakeInternalV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeInternalV1) Topics ¶
func (c *FakeInternalV1) Topics(namespace string) v1.TopicInterface
type FakePullSubscriptions ¶
type FakePullSubscriptions struct { Fake *FakeInternalV1 // contains filtered or unexported fields }
FakePullSubscriptions implements PullSubscriptionInterface
func (*FakePullSubscriptions) Create ¶
func (c *FakePullSubscriptions) Create(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, opts v1.CreateOptions) (result *inteventsv1.PullSubscription, err error)
Create takes the representation of a pullSubscription and creates it. Returns the server's representation of the pullSubscription, and an error, if there is any.
func (*FakePullSubscriptions) Delete ¶
func (c *FakePullSubscriptions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pullSubscription and deletes it. Returns an error if one occurs.
func (*FakePullSubscriptions) DeleteCollection ¶
func (c *FakePullSubscriptions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePullSubscriptions) Get ¶
func (c *FakePullSubscriptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *inteventsv1.PullSubscription, err error)
Get takes name of the pullSubscription, and returns the corresponding pullSubscription object, and an error if there is any.
func (*FakePullSubscriptions) List ¶
func (c *FakePullSubscriptions) List(ctx context.Context, opts v1.ListOptions) (result *inteventsv1.PullSubscriptionList, err error)
List takes label and field selectors, and returns the list of PullSubscriptions that match those selectors.
func (*FakePullSubscriptions) Patch ¶
func (c *FakePullSubscriptions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *inteventsv1.PullSubscription, err error)
Patch applies the patch and returns the patched pullSubscription.
func (*FakePullSubscriptions) Update ¶
func (c *FakePullSubscriptions) Update(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, opts v1.UpdateOptions) (result *inteventsv1.PullSubscription, err error)
Update takes the representation of a pullSubscription and updates it. Returns the server's representation of the pullSubscription, and an error, if there is any.
func (*FakePullSubscriptions) UpdateStatus ¶
func (c *FakePullSubscriptions) UpdateStatus(ctx context.Context, pullSubscription *inteventsv1.PullSubscription, opts v1.UpdateOptions) (*inteventsv1.PullSubscription, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePullSubscriptions) Watch ¶
func (c *FakePullSubscriptions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pullSubscriptions.
type FakeTopics ¶
type FakeTopics struct { Fake *FakeInternalV1 // contains filtered or unexported fields }
FakeTopics implements TopicInterface
func (*FakeTopics) Create ¶
func (c *FakeTopics) Create(ctx context.Context, topic *inteventsv1.Topic, opts v1.CreateOptions) (result *inteventsv1.Topic, err error)
Create takes the representation of a topic and creates it. Returns the server's representation of the topic, and an error, if there is any.
func (*FakeTopics) Delete ¶
func (c *FakeTopics) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the topic and deletes it. Returns an error if one occurs.
func (*FakeTopics) DeleteCollection ¶
func (c *FakeTopics) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTopics) Get ¶
func (c *FakeTopics) Get(ctx context.Context, name string, options v1.GetOptions) (result *inteventsv1.Topic, err error)
Get takes name of the topic, and returns the corresponding topic object, and an error if there is any.
func (*FakeTopics) List ¶
func (c *FakeTopics) List(ctx context.Context, opts v1.ListOptions) (result *inteventsv1.TopicList, err error)
List takes label and field selectors, and returns the list of Topics that match those selectors.
func (*FakeTopics) Patch ¶
func (c *FakeTopics) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *inteventsv1.Topic, err error)
Patch applies the patch and returns the patched topic.
func (*FakeTopics) Update ¶
func (c *FakeTopics) Update(ctx context.Context, topic *inteventsv1.Topic, opts v1.UpdateOptions) (result *inteventsv1.Topic, err error)
Update takes the representation of a topic and updates it. Returns the server's representation of the topic, and an error, if there is any.
func (*FakeTopics) UpdateStatus ¶
func (c *FakeTopics) UpdateStatus(ctx context.Context, topic *inteventsv1.Topic, opts v1.UpdateOptions) (*inteventsv1.Topic, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeTopics) Watch ¶
func (c *FakeTopics) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested topics.