Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConfig ¶
Types ¶
type ClientConfig ¶
type Config ¶
type Config interface {
Construct(options configures.Config) (err error)
Server() (srvTLS *tls.Config, ln ListenerFunc)
Client() (cliTLS *tls.Config, dialer Dialer)
}
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶ added in v1.1.3
func (*DefaultConfig) Client ¶
func (config *DefaultConfig) Client() (cliTLS *tls.Config, dialer Dialer)
func (*DefaultConfig) Construct ¶ added in v1.2.6
func (config *DefaultConfig) Construct(options configures.Config) (err error)
func (*DefaultConfig) Server ¶
func (config *DefaultConfig) Server() (srvTLS *tls.Config, ln ListenerFunc)
type DefaultConfigOptions ¶
type DefaultConfigOptions struct {
CA []string `json:"ca"`
Server *ServerConfig `json:"server"`
Client *ClientConfig `json:"client"`
}
type Keypairs ¶
type Keypairs []Keypair
func (Keypairs) Certificates ¶
func (kps Keypairs) Certificates() (tlcps []tlcp.Certificate, standards []tls.Certificate, err error)
type SSCConfig ¶
type SSCConfig struct {
// contains filtered or unexported fields
}
func (*SSCConfig) Construct ¶ added in v1.2.6
func (config *SSCConfig) Construct(options configures.Config) (err error)
func (*SSCConfig) NewListener ¶
type SSCConfigOptions ¶
type SSCConfigOptions struct {
CA string `json:"ca"`
CAKEY string `json:"caKey"`
ClientAuth string `json:"clientAuth"`
ServerName string `json:"serverName"`
InsecureSkipVerify bool `json:"insecureSkipVerify"`
}
func (*SSCConfigOptions) ClientAuthType ¶ added in v1.2.0
func (opt *SSCConfigOptions) ClientAuthType() tls.ClientAuthType
Click to show internal directories.
Click to hide internal directories.