fake

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 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, channelName *string, namespace *string,
	headers *map[string][]string, payload *[]byte, publishRequest *api.Request) (*api.Error, 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