Defince control server interface

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2022-10-13 16:00:22 +02:00
parent fa8b02a83f
commit 308b9e78a1
No known key found for this signature in database

13
integration/control.go Normal file
View 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)
}