redisconfig

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 3 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

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