2022-10-13 16:00:22 +02:00
|
|
|
package integration
|
|
|
|
|
2022-10-23 12:41:35 +02:00
|
|
|
import (
|
|
|
|
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
|
|
|
)
|
2022-10-13 16:00:22 +02:00
|
|
|
|
|
|
|
type ControlServer interface {
|
|
|
|
Shutdown() error
|
2023-01-30 10:20:08 +01:00
|
|
|
SaveLog(string) error
|
2022-10-24 16:40:49 +02:00
|
|
|
Execute(command []string) (string, error)
|
2022-10-13 16:00:22 +02:00
|
|
|
GetHealthEndpoint() string
|
|
|
|
GetEndpoint() string
|
|
|
|
WaitForReady() error
|
2023-01-17 17:43:44 +01:00
|
|
|
CreateUser(user string) error
|
|
|
|
CreateAuthKey(user string, reusable bool, ephemeral bool) (*v1.PreAuthKey, error)
|
|
|
|
ListMachinesInUser(user string) ([]*v1.Machine, error)
|
2022-11-14 14:27:02 +01:00
|
|
|
GetCert() []byte
|
|
|
|
GetHostname() string
|
|
|
|
GetIP() string
|
2022-10-13 16:00:22 +02:00
|
|
|
}
|