enginetrust

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package enginetrust validates inline trust for projection engine clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FalkorTLS

func FalkorTLS(addr, mode string, ca []byte) (*tls.Config, error)

FalkorTLS validates FalkorDB's mode, address and optional CA. A nil config uses plaintext.

func RESPTLS

func RESPTLS(engine, addr, mode string, ca []byte) (*tls.Config, error)

RESPTLS validates TLS settings for a RESP engine reached through go-redis. engine names it in errors, which never repeat a configured value. mode is empty or disable for plaintext, or verify-full to check the certificate and the endpoint name, against ca when given and the system roots when not. A nil config uses plaintext.

func RedisTLS

func RedisTLS(addr, mode string, ca []byte) (*tls.Config, error)

RedisTLS validates the Redis stream transport's mode, address and optional CA. A nil config uses plaintext.

func TLSDialer

func TLSDialer(cfg *tls.Config, timeout time.Duration) func(ctx context.Context, network, addr string) (net.Conn, error)

TLSDialer returns a go-redis dialer that completes the TLS handshake under the caller's context, so cancelling a probe or closing the client stops a stalled handshake instead of waiting for it.

func ValidateElasticsearch

func ValidateElasticsearch(addrs []string, ca []byte) error

ValidateElasticsearch checks that an inline CA has only HTTPS endpoints and valid PEM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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