Discover Packages
github.com/eskpil/salmon
pkg
models
package
Version:
v0.0.0-...-96838bd
Opens a new window with list of versions in this module.
Published: Oct 19, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Interface struct {
Id string `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Mac string `json:"mac" bson:"mac"`
IpAddrs []IpAddr `json:"addrs" bson:"ip_addrs"`
}
type IpAddr struct {
Type int32 `json:"type" bson:"type"`
Addr string `json:"addr" bson:"addr"`
Prefix uint32 `json:"prefix" bson:"prefix"`
}
type Machine struct {
Id string `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Groups []string `json:"groups" bson:"groups"`
NodeId string `json:"node_id", bson:"node_id"`
Hostname string `json:"hostname" bson:"hostname"`
Interfaces []Interface `json:"interfaces" bson:"interfaces"`
}
type Node struct {
Id string `json:"id" bson:"_id"`
Hostname string `json:"hostname" bson"hostname"`
}
type Task struct {
Id string `json:"id" bson:"_id"`
NodeId string `json:"node_id" bson:"node_id"`
Name string `json:"name" bson:"name"`
Status TaskStatus `json:"status" bson:"status"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.