Documentation
¶
Index ¶
- func BuildServerTLSConfig(cfg *TLSConfig, clientCAFile string) (*tls.Config, error)
- func BuildServerTLSConfigWithClientAuth(cfg *TLSConfig, clientCAFile string) (*tls.Config, error)
- func BuildUpstreamTLSConfig(cfg *TLSConfig, upstreamCAFile, upstreamCertFile, upstreamKeyFile string) (*tls.Config, error)
- func NewLokiRouter(cfg *Config, logger logr.Logger) (*lokiRouter, error)
- type Config
- type LokiConfig
- type Server
- type StringSlice
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildServerTLSConfig ¶
BuildServerTLSConfig creates a TLS config for the server with optional mTLS.
func BuildServerTLSConfigWithClientAuth ¶
BuildServerTLSConfigWithClientAuth creates a TLS config for the server with optional client authentication.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
AdminAddr string
DefaultTenant string
Loki LokiConfig
// Server TLS configuration
TLSCertFile string
TLSKeyFile string
// Client TLS configuration
TLSClientCAFile string
TLSClientAuth string
// Generic TLS configuration
TLSMinVersion string
TLSMaxVersion string
TLSCipherSuites StringSlice
TLSCurvePrefs StringSlice
}
func (*Config) RegisterFlags ¶
RegisterFlags registers the configuration flags.
func (*Config) TLSEnabled ¶
TLSEnabled returns true if TLS certificates are configured.
func (*Config) TLSOptions ¶
TLSOptions returns the TLS configuration options.
type LokiConfig ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *Config, logger logr.Logger, reg prometheus.Registerer) (*Server, error)
type StringSlice ¶
type StringSlice []string
StringSlice is a custom flag type for comma-separated strings.
func (*StringSlice) Set ¶
func (s *StringSlice) Set(value string) error
func (*StringSlice) String ¶
func (s *StringSlice) String() string
Click to show internal directories.
Click to hide internal directories.