Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCloudEventsServer ¶
WithCloudEventsServer is a testing utility that help by starting a CloudEvents HTTP server which can catch a sent event.
Types ¶
type FakeClients ¶ added in v0.3.0
FakeClients creates K8s clients from a list of objects using fake packages.
func (*FakeClients) Context ¶ added in v0.3.0
func (c *FakeClients) Context() context.Context
func (*FakeClients) Dynamic ¶ added in v0.3.0
func (c *FakeClients) Dynamic() dynamic.Interface
func (*FakeClients) Typed ¶ added in v0.3.0
func (c *FakeClients) Typed() kubernetes.Interface
type Sender ¶ added in v0.3.0
type Sender struct {
Sent []cloudevents.Event
}
Sender is a mock sender that will record sent events for testing.
Click to show internal directories.
Click to hide internal directories.