2022-10-13 08:00:22 -06:00
|
|
|
package integration
|
|
|
|
|
2022-10-23 04:41:35 -06:00
|
|
|
import (
|
|
|
|
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
|
|
|
)
|
2022-10-13 08:00:22 -06:00
|
|
|
|
|
|
|
type ControlServer interface {
|
|
|
|
Shutdown() error
|
2022-10-24 08:40:49 -06:00
|
|
|
Execute(command []string) (string, error)
|
2022-10-13 08:00:22 -06:00
|
|
|
GetHealthEndpoint() string
|
|
|
|
GetEndpoint() string
|
|
|
|
WaitForReady() error
|
|
|
|
CreateNamespace(namespace string) error
|
2022-12-27 12:05:21 -07:00
|
|
|
CreateAuthKey(namespace string, reusable bool, ephemeral bool) (*v1.PreAuthKey, error)
|
2022-10-23 04:41:35 -06:00
|
|
|
ListMachinesInNamespace(namespace string) ([]*v1.Machine, error)
|
2022-11-14 06:27:02 -07:00
|
|
|
GetCert() []byte
|
|
|
|
GetHostname() string
|
|
|
|
GetIP() string
|
2022-10-13 08:00:22 -06:00
|
|
|
}
|