feat: implements apis for managing headscale policy (#1792)

This commit is contained in:
Pallab Pain authored and GitHub committed 2024-07-18 07:38:25 +02:00
1 parent 00ff288f0c
commit 58bd38a609
39 files changed
+1875 -567

No files matched your search

+3 -1
View File
@@ -1,8 +1,9 @@
package integration
import (
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
"github.com/ory/dockertest/v3"
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
)
type ControlServer interface {
@@ -10,6 +11,7 @@ type ControlServer interface {
SaveLog(string) error
SaveProfile(string) error
Execute(command []string) (string, error)
WriteFile(path string, content []byte) error
ConnectToNetwork(network *dockertest.Network) error
GetHealthEndpoint() string
GetEndpoint() string