security

package
v1.122.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientTLSConfig added in v1.116.2

func NewClientTLSConfig(sec Config) (*tls.Config, error)

NewClientTLSConfig for security.

func NewTLSConfig added in v1.116.2

func NewTLSConfig(sec Config) (*tls.Config, error)

NewTLSConfig for security.

Types

type Config

type Config struct {
	Enabled        bool   `yaml:"enabled" json:"enabled" toml:"enabled"`
	CertFile       string `yaml:"cert_file" json:"cert_file" toml:"cert_file"`
	KeyFile        string `yaml:"key_file" json:"key_file" toml:"key_file"`
	ClientCertFile string `yaml:"client_cert_file" json:"client_cert_file" toml:"client_cert_file"`
	ClientKeyFile  string `yaml:"client_key_file" json:"client_key_file" toml:"client_key_file"`
}

Config for security.

func (*Config) IsEnabled added in v1.113.0

func (c *Config) IsEnabled() bool

IsEnabled security.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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