-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreplicator.go
More file actions
37 lines (31 loc) · 786 Bytes
/
replicator.go
File metadata and controls
37 lines (31 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
import (
"github.com/sirupsen/logrus"
// maasclient "github.com/maas/gomaasclient/client"
"ad.astra.com/gitlab/tss/replicator/cmd"
)
func main() {
// Debug
// logrus.SetLevel(logrus.DebugLevel)
// Info
logrus.SetLevel(logrus.InfoLevel)
err := cmd.Execute()
if err != nil {
logrus.Fatal(err)
}
// client, err := maasclient.GetClient("http://empok-nor:5240/MAAS", "VDwajrSanHxEnFZUKQ:b85sQJqc8qdm5CgHRP:Z8ycUq9ZaunWNGAGcHtEFe3SycqNuGHh", "2.0")
// if err != nil {
// logrus.Fatal(err)
// }
// // Get all nodes
// nodes, err := client.Machines.Get()
// if err != nil {
// logrus.Fatal(err)
// }
// // Print all nodes
// for _, node := range nodes {
// if node.Pool.Name == "Stands" {
// logrus.Infof("+%v", node.IPAddresses)
// }
// }
}