Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-09-11 23:40:19 +00:00
parent d99bbc3add
commit a58502341d
8 changed files with 478 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
package dns
import (
"context"
"net/netip"
)
// AddHost registers a machine
func (*Manager) AddHost(_ context.Context, _ string, _ int, _ bool, _ ...netip.Addr) error {
// if zone == "" || id <= 0 {
// return fs.ErrInvalid
// }
//
// z, ok := mgr.zones[zone]
// if !ok {
// z = &Zone{
// Name: zone,
// Machines: make(map[int]*Machine),
// }
//
// mgr.zones[zone] = z
// }
//
// z.Machines[id] = &Machine{
// ID: id,
// Active: active,
// Addrs: addrs,
// }
//
return nil
}