fake

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentOptions

func NewAgentOptions(client *CloudEventsFakeClient, clusterName, agentID string) *options.CloudEventsAgentOptions

func NewSourceOptions

func NewSourceOptions(client *CloudEventsFakeClient, sourceID string) *options.CloudEventsSourceOptions

Types

type CloudEventsFakeClient

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

func NewCloudEventsFakeClient

func NewCloudEventsFakeClient(receivedEvents ...cloudevents.Event) *CloudEventsFakeClient

func (*CloudEventsFakeClient) GetSentEvents

func (c *CloudEventsFakeClient) GetSentEvents() []cloudevents.Event

func (*CloudEventsFakeClient) Request

func (*CloudEventsFakeClient) Send

func (*CloudEventsFakeClient) StartReceiver

func (c *CloudEventsFakeClient) StartReceiver(ctx context.Context, fn interface{}) error

type CloudEventsFakeOptions

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

func (*CloudEventsFakeOptions) Client

func (*CloudEventsFakeOptions) ErrorChan

func (o *CloudEventsFakeOptions) ErrorChan() <-chan error

func (*CloudEventsFakeOptions) WithContext

Jump to

Keyboard shortcuts

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