| 13 | ) |
| 14 | |
| 15 | type ControlServer interface { |
| 16 | Shutdown() (string, string, error) |
| 17 | SaveLog(path string) (string, string, error) |
| 18 | ReadLog() (string, string, error) |
| 19 | SaveProfile(path string) error |
| 20 | Execute(command []string) (string, error) |
| 21 | WriteFile(path string, content []byte) error |
| 22 | ConnectToNetwork(network *dockertest.Network) error |
| 23 | GetHealthEndpoint() string |
| 24 | GetEndpoint() string |
| 25 | WaitForRunning() error |
| 26 | Restart() error |
| 27 | CreateUser(user string) (*v1.User, error) |
| 28 | CreateAuthKey(user uint64, reusable bool, ephemeral bool) (*v1.PreAuthKey, error) |
| 29 | CreateAuthKeyWithTags(user uint64, reusable bool, ephemeral bool, tags []string) (*v1.PreAuthKey, error) |
| 30 | CreateAuthKeyWithOptions(opts hsic.AuthKeyOptions) (*v1.PreAuthKey, error) |
| 31 | DeleteAuthKey(id uint64) error |
| 32 | ListNodes(users ...string) ([]*v1.Node, error) |
| 33 | DeleteNode(nodeID uint64) error |
| 34 | NodesByUser() (map[string][]*v1.Node, error) |
| 35 | NodesByName() (map[string]*v1.Node, error) |
| 36 | ListUsers() ([]*v1.User, error) |
| 37 | MapUsers() (map[string]*v1.User, error) |
| 38 | DeleteUser(userID uint64) error |
| 39 | ApproveRoutes(nodeID uint64, routes []netip.Prefix) (*v1.Node, error) |
| 40 | SetNodeTags(nodeID uint64, tags []string) error |
| 41 | GetCert() []byte |
| 42 | GetHostname() string |
| 43 | GetIPInNetwork(network *dockertest.Network) string |
| 44 | SetPolicy(pol *policyv2.Policy) error |
| 45 | GetAllMapReponses() (map[types.NodeID][]tailcfg.MapResponse, error) |
| 46 | PrimaryRoutes() (*types.DebugRoutes, error) |
| 47 | DebugBatcher() (*hscontrol.DebugBatcherInfo, error) |
| 48 | DebugNodeStore() (map[types.NodeID]types.Node, error) |
| 49 | DebugFilter() ([]tailcfg.FilterRule, error) |
| 50 | } |
no outgoing calls
no test coverage detected