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, channelName *string, namespace *string, headers *map[string][]string, payload *[]byte, publishRequest *api.Request) (*api.Error, string)
Publish for mocking the KnativePublisher.Publish behaviour.
Click to show internal directories.
Click to hide internal directories.