mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 00:36:49 +09:00
Address a bunch of golint warnings.
This commit is contained in:
1 parent
d30b682a6e
commit
f7b6c68d22
7 files changed
+13
-3
No files matched your search
@@ -51,6 +51,8 @@ func (h *Headscale) RegisterMachine(key string, namespace string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListNodeRoutes prints the subnet routes advertised by a node (identified by
|
||||
// namespace and node name)
|
||||
func (h *Headscale) ListNodeRoutes(namespace string, nodeName string) error {
|
||||
m, err := h.GetMachine(namespace, nodeName)
|
||||
if err != nil {
|
||||
@@ -65,6 +67,8 @@ func (h *Headscale) ListNodeRoutes(namespace string, nodeName string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// EnableNodeRoute enables a subnet route advertised by a node (identified by
|
||||
// namespace and node name)
|
||||
func (h *Headscale) EnableNodeRoute(namespace string, nodeName string, routeStr string) error {
|
||||
m, err := h.GetMachine(namespace, nodeName)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user