mirror of
https://github.com/fankes/beszel.git
synced 2025-10-18 17:29:28 +08:00
22 lines
457 B
Go
22 lines
457 B
Go
//go:build testing
|
|
// +build testing
|
|
|
|
package hub
|
|
|
|
import "github.com/henrygd/beszel/internal/hub/systems"
|
|
|
|
// TESTING ONLY: GetSystemManager returns the system manager
|
|
func (h *Hub) GetSystemManager() *systems.SystemManager {
|
|
return h.sm
|
|
}
|
|
|
|
// TESTING ONLY: GetPubkey returns the public key
|
|
func (h *Hub) GetPubkey() string {
|
|
return h.pubKey
|
|
}
|
|
|
|
// TESTING ONLY: SetPubkey sets the public key
|
|
func (h *Hub) SetPubkey(pubkey string) {
|
|
h.pubKey = pubkey
|
|
}
|