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"
|
2023-04-23 11:02:28 +00:00
|
|
|
"github.com/ory/dockertest/v3"
|
2022-10-23 10:41:35 +00:00
|
|
|
)
|
2022-10-13 14:00:22 +00:00
|
|
|
|
|
|
|
type ControlServer interface {
|
|
|
|
Shutdown() error
|
2023-01-30 09:20:08 +00:00
|
|
|
SaveLog(string) error
|
2023-04-27 14:57:11 +00:00
|
|
|
SaveProfile(string) error
|
2022-10-24 14:40:49 +00:00
|
|
|
Execute(command []string) (string, error)
|
2023-04-23 11:02:28 +00:00
|
|
|
ConnectToNetwork(network *dockertest.Network) error
|
2022-10-13 14:00:22 +00:00
|
|
|
GetHealthEndpoint() string
|
|
|
|
GetEndpoint() string
|
2023-08-29 06:33:33 +00:00
|
|
|
WaitForRunning() error
|
2023-01-17 16:43:44 +00:00
|
|
|
CreateUser(user string) error
|
|
|
|
CreateAuthKey(user string, reusable bool, ephemeral bool) (*v1.PreAuthKey, error)
|
2023-09-24 11:42:05 +00:00
|
|
|
ListNodesInUser(user string) ([]*v1.Node, error)
|
2022-11-14 13:27:02 +00:00
|
|
|
GetCert() []byte
|
|
|
|
GetHostname() string
|
|
|
|
GetIP() string
|
2022-10-13 14:00:22 +00:00
|
|
|
}
|