mocks

package
v0.0.0-...-ea047a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublisherManager

type PublisherManager struct {
	mock.Mock
}

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

Get provides a mock function with given fields: name

func (*PublisherManager) List

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL