Documentation
¶
Index ¶
- type CertCreateStruct
- type CertResultMessage
- type Config
- 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, useSystemCertPool bool, ...) (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 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"`
CA []configutil.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 ¶
type FileConfig ¶ added in v2.0.1
type FileLoader ¶
type FileLoader struct {
// contains filtered or unexported fields
}
func NewFileLoader ¶
func (*FileLoader) Close ¶
func (f *FileLoader) Close() error
func (*FileLoader) GetCA ¶
func (f *FileLoader) GetCA() *x509.CertPool
func (*FileLoader) Run ¶
func (f *FileLoader) Run() error
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"`
CertType string `json:"certtype,omitempty" toml:"certtype"`
URIs []string `json:"uris,omitempty" toml:"uris"`
DNSs []string `json:"dnss,omitempty" toml:"dnss"`
CertInterval configutil.Duration `json:"certinterval,omitempty" toml:"certinterval"`
Certificates []configutil.Certificate `json:"certificates,omitempty" toml:"certificates"`
CA []configutil.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 (*MiniVaultLoader) Close ¶
func (f *MiniVaultLoader) Close() error
func (*MiniVaultLoader) GetCA ¶ added in v2.0.1
func (f *MiniVaultLoader) GetCA() *x509.CertPool
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"`
Renewable bool `json:"renewable" example:"false"`
}
Click to show internal directories.
Click to hide internal directories.