identity

package
v0.15.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Binding

type Binding struct {
	MAC    string `json:"mac"`
	Count  uint64 `json:"observations"`
	Source string `json:"source"`
}

type DirectoryObservation

type DirectoryObservation struct {
	SID      string   `json:"sid,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 New

func New() *Engine

func (*Engine) Bind

func (e *Engine) Bind(scope, ip, mac, source string)

func (*Engine) Observe

func (e *Engine) Observe(scope string, m proto.Message)

func (*Engine) Report

func (e *Engine) Report() Report

func (*Engine) Seed

func (e *Engine) Seed(scope string, p *types.DeviceProfile)

type Evidence

type Evidence struct {
	At     int64  `json:"at"`
	Kind   string `json:"kind"`
	Value  string `json:"value"`
	Source string `json:"source"`
	Flow   string `json:"flow,omitempty"`
}

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"`
	HostnameState string     `json:"hostnameState"`
	Evidence      []Evidence `json:"evidence"`
	Accounts      []Account  `json:"accounts"`
	Bindings      []Binding  `json:"bindings"`
}

type Report

type Report struct {
	Directory       []DirectoryObservation `json:"directory,omitempty"`
	UnscopedRecords uint64                 `json:"unscopedRecords"`
	Schema          int                    `json:"schema"`
	Hosts           []Host                 `json:"hosts"`
	Overflow        uint64                 `json:"overflow"`
	Limitations     []string               `json:"limitations"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL