Documentation ¶
Index ¶
- type PublisherManager
- func (_m *PublisherManager) Create(subscription *types.Subscription) (*types.CreateResponse, error)
- func (_m *PublisherManager) Delete(name string) (*types.DeleteResponse, error)
- func (_m *PublisherManager) Get(name string) (*types.Subscription, *types.Response, error)
- func (_m *PublisherManager) List() (*types.Subscriptions, *types.Response, error)
- func (_m *PublisherManager) Publish(cloudEvent event.Event, qos types.Qos) (*types.PublishResponse, error)
- func (_m *PublisherManager) TriggerHandshake(name string) (*types.TriggerHandshake, error)
- func (_m *PublisherManager) Update(name string, webhookAuth *types.WebhookAuth) (*types.UpdateResponse, error)
- func (_m *PublisherManager) UpdateState(name string, state types.State) (*types.UpdateStateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublisherManager ¶
PublisherManager is an autogenerated mock type for the PublisherManager type
func NewPublisherManager ¶
func NewPublisherManager(t interface { mock.TestingT Cleanup(func()) }) *PublisherManager
NewPublisherManager creates a new instance of PublisherManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PublisherManager) Create ¶
func (_m *PublisherManager) Create(subscription *types.Subscription) (*types.CreateResponse, error)
Create provides a mock function with given fields: subscription
func (*PublisherManager) Delete ¶
func (_m *PublisherManager) Delete(name string) (*types.DeleteResponse, error)
Delete provides a mock function with given fields: name
func (*PublisherManager) Get ¶
func (_m *PublisherManager) Get(name string) (*types.Subscription, *types.Response, error)
Get provides a mock function with given fields: name
func (*PublisherManager) List ¶
func (_m *PublisherManager) List() (*types.Subscriptions, *types.Response, error)
List provides a mock function with given fields:
func (*PublisherManager) Publish ¶
func (_m *PublisherManager) Publish(cloudEvent event.Event, qos types.Qos) (*types.PublishResponse, error)
Publish provides a mock function with given fields: cloudEvent, qos
func (*PublisherManager) TriggerHandshake ¶
func (_m *PublisherManager) TriggerHandshake(name string) (*types.TriggerHandshake, error)
TriggerHandshake provides a mock function with given fields: name
func (*PublisherManager) Update ¶
func (_m *PublisherManager) Update(name string, webhookAuth *types.WebhookAuth) (*types.UpdateResponse, error)
Update provides a mock function with given fields: name, webhookAuth
func (*PublisherManager) UpdateState ¶
func (_m *PublisherManager) UpdateState(name string, state types.State) (*types.UpdateStateResponse, error)
UpdateState provides a mock function with given fields: name, state