probe

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package probe implements probing Devices to determine what OS they run.

Index

Constants

This section is empty.

Variables

View Source
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 New

func New(userName string, keyPath ...string) (*Probe, error)

New creates a new Probe.

func (*Probe) QueryDiskFree added in v0.2.0

func (p *Probe) QueryDiskFree(d *model.Device, port int) (int64, error)

QueryDiskFree queries a Device for the free disk space on its root filesystem.

func (*Probe) QueryOS

func (p *Probe) QueryOS(d *model.Device, port int) (string, error)

QueryOS attempts to find out what operating system the device runs.

func (*Probe) QueryUpdates

func (p *Probe) QueryUpdates(d *model.Device, port int) ([]string, error)

QueryUpdates attempts to query the given Device for available updates.

func (*Probe) QueryUpdatesArch

func (p *Probe) QueryUpdatesArch(d *model.Device, port int) ([]string, error)

QueryUpdatesArch asks an Arch Linux system for a list of pending updates.

func (*Probe) QueryUpdatesDebian

func (p *Probe) QueryUpdatesDebian(d *model.Device, port int) ([]string, error)

QueryUpdatesDebian asks a Debian-ish system for a list of available updates.

func (*Probe) QueryUpdatesFedora

func (p *Probe) QueryUpdatesFedora(d *model.Device, port int) ([]string, error)

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 (p *Probe) QueryUpdatesFreeBSD(d *model.Device, port int) ([]string, error)

func (*Probe) QueryUpdatesOpenBSD

func (p *Probe) QueryUpdatesOpenBSD(d *model.Device, port int) ([]string, error)

QueryUpdatesOpenBSD checks for available updates on OpenBSD.

func (*Probe) QueryUpdatesSuse

func (p *Probe) QueryUpdatesSuse(d *model.Device, port int) ([]string, error)

QueryUpdatesSuse asks an openSuse system for a list of available updates.

func (*Probe) QueryUptime

func (p *Probe) QueryUptime(d *model.Device, port int) (*model.Uptime, error)

QueryUptime attempts to extract the system load average from the given Device.

Jump to

Keyboard shortcuts

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