Documentation ¶
Index ¶
- type EnvLoader
- type FileLoader
- type Loader
- func CreateClientLoader(conf *TLSConfig, logger zLogger.ZLogger) (tlsConfig *tls.Config, l Loader, err error)
- func CreateServerLoader(mutual bool, conf *TLSConfig, uris []string, logger zLogger.ZLogger) (tlsConfig *tls.Config, l Loader, err error)
- func NewDevLoader(certChannel chan *tls.Certificate, client bool) Loader
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvLoader ¶
type EnvLoader struct {
// contains filtered or unexported fields
}
func NewEnvLoader ¶
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
func NewFileLoader ¶
func NewFileLoader(certChannel chan *tls.Certificate, client bool, cert, key, ca string, interval time.Duration, logger zLogger.ZLogger) *FileLoader
func (*FileLoader) Close ¶
func (f *FileLoader) Close() error
func (*FileLoader) GetCA ¶
func (f *FileLoader) GetCA() []byte
func (*FileLoader) Start ¶
func (f *FileLoader) Start() (err error)
type Loader ¶
func CreateClientLoader ¶
func CreateServerLoader ¶
func NewDevLoader ¶ added in v2.0.3
func NewDevLoader(certChannel chan *tls.Certificate, client bool) Loader
type TLSConfig ¶
type TLSConfig struct { Type string `json:"type,omitempty" toml:"type"` // "ENV", "FILE", "SERVICE" OR "SELF" Cert string `json:"cert,omitempty" toml:"cert"` Key string `json:"key,omitempty" toml:"key"` CA string `json:"ca,omitempty" toml:"ca"` Interval configutil.Duration `json:"interval,omitempty" toml:"interval"` }
Click to show internal directories.
Click to hide internal directories.