Documentation ¶
Index ¶
- type ACMEConfig
- type ACMELoader
- type CertCreateStruct
- type CertResultMessage
- type Config
- type DevConfig
- type EnvConfig
- type EnvLoader
- type FileConfig
- type FileLoader
- type Loader
- func CreateClientLoader(conf *Config, logger zLogger.ZLogger, hosts ...string) (tlsConfig *tls.Config, l Loader, err error)
- func CreateServerLoader(mutual bool, conf *Config, uris []string, logger zLogger.ZLogger) (tlsConfig *tls.Config, l Loader, err error)
- func NewDevLoader(certChannel chan *tls.Certificate, client bool, conf *DevConfig, ...) (Loader, error)
- type MiniVaultConfig
- type MiniVaultLoader
- type TokenCreateStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACMEConfig ¶ added in v2.0.8
type ACMELoader ¶ added in v2.0.8
type ACMELoader struct {
// contains filtered or unexported fields
}
func NewACMELoader ¶ added in v2.0.8
func NewACMELoader(_ chan *tls.Certificate, conf *ACMEConfig) (*ACMELoader, error)
func (*ACMELoader) Close ¶ added in v2.0.8
func (al *ACMELoader) Close() error
func (*ACMELoader) GetTLSConfig ¶ added in v2.0.8
func (al *ACMELoader) GetTLSConfig() (*tls.Config, error)
func (*ACMELoader) Run ¶ added in v2.0.8
func (al *ACMELoader) Run() error
type CertCreateStruct ¶ added in v2.0.1
type CertResultMessage ¶ added in v2.0.1
type Config ¶ added in v2.0.1
type Config struct { Type string `json:"type,omitempty" toml:"type"` // "ENV", "FILE", "SERVICE" OR "SELF" //Interval configutil.Duration `json:"interval,omitempty" toml:"interval"` Vault *MiniVaultConfig `json:"minivault,omitempty" toml:"minivault"` File *FileConfig `json:"file,omitempty" toml:"file"` Env *EnvConfig `json:"env,omitempty" toml:"env"` Dev *DevConfig `json:"dev,omitempty" toml:"dev"` ACME *ACMEConfig `json:"acme,omitempty" toml:"acme"` //CA []configtrust.Certificate `json:"ca,omitempty" toml:"ca"` //UseSystemPool bool `json:"usesystempool,omitempty" toml:"usesystempool"` InitialTimeout configutil.Duration `json:"initialtimeout,omitempty" toml:"initialtimeout"` }
type DevConfig ¶ added in v2.0.5
type DevConfig struct { Interval configutil.Duration `json:"interval,omitempty" toml:"interval"` UseSystemPool bool `json:"usesystempool,omitempty" toml:"usesystempool"` }
type EnvConfig ¶ added in v2.0.1
type EnvConfig struct { Cert string `json:"cert,omitempty" toml:"cert"` Key string `json:"key,omitempty" toml:"key"` Interval configutil.Duration `json:"interval,omitempty" toml:"interval"` CA []configtrust.Certificate `json:"ca,omitempty" toml:"ca"` UseSystemPool bool `json:"usesystempool,omitempty" toml:"usesystempool"` }
type EnvLoader ¶
type EnvLoader struct {
// contains filtered or unexported fields
}
func NewEnvLoader ¶
func (*EnvLoader) GetTLSConfig ¶ added in v2.0.8
type FileConfig ¶ added in v2.0.1
type FileConfig struct { Cert string `json:"cert,omitempty" toml:"cert"` Key string `json:"key,omitempty" toml:"key"` Interval configutil.Duration `json:"interval,omitempty" toml:"interval"` CA []configtrust.Certificate `json:"ca,omitempty" toml:"ca"` UseSystemPool bool `json:"usesystempool,omitempty" toml:"usesystempool"` }
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
func NewFileLoader ¶
func NewFileLoader(certChannel chan *tls.Certificate, conf *FileConfig, logger zLogger.ZLogger) (*FileLoader, error)
func (*FileLoader) Close ¶
func (f *FileLoader) Close() error
func (*FileLoader) GetTLSConfig ¶ added in v2.0.8
func (f *FileLoader) GetTLSConfig() (*tls.Config, error)
func (*FileLoader) Run ¶
func (f *FileLoader) Run() error
type Loader ¶
type Loader interface { io.Closer Run() error GetCA() (*x509.CertPool, error) GetTLSConfig() (*tls.Config, error) }
func CreateClientLoader ¶
func CreateServerLoader ¶
func NewDevLoader ¶
type MiniVaultConfig ¶ added in v2.0.1
type MiniVaultConfig struct { BaseURL string `json:"baseurl,omitempty" toml:"baseurl"` ParentToken string `json:"parenttoken,omitempty" toml:"parenttoken"` TokenType string `json:"tokentype,omitempty" toml:"tokentype"` TokenPolicies []string `json:"tokenpolicies,omitempty" toml:"tokenpolicies"` TokenInterval configutil.Duration `json:"tokeninterval,omitempty" toml:"tokeninterval"` TokenTTL configutil.Duration `json:"tokenttl,omitempty" toml:"tokenttl"` CertType string `json:"certtype,omitempty" toml:"certtype"` URIs []string `json:"uris,omitempty" toml:"uris"` DNSs []string `json:"dnss,omitempty" toml:"dnss"` IPs []string `json:"ips,omitempty" toml:"ips"` CertInterval configutil.Duration `json:"certinterval,omitempty" toml:"certinterval"` CertTTL configutil.Duration `json:"certttl,omitempty" toml:"certttl"` //Certificates []configtrust.Certificate `json:"certificates,omitempty" toml:"certificates"` CA []configtrust.Certificate `json:"ca,omitempty" toml:"ca"` UseSystemPool bool `json:"usesystempool,omitempty" toml:"usesystempool"` }
type MiniVaultLoader ¶
type MiniVaultLoader struct {
// contains filtered or unexported fields
}
func NewMiniVaultLoader ¶
func NewMiniVaultLoader( certChannel chan *tls.Certificate, conf *MiniVaultConfig, logger zLogger.ZLogger, ) (*MiniVaultLoader, error)
func (*MiniVaultLoader) Close ¶
func (f *MiniVaultLoader) Close() error
func (*MiniVaultLoader) GetCA ¶ added in v2.0.1
func (f *MiniVaultLoader) GetCA() (*x509.CertPool, error)
func (*MiniVaultLoader) GetTLSConfig ¶ added in v2.0.8
func (f *MiniVaultLoader) GetTLSConfig() (*tls.Config, error)
func (*MiniVaultLoader) Run ¶
func (f *MiniVaultLoader) Run() error
type TokenCreateStruct ¶ added in v2.0.1
type TokenCreateStruct struct { Type string `json:"type" example:"client_cert"` Policies []string `json:"Policies" example:"policy1,policy2"` Meta map[string]string `json:"meta" example:"key1:value1,key2:value2"` TTL string `json:"ttl" example:"1h"` MaxTTL string `json:"maxttl" example:"3h"` Renewable bool `json:"renewable" example:"false"` }
Click to show internal directories.
Click to hide internal directories.