security

package
v0.0.0-...-6fba4f8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SSLCA         string   `toml:"ssl-ca" json:"ssl-ca"`
	SSLCert       string   `toml:"ssl-cert" json:"ssl-cert"`
	SSLKey        string   `toml:"ssl-key" json:"ssl-key"`
	CertAllowedCN []string `toml:"cert-allowed-cn" json:"cert-allowed-cn"`
}

Config is security config

func (*Config) ToTLSConfig

func (c *Config) ToTLSConfig() (tlsConfig *tls.Config, err error)

ToTLSConfig generates tls's config based on security section of the config.

func (*Config) ToTiDBSecurityConfig

func (c *Config) ToTiDBSecurityConfig() kvcfg.Security

ToTiDBSecurityConfig generates tidb security config

Jump to

Keyboard shortcuts

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