Documentation
¶
Overview ¶
Package probe implements probing Devices to determine what OS they run.
Index ¶
- Variables
- type Probe
- func (p *Probe) QueryDiskFree(d *model.Device, port int) (int64, error)
- func (p *Probe) QueryOS(d *model.Device, port int) (string, error)
- func (p *Probe) QueryUpdates(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesArch(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesDebian(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesFedora(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesFreeBSD(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesOpenBSD(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUpdatesSuse(d *model.Device, port int) ([]string, error)
- func (p *Probe) QueryUptime(d *model.Device, port int) (*model.Uptime, error)
Constants ¶
This section is empty.
Variables ¶
var ErrPingOffline = errors.New("Device did not respond to ping")
ErrPingOffline indicates a Device did not respond to a ping.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct {
// contains filtered or unexported fields
}
Probe attempts to query Devices for the OS they are running.
func (*Probe) QueryDiskFree ¶ added in v0.2.0
QueryDiskFree queries a Device for the free disk space on its root filesystem.
func (*Probe) QueryUpdates ¶
QueryUpdates attempts to query the given Device for available updates.
func (*Probe) QueryUpdatesArch ¶
QueryUpdatesArch asks an Arch Linux system for a list of pending updates.
func (*Probe) QueryUpdatesDebian ¶
QueryUpdatesDebian asks a Debian-ish system for a list of available updates.
func (*Probe) QueryUpdatesFedora ¶
QueryUpdatesFedora asks a Fedora system for a list of available updates. Or any other system based the dnf package manager.
func (*Probe) QueryUpdatesFreeBSD ¶ added in v0.1.1
func (*Probe) QueryUpdatesOpenBSD ¶
QueryUpdatesOpenBSD checks for available updates on OpenBSD.
func (*Probe) QueryUpdatesSuse ¶
QueryUpdatesSuse asks an openSuse system for a list of available updates.