security

package
v1.154.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled added in v1.143.2

func IsEnabled(c *Config) bool

IsEnabled for security.

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,omitempty" json:"enabled,omitempty" toml:"enabled,omitempty"`
	CertFile string `yaml:"cert_file,omitempty" json:"cert_file,omitempty" toml:"cert_file,omitempty"`
	KeyFile  string `yaml:"key_file,omitempty" json:"key_file,omitempty" toml:"key_file,omitempty"`
}

Config for security.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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