Skip to content

Commit

Permalink
Defince control server interface
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Oct 18, 2022
1 parent fa8b02a commit 308b9e7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions integration/control.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 308b9e7

Please sign in to comment.