fake

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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