MCPcopy Create free account
hub / github.com/PasarGuard/node / lifecycleReadinessError

Function lifecycleReadinessError

backend/wireguard/wireguard.go:94–101  ·  view source on GitHub ↗
(state lifecycleState)

Source from the content-addressed store, hash-verified

92}
93
94func lifecycleReadinessError(state lifecycleState) error {
95 switch state {
96 case lifecycleRunning:
97 return nil
98 default:
99 return errWireGuardNotStarted
100 }
101}
102
103func (wg *WireGuard) ensureRunningWithManagerLocked() error {
104 if err := lifecycleReadinessError(wg.state); err != nil {

Callers 2

GetSysStatsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected