2021-12-08 01:46:55 +08:00
|
|
|
package logic
|
|
|
|
|
|
|
|
import (
|
2023-09-01 10:12:05 +08:00
|
|
|
"net"
|
2024-02-28 09:46:51 +08:00
|
|
|
|
|
|
|
"github.com/gravitl/netmaker/models"
|
2021-12-08 01:46:55 +08:00
|
|
|
)
|
|
|
|
|
2023-10-06 14:22:58 +08:00
|
|
|
var GetRelays = func() ([]models.Node, error) {
|
|
|
|
return []models.Node{}, nil
|
|
|
|
}
|
|
|
|
|
2023-09-01 10:12:05 +08:00
|
|
|
var RelayedAllowedIPs = func(peer, node *models.Node) []net.IPNet {
|
|
|
|
return []net.IPNet{}
|
2023-01-09 14:12:57 +08:00
|
|
|
}
|
|
|
|
|
2023-09-01 10:12:05 +08:00
|
|
|
var GetAllowedIpsForRelayed = func(relayed, relay *models.Node) []net.IPNet {
|
|
|
|
return []net.IPNet{}
|
2023-06-20 00:26:14 +08:00
|
|
|
}
|
|
|
|
|
2023-09-01 10:12:05 +08:00
|
|
|
var UpdateRelayed = func(currentNode, newNode *models.Node) {
|
2021-12-08 01:46:55 +08:00
|
|
|
}
|
|
|
|
|
2023-09-01 10:12:05 +08:00
|
|
|
var SetRelayedNodes = func(setRelayed bool, relay string, relayed []string) []models.Node {
|
|
|
|
return []models.Node{}
|
2021-12-08 01:46:55 +08:00
|
|
|
}
|
2023-01-09 14:12:57 +08:00
|
|
|
|
2023-09-01 10:12:05 +08:00
|
|
|
var RelayUpdates = func(currentNode, newNode *models.Node) bool {
|
|
|
|
return false
|
2023-01-11 01:18:09 +08:00
|
|
|
}
|
2024-03-02 13:42:04 +08:00
|
|
|
|
2024-03-04 14:39:33 +08:00
|
|
|
var ValidateRelay = func(relay models.RelayRequest, update bool) error {
|
2024-03-02 13:42:04 +08:00
|
|
|
return nil
|
|
|
|
}
|