Documentation
¶
Index ¶
- Constants
- type Account
- type Binding
- type DirectoryObservation
- type Engine
- func (e *Engine) Bind(scope, ip, mac, source string)
- func (e *Engine) Discover(scope, ip string, names []string)
- func (e *Engine) Observe(scope string, m proto.Message)
- func (e *Engine) Report() Report
- func (e *Engine) Seed(scope string, p *types.DeviceProfile)
- func (e *Engine) SeedBoundProfile(p *types.DeviceProfile)
- type Evidence
- type Host
- type Report
Constants ¶
View Source
const Filename = "Hosts.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
At int64 `json:"at"`
Flow string `json:"flow,omitempty"`
FullNameState string `json:"fullNameState"`
FullNameEvidence []Evidence `json:"fullNameEvidence,omitempty"`
Name string `json:"name"`
Domain string `json:"domain,omitempty"`
FullName string `json:"fullName,omitempty"`
Source string `json:"source"`
}
type DirectoryObservation ¶
type DirectoryObservation struct {
SID string `json:"sid,omitempty"`
Hostname string `json:"hostname,omitempty"`
Scope string `json:"scope"`
Account string `json:"account,omitempty"`
Domain string `json:"domain,omitempty"`
FullName string `json:"fullName,omitempty"`
Client string `json:"observedClient,omitempty"`
Evidence Evidence `json:"evidence"`
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) SeedBoundProfile ¶ added in v0.16.3
func (e *Engine) SeedBoundProfile(p *types.DeviceProfile)
SeedBoundProfile covers captures with link-source observations but no ARP/DHCP. A MAC carrying several IPs is a possible gateway, so it cannot transfer names.
type Host ¶
type Host struct {
MAC string `json:"mac,omitempty"`
MACState string `json:"macState"`
Scope string `json:"scope"`
IP string `json:"ip"`
Hostname string `json:"hostname,omitempty"`
HostnameAliases []string `json:"hostnameAliases,omitempty"`
HostnameState string `json:"hostnameState"`
// DirectoryMatches are LDAP computer objects whose name equals one of this
// host's observed names. The name join does not bind the object to an IP.
DirectoryMatches []DirectoryObservation `json:"directoryMatches,omitempty"`
Evidence []Evidence `json:"evidence"`
Accounts []Account `json:"accounts"`
Bindings []Binding `json:"bindings"`
}
Click to show internal directories.
Click to hide internal directories.