Discover Packages
github.com/Drinkey/keyvault
pkg
settings
package
Version:
v0.0.0-...-617b798
Opens a new window with list of versions in this module.
Published: Apr 28, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Account struct {
Username string `json:"username"`
Password string `json:"password"`
}
type CaCertConfig struct {
SerialNumber int64 `json:"serial_number"`
Subject Subject `json:"subject"`
Valid int `json:"valid_year"`
KeyLength int `json:"key_length"`
}
type Service struct {
DefaultTLSPort int `json:"default_tls_port"`
SecretTLSPort int `json:"secret_tls_port"`
APIPort int `json:"api_port"`
TrustedLocations []string `json:"trusted_locations"`
}
type Setting struct {
Account Account `json:"account"`
Service Service `json:"service"`
Certificate CertJSON `json:"certificates"`
ConfigFile string `json:"-"`
CertificateDir string `json:"-"`
DatabasePath string `json:"-"`
}
Settings stores all values of configuration, make it singleton
type Subject struct {
Organization string `json:"organization"`
Country string `json:"country"`
Province string `json:"province"`
Locality string `json:"locality"`
Address string `json:"address"`
PostalCode string `json:"postal_code"`
CommonName string `json:"common_name"`
}
type WebCertConfig struct {
SerialNumber int64 `json:"serial_number"`
Subject Subject `json:"subject"`
DNSName string `json:"dns_name"`
Valid int `json:"valid_year"`
KeyLength int `json:"key_length"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.