mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-21 23:47:34 +00:00
Defince control server interface
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
fa8b02a83f
commit
308b9e78a1
13
integration/control.go
Normal file
13
integration/control.go
Normal file
@ -0,0 +1,13 @@
|
||||
package integration
|
||||
|
||||
import v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
||||
|
||||
type ControlServer interface {
|
||||
Shutdown() error
|
||||
GetHealthEndpoint() string
|
||||
GetEndpoint() string
|
||||
WaitForReady() error
|
||||
CreateNamespace(namespace string) error
|
||||
CreateAuthKey(namespace string) (*v1.PreAuthKey, error)
|
||||
ListNodes(namespace string) ([]*v1.Machine, error)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user