knconf

package
v0.41.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptsCEVersions

func AcceptsCEVersions(ctx context.Context, t feature.T, gvr schema.GroupVersionResource, name string)

func AssertEventPatterns added in v0.23.0

func AssertEventPatterns(prober *eventshub.EventProber, expected map[string]EventPattern) feature.StepFn

func DeliveryAttempts added in v0.23.0

func DeliveryAttempts(specs ...*v1.DeliverySpec) uint

DeliveryAttempts will return the number of times the first non-nil delivery spec declares retry to be. The returned value will be 1 + retry.

func EventToEvent added in v0.23.0

func EventToEvent(in *cloudevents.Event) conformanceevent.Event

func HasReadyInConditions

func HasReadyInConditions(_ context.Context, t feature.T, status duckv1.Status)

func KResourceHasObservedGeneration

func KResourceHasObservedGeneration(gvr schema.GroupVersionResource, name string) feature.StepFn

func KResourceHasReadyInConditions

func KResourceHasReadyInConditions(gvr schema.GroupVersionResource, name string) feature.StepFn

func ReceivedEventsFromProber added in v0.23.0

func ReceivedEventsFromProber(ctx context.Context, prober *eventshub.EventProber, prefix string) []conformanceevent.Event

func SentEventMatcher

func SentEventMatcher(uuid string) func(eventshub.EventInfo) error

Types

type EventInfoCombined

type EventInfoCombined struct {
	Sent     eventshub.EventInfo
	Response eventshub.EventInfo
}

func Correlate

func Correlate(in []eventshub.EventInfo) []EventInfoCombined

Correlate takes in an array of mixed Sent / Response events (matched with sentEventMatcher for example) and correlates them based on the sequence into a pair.

type EventPattern added in v0.23.0

type EventPattern struct {
	Success  []bool
	Interval []uint
}

func PatternFromEstimates added in v0.23.0

func PatternFromEstimates(attempts, failures uint) EventPattern

func PatternFromProber added in v0.23.0

func PatternFromProber(ctx context.Context, prober *eventshub.EventProber, prefix string) EventPattern

Jump to

Keyboard shortcuts

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