tls

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamEmpty liberr.CodeError = iota + libcfg.MinErrorComponentTls
	ErrorParamInvalid
	ErrorComponentNotInitialized
	ErrorConfigInvalid
	ErrorComponentStart
	ErrorComponentReload
)
View Source
const (
	ComponentType = "tls"
)

Variables

This section is empty.

Functions

func DefaultConfig added in v1.8.10

func DefaultConfig(indent string) []byte

func GetRootCaCert added in v1.17.0

func GetRootCaCert(fct libtls.FctRootCA) tlscas.Cert

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentTlS)

func RegisterNew

func RegisterNew(ctx libctx.FuncContext, cfg libcfg.Config, key string, defCARoot libtls.FctRootCACert)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentTlS

type ComponentTlS interface {
	cfgtps.Component
	Config() *libtls.Config
	GetTLS() libtls.TLSConfig
	SetTLS(tls libtls.TLSConfig)
}

func Load

func Load(getCpt cfgtps.FuncCptGet, key string) ComponentTlS

func New

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳