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