Documentation ¶
Index ¶
- func ContextFrom(tctx cloudevents.HTTPTransportContext, targetURI *url.URL) context.Context
- func GenerateFixedName(owner metav1.Object, prefix string) string
- func GetClusterDomainName() string
- func ObjectRef(obj metav1.Object, gvk schema.GroupVersionKind) corev1.ObjectReference
- func PassThroughHeaders(headers http.Header) http.Header
- func ToDNS1123Subdomain(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextFrom ¶ added in v0.10.0
func ContextFrom(tctx cloudevents.HTTPTransportContext, targetURI *url.URL) context.Context
ContextFrom creates the context to use when sending a Cloud Event with cloudevents.Client. It sets the target if specified, and attaches a filtered set of headers from the initial request.
func GenerateFixedName ¶ added in v0.8.0
GenerateFixedName generates a fixed name for the given owning resource and human readable prefix. The name's length will be short enough to be valid for K8s Services.
func GetClusterDomainName ¶
func GetClusterDomainName() string
GetClusterDomainName returns cluster's domain name or an error Closes issue: https://github.com/knative/eventing/issues/714
func ObjectRef ¶ added in v0.6.0
func ObjectRef(obj metav1.Object, gvk schema.GroupVersionKind) corev1.ObjectReference
func PassThroughHeaders ¶ added in v0.10.0
PassThroughHeaders extracts the headers from headers that are in the `forwardHeaders` set or has any of the prefixes in `forwardPrefixes`.
func ToDNS1123Subdomain ¶ added in v0.6.0
ToDNS1123Subdomain converts 'name' to a valid DNS1123 subdomain, required for object names in K8s.
Types ¶
This section is empty.