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