Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Security ¶
type Security struct { SSLCA string `toml:"ssl-ca" json:"ssl-ca" yaml:"ssl-ca"` SSLCert string `toml:"ssl-cert" json:"ssl-cert" yaml:"ssl-cert"` SSLKey string `toml:"ssl-key" json:"ssl-key" yaml:"ssl-key"` CertAllowedCN strArray `toml:"cert-allowed-cn" json:"cert-allowed-cn" yaml:"cert-allowed-cn"` SSLCABytes []byte `toml:"ssl-ca-bytes" json:"-" yaml:"ssl-ca-bytes"` SSLKeyBytes []byte `toml:"ssl-key-bytes" json:"-" yaml:"ssl-key-bytes"` SSLCertBytes []byte `toml:"ssl-cert-bytes" json:"-" yaml:"ssl-cert-bytes"` SSLCABase64 string `toml:"ssl-ca-base64" json:"-" yaml:"ssl-ca-base64"` SSLKeyBase64 string `toml:"ssl-key-base64" json:"-" yaml:"ssl-key-base64"` SSLCertBase64 string `toml:"ssl-cert-base64" json:"-" yaml:"ssl-cert-base64"` }
Security config.
func (*Security) ClearSSLBytesData ¶
func (s *Security) ClearSSLBytesData()
ClearSSLBytesData clear all tls config bytes data.
func (*Security) LoadTLSContent ¶
LoadTLSContent load all tls config from file or base64 fields.
Click to show internal directories.
Click to hide internal directories.