feat: create initial agent for localapi
This commit is contained in:
parent
6156d78907
commit
719d7a5e76
10 changed files with 675 additions and 0 deletions
11
agent/hpagent/sender.go
Normal file
11
agent/hpagent/sender.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package hpagent
|
||||
|
||||
import (
|
||||
"tailscale.com/tailcfg"
|
||||
)
|
||||
|
||||
// Sends the status to the Headplane master
|
||||
func (s *Socket) SendStatus(status map[string]*tailcfg.HostinfoView) error {
|
||||
err := s.WriteJSON(status)
|
||||
return err
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue