loaderutils

package
v0.120.25-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 13 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 GetConfigBytes

func GetConfigBytes(configFilePath string) ([][]byte, error)

func GetFileBytes

func GetFileBytes(filename string) ([]byte, error)

func LoadBaseTLSConfig

func LoadBaseTLSConfig(tlsConfig *shared.TLSConfigFile) (*tls.Config, *x509.CertPool, error)

func LoadClientTLSConfig

func LoadClientTLSConfig(tlsConfig *client.ClientTLSConfigFile, serverName string) (*tls.Config, error)

func LoadConfigFromViper

func LoadConfigFromViper(bindFunc func(v *viper.Viper), configFile interface{}, files ...[]byte) (*viper.Viper, error)

func LoadServerTLSConfig

func LoadServerTLSConfig(tlsConfig *shared.TLSConfigFile) (*tls.Config, error)

func ParseTLSMinVersion added in v0.88.4

func ParseTLSMinVersion(s string) (uint16, error)

ParseTLSMinVersion parses a TLS minimum version string. Empty defaults to TLS 1.3.

Types

type TokenConf added in v0.75.0

type TokenConf struct {
	ExpiresAt            time.Time
	ServerURL            string
	GrpcBroadcastAddress string
	TenantId             string
}

func GetConfFromJWT added in v0.75.0

func GetConfFromJWT(token string) (*TokenConf, error)

Jump to

Keyboard shortcuts

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