requestreply

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 36 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCESQLVerifyCorrelationIdFilter

func RegisterCESQLVerifyCorrelationIdFilter(ctx context.Context) error

RegisterCESQLVerifyCorrelationIdFilter registers a new function with the CESQL runtime to verify correlation ids The function signature is KN_VERIFY_CORRELATION_ID(correlation_id, name, namespace, secret_name, pod_idx, replica_count)

func SetCorrelationId

func SetCorrelationId(ce *cloudevents.Event, correlationIdName string, aesKey []byte, idx int) error

SetCorrelationId sets the correlationid for a cloudevent by encrypting the id and setting the correlationid attribute with the original and encrypted ids

func VerifyReplyId

func VerifyReplyId(replyId string, aesKey []byte) (bool, error)

VerifyReplyId takes the reply id from a cloudevent and checks that it is valid for this RequestReply resource, by checking that the decrypted id matches the unencrypted id

Types

type AESKeyStore added in v0.47.0

type AESKeyStore struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (*AESKeyStore) GetAllKeys added in v0.47.0

func (ks *AESKeyStore) GetAllKeys(rrName types.NamespacedName) ([][]byte, bool)

func (*AESKeyStore) GetLatestKey added in v0.47.0

func (ks *AESKeyStore) GetLatestKey(rrName types.NamespacedName) ([]byte, bool)

func (*AESKeyStore) StopWatch added in v0.47.0

func (ks *AESKeyStore) StopWatch()

func (*AESKeyStore) WatchPath added in v0.47.0

func (ks *AESKeyStore) WatchPath(basePath string) error

type IngressHandler added in v0.47.0

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

func NewHandler added in v0.47.0

func NewHandler(logger *zap.Logger, requestReplyInformer eventingv1alpha1informers.RequestReplyInformer, trustBundleConfigMapLister corev1listers.ConfigMapNamespaceLister, keyStore *AESKeyStore, podIdx int) *IngressHandler

func (*IngressHandler) ServeHTTP added in v0.47.0

func (h *IngressHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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