2022-10-13 14:00:22 +00:00
|
|
|
package integration
|
|
|
|
|
2022-10-23 10:41:35 +00:00
|
|
|
import (
|
|
|
|
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
|
|
|
)
|
2022-10-13 14:00:22 +00:00
|
|
|
|
|
|
|
type ControlServer interface {
|
|
|
|
Shutdown() error
|
2022-10-24 14:40:49 +00:00
|
|
|
Execute(command []string) (string, error)
|
2022-10-13 14:00:22 +00:00
|
|
|
GetHealthEndpoint() string
|
|
|
|
GetEndpoint() string
|
|
|
|
WaitForReady() error
|
|
|
|
CreateNamespace(namespace string) error
|
|
|
|
CreateAuthKey(namespace string) (*v1.PreAuthKey, error)
|
2022-10-23 10:41:35 +00:00
|
|
|
ListMachinesInNamespace(namespace string) ([]*v1.Machine, error)
|
2022-10-13 14:00:22 +00:00
|
|
|
}
|