tls

package
v1.202.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for security.

func NewConfig

func NewConfig(cfg *Config) (*tls.Config, error)

NewConfig for tls.

Types

type Cert added in v1.193.0

type Cert string

Cert for tls.

type Config

type Config struct {
	Cert Cert `yaml:"cert,omitempty" json:"cert,omitempty" toml:"cert,omitempty"`
	Key  Key  `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
}

Config for tls.

func (*Config) GetCert

func (c *Config) GetCert() (string, error)

GetCert for tls.

func (*Config) GetKey

func (c *Config) GetKey() (string, error)

GetKey for tls.

func (*Config) HasKeyPair

func (c *Config) HasKeyPair() bool

HasKeyPair for security.

type Key added in v1.193.0

type Key string

Cert for tls.

Jump to

Keyboard shortcuts

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