Help us shape the future of Go! Take the 2026 Go Developer Survey

redisconfig

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package redisconfig provides serializable Redis connection settings.

+groupName=toolhive.stacklok.dev +versionName=redisconfig

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSConfig

type TLSConfig struct {
	// InsecureSkipVerify skips server certificate and hostname verification.
	// +optional
	InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty"`

	// CACertFile is the path to a PEM-encoded CA bundle. When configured, this
	// bundle replaces the system roots used to verify the Redis server.
	// +optional
	CACertFile string `json:"caCertFile,omitempty" yaml:"caCertFile,omitempty"`
}

TLSConfig configures TLS for a Redis connection. Presence enables TLS; an empty configuration verifies the server certificate using system roots. +kubebuilder:object:generate=true +gendoc

func (*TLSConfig) Load

func (c *TLSConfig) Load() (*redisconn.TLSConfig, error)

Load resolves and validates the CA bundle for a Redis connection. A nil receiver disables TLS. A configured CA file must contain valid certificates; errors are returned rather than falling back to system roots or plaintext.

Jump to

Keyboard shortcuts

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