Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeySystemSettings = "system_settings" KeySystemJobs = "system_jobs" KeySystemBackupLocations = "system_backup_locations" KeyVersion = "version" KeyTelemetry = "telemetry" KeySystemDynamicSecrets = "system_dynamic_secrets" )
key to get a specific settings
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupLocation ¶
type BackupLocation struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Config cmap.CustomMap `json:"config" yaml:"config"` }
BackupLocation of server
type BackupLocations ¶
type BackupLocations struct {
Locations []BackupLocation `json:"locations" yaml:"locations"`
}
BackupLocations of server
type GeoLocation ¶
type GeoLocation struct { AutoUpdate bool `json:"autoUpdate" yaml:"autoUpdate"` LocationName string `json:"locationName" yaml:"locationName"` Latitude float64 `json:"latitude" yaml:"latitude"` Longitude float64 `json:"longitude" yaml:"longitude"` }
GeoLocation struct
type Login ¶
type Login struct { Message string `json:"message" yaml:"message"` ServerMessage string `json:"serverMessage" yaml:"serverMessage"` }
Login settings
type NodeStateJob ¶
type NodeStateJob struct { ExecutionInterval string `json:"executionInterval" yaml:"executionInterval"` InactiveDuration string `json:"inactiveDuration" yaml:"inactiveDuration"` }
NodeStateJob verifies active node
type Settings ¶
type Settings struct { ID string `json:"id" yaml:"id"` Spec map[string]interface{} `json:"spec" yaml:"spec"` ModifiedOn time.Time `json:"modifiedOn" yaml:"modifiedOn"` }
Settings struct
type SystemDynamicSecrets ¶
type SystemDynamicSecrets struct {
JwtAccessSecret string `json:"jwtAccessSecret" yaml:"jwtAccessSecret"`
}
dynamic secrets used across system
type SystemJobsSettings ¶
type SystemJobsSettings struct {
Sunrise string `json:"sunrise" yaml:"sunrise"` // updates scheduled sunrise sunset jobs on this time
}
SystemJobsSettings cron struct
type SystemSettings ¶
type SystemSettings struct { GeoLocation GeoLocation `json:"geoLocation" yaml:"geoLocation"` Login Login `json:"login" yaml:"login"` Language string `json:"language" yaml:"language"` NodeStateJob NodeStateJob `json:"nodeStateJob" yaml:"nodeStateJob"` }
SystemSettings struct
type TelemetryConfig ¶
type TelemetryConfig struct {
AnonymousID string `json:"anonymousId" yaml:"anonymousId"`
}
telemetry config data
type VersionSettings ¶
type VersionSettings struct { Version string `json:"version" yaml:"version"` GitCommit string `json:"gitCommit" yaml:"gitCommit"` Database string `json:"database" yaml:"database"` InstalledOn string `json:"installedOn" yaml:"installedOn"` LastUpgrade string `json:"lastUpgrade" yaml:"lastUpgrade"` }
VersionSettings struct
Click to show internal directories.
Click to hide internal directories.