Versions in this module Expand all Collapse all v0 v0.22.1 Nov 22, 2026 v0.22.0 Nov 21, 2026 v0.21.0 Nov 21, 2026 Changes in this version + var ConfigKinds = []string + var DefaultAgentConfigFilename = fmt.Sprintf("%s.%s", DefaultAgentConfigFilenameNoExtension, "json") + var DefaultAgentConfigFilenameNoExtension = "blackbox-agent" + var DefaultConfigFilename = fmt.Sprintf("%s.%s", DefaultConfigFilenameNoExtension, "toml") + var DefaultConfigFilenameNoExtension = "blackbox-server" + var DefaultConfigKind = "user" + var DefaultServiceBinDir = "/usr/bin" + var DefaultServiceConfigDir = "/etc/blackbox" + var DefaultServiceDataDir = "/usr/lib/blackbox" + var DefaultTestConfigDir = ".gounittests" + var DefaultUserConfigDir = ".config/blackbox" + var ErrHomeDirNoExist = errors.New("home directory does not exist") + var ValidConfigFileExtensions = []string + func CreateDir(dir string) error + func DirExists(dir string) error + func GetHomedir() string + type AdminServerConfig struct + AccountServer string + AdminEmail string + AdminTempPassword string + AllowSelfServiceAccounts bool + GoogleClientID string + GoogleClientSecret string + InvitationDefaultTTLHours int + InviteAcceptURL string + Messenger bool + OAuthEnabled bool + OAuthRedirectURI string + OAuthStateTTLMinutes int + Port int + SMTPFrom string + SMTPFromName string + SMTPHost string + SMTPPassword string + SMTPPort int + SMTPUsername string + URL string + type AppConfig struct + AccountID string + AdminService string + BlackboxService string + CommsService string + ControllerServerName string + ControllerService string + HostService string + Hostname string + JWT string + LoginService string + MediaService string + Name string + ProxyService string + QueueService string + RootPath string + Seed string + type BlackboxServerConfig struct + Messenger bool + Port int + Weather WeatherConfig + type Config struct + Filename string + Kind string + V *viper.Viper + func New(kind string) *Config + func (config *Config) ConfigDirExists() error + func (config *Config) CreateDefaultConfigDir() error + func (config *Config) DataDirExists() error + func (config *Config) DefaultAgentConfigFullPath() string + func (config *Config) DefaultAgentConfigFullPathNoExtension() string + func (config *Config) DefaultBinDir() string + func (config *Config) DefaultConfigDir() string + func (config *Config) DefaultConfigDirExists() bool + func (config *Config) DefaultConfigExists() bool + func (config *Config) DefaultConfigFullPath() string + func (config *Config) DefaultConfigFullPathNoExtension() string + func (config *Config) DefaultDataDir() string + func (config *Config) FromFile() error + type ConfigTemplate struct + AdminServer AdminServerConfig + App AppConfig + BlackboxServer BlackboxServerConfig + Controller ControllerConfig + HostServer HostServerConfig + LetsEncrypt LetsEncryptConfig + Logging LoggingConfig + MediaServer MediaServerConfig + Messenger MessengerConfig + Metrics MetricsConfig + Proxy ProxyConfig + ProxyServer ProxyServerConfig + QueueServer QueueServerConfig + Security SecurityConfig + UI UIConfig + func DefaultConfig(fqdn string, kind string, adminPort int) ConfigTemplate + func (configTemplate *ConfigTemplate) MarshalJSON() ([]byte, error) + func (configTemplate *ConfigTemplate) MarshalTOML() ([]byte, error) + func (configTemplate *ConfigTemplate) WriteToDisk(file string) error + func (configTemplate *ConfigTemplate) WriteToDiskTOML(file string) error + type ControllerConfig struct + AccountServer string + AccountServerName string + Embedded bool + InsecureSkipVerify bool + MonitoringPort int + OperatorID string + Port int + ServerName string + SystemAccountID string + URL string + type DirectoryProviderConfig struct + Enabled bool + Recursive bool + ScanOnStartup bool + WatchPaths []string + type HostServerConfig struct + Port int + type LetsEncryptConfig struct + ApplyTo []string + CertCachePath string + ChallengeType string + DNSCredentialsFile string + DNSProvider string + Domains []string + Email string + Enabled bool + HTTPPort int + Provider string + RenewBeforeDays int + type LoggingConfig struct + Level string + MaxEntries int + type MediaServerConfig struct + DirectoryProvider DirectoryProviderConfig + Messenger bool + Port int + RemovableProvider RemovableProviderConfig + type MessengerConfig struct + JWT string + Seed string + type MetricsConfig struct + CollectIntervalSeconds int + MaxEntries int + type ProxyConfig struct + Enabled bool + HealthCheck ProxyHealthCheckConfig + ListenAddr string + Routes map[string]ProxyRouteConfig + TLS ProxyTLSConfig + type ProxyHealthCheckConfig struct + Enabled bool + Interval time.Duration + Timeout time.Duration + type ProxyRouteConfig struct + Backends []string + SNIHost string + TLSPassthrough bool + type ProxyServerConfig struct + Port int + type ProxyTLSConfig struct + CAFile string + CertFile string + KeyFile string + type QueueServerConfig struct + Port int + type RemovableProviderConfig struct + AutoScan bool + Enabled bool + MountPaths []string + PollInterval int + type SecurityConfig struct + CAFile string + CertFile string + InternalCAFile string + InternalCertFile string + InternalKeyFile string + KeyFile string + type UIConfig struct + Port int + type WeatherConfig struct + CurrentIntervalMinutes int + Enabled bool + ForecastDays int + ForecastIntervalMinutes int + NOAAUserAgent string