Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockKnativePublisher ¶
func NewMockKnativePublisher() publisher.KnativePublisher
NewMockKnativePublisher creates a new KnativePublisher instance.
Types ¶
type MockKnativePublisher ¶
type MockKnativePublisher struct{}
MockKnativePublisher to mock the knative publisher for testing purposes.
func (*MockKnativePublisher) Publish ¶
func (m *MockKnativePublisher) Publish(knativeLib *knative.KnativeLib, namespace *string, headers *map[string][]string, payload *[]byte, source string, eventType string, eventTypeVersion string) (error *api.Error, status string, channelName string)
Publish for mocking the KnativePublisher.Publish behaviour.
Click to show internal directories.
Click to hide internal directories.