mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 23:47:36 +00:00
Factor out some commonly used patterns
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package integration
|
||||
|
||||
import v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
||||
import (
|
||||
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
||||
)
|
||||
|
||||
type ControlServer interface {
|
||||
Shutdown() error
|
||||
@@ -9,5 +11,5 @@ type ControlServer interface {
|
||||
WaitForReady() error
|
||||
CreateNamespace(namespace string) error
|
||||
CreateAuthKey(namespace string) (*v1.PreAuthKey, error)
|
||||
ListNodes(namespace string) ([]*v1.Machine, error)
|
||||
ListMachinesInNamespace(namespace string) ([]*v1.Machine, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user