Documentation
¶
Index ¶
Constants ¶
const ( SecurityLevelOff uint8 = 0 SecurityLevelNormal uint8 = 1 SecurityLevelHigh uint8 = 2 SecurityLevelExtreme uint8 = 4 )
Security levels.
const DisplayHintSecurityLevel string = "security level"
DisplayHintSecurityLevel is an external option hint for security levels. It's meant to be used as a value for config.DisplayHintAnnotation.
Variables ¶
This section is empty.
Functions ¶
func AddToDebugInfo ¶ added in v0.6.6
AddToDebugInfo adds the system status to the given debug.Info.
Types ¶
type SystemStatusRecord ¶ added in v0.6.0
type SystemStatusRecord struct {
record.Base
sync.Mutex
// OnlineStatus holds the current online status as
// seen by the netenv package.
OnlineStatus netenv.OnlineStatus
// CaptivePortal holds all information about the captive
// portal of the network the portmaster is currently
// connected to, if any.
CaptivePortal *netenv.CaptivePortal
}
SystemStatusRecord describes the overall status of the Portmaster. It's a read-only record exposed via runtime:system/status.