mocks

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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) EXPECT

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 v2.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

type PublisherManager_Create_Call

type PublisherManager_Create_Call struct {
	*mock.Call
}

PublisherManager_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*PublisherManager_Create_Call) Return

func (*PublisherManager_Create_Call) Run

func (*PublisherManager_Create_Call) RunAndReturn

type PublisherManager_Delete_Call

type PublisherManager_Delete_Call struct {
	*mock.Call
}

PublisherManager_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*PublisherManager_Delete_Call) Return

func (*PublisherManager_Delete_Call) Run

func (*PublisherManager_Delete_Call) RunAndReturn

type PublisherManager_Expecter

type PublisherManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*PublisherManager_Expecter) Create

func (_e *PublisherManager_Expecter) Create(subscription interface{}) *PublisherManager_Create_Call

Create is a helper method to define mock.On call

  • subscription *types.Subscription

func (*PublisherManager_Expecter) Delete

func (_e *PublisherManager_Expecter) Delete(name interface{}) *PublisherManager_Delete_Call

Delete is a helper method to define mock.On call

  • name string

func (*PublisherManager_Expecter) Get

func (_e *PublisherManager_Expecter) Get(name interface{}) *PublisherManager_Get_Call

Get is a helper method to define mock.On call

  • name string

func (*PublisherManager_Expecter) List

List is a helper method to define mock.On call

func (*PublisherManager_Expecter) Publish

func (_e *PublisherManager_Expecter) Publish(cloudEvent interface{}, qos interface{}) *PublisherManager_Publish_Call

Publish is a helper method to define mock.On call

  • cloudEvent v2.Event
  • qos types.Qos

func (*PublisherManager_Expecter) TriggerHandshake

func (_e *PublisherManager_Expecter) TriggerHandshake(name interface{}) *PublisherManager_TriggerHandshake_Call

TriggerHandshake is a helper method to define mock.On call

  • name string

func (*PublisherManager_Expecter) Update

func (_e *PublisherManager_Expecter) Update(name interface{}, webhookAuth interface{}) *PublisherManager_Update_Call

Update is a helper method to define mock.On call

  • name string
  • webhookAuth *types.WebhookAuth

func (*PublisherManager_Expecter) UpdateState

func (_e *PublisherManager_Expecter) UpdateState(name interface{}, state interface{}) *PublisherManager_UpdateState_Call

UpdateState is a helper method to define mock.On call

  • name string
  • state types.State

type PublisherManager_Get_Call

type PublisherManager_Get_Call struct {
	*mock.Call
}

PublisherManager_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*PublisherManager_Get_Call) Return

func (*PublisherManager_Get_Call) Run

func (*PublisherManager_Get_Call) RunAndReturn

type PublisherManager_List_Call

type PublisherManager_List_Call struct {
	*mock.Call
}

PublisherManager_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*PublisherManager_List_Call) Return

func (*PublisherManager_List_Call) Run

func (*PublisherManager_List_Call) RunAndReturn

type PublisherManager_Publish_Call

type PublisherManager_Publish_Call struct {
	*mock.Call
}

PublisherManager_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'

func (*PublisherManager_Publish_Call) Return

func (*PublisherManager_Publish_Call) Run

func (_c *PublisherManager_Publish_Call) Run(run func(cloudEvent v2.Event, qos types.Qos)) *PublisherManager_Publish_Call

func (*PublisherManager_Publish_Call) RunAndReturn

type PublisherManager_TriggerHandshake_Call

type PublisherManager_TriggerHandshake_Call struct {
	*mock.Call
}

PublisherManager_TriggerHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerHandshake'

func (*PublisherManager_TriggerHandshake_Call) Return

func (*PublisherManager_TriggerHandshake_Call) Run

func (*PublisherManager_TriggerHandshake_Call) RunAndReturn

type PublisherManager_UpdateState_Call

type PublisherManager_UpdateState_Call struct {
	*mock.Call
}

PublisherManager_UpdateState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateState'

func (*PublisherManager_UpdateState_Call) Return

func (*PublisherManager_UpdateState_Call) Run

func (*PublisherManager_UpdateState_Call) RunAndReturn

type PublisherManager_Update_Call

type PublisherManager_Update_Call struct {
	*mock.Call
}

PublisherManager_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*PublisherManager_Update_Call) Return

func (*PublisherManager_Update_Call) Run

func (_c *PublisherManager_Update_Call) Run(run func(name string, webhookAuth *types.WebhookAuth)) *PublisherManager_Update_Call

func (*PublisherManager_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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