Defince control server interface
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
fa8b02a83f
commit
308b9e78a1
1 changed files with 13 additions and 0 deletions
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…
Reference in a new issue