jaws

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrawlPDU

func CrawlPDU(config CrawlerConfig) (*pdu.PDUInventory, error)

CrawlPDU connects to a single JAWS PDU and collects its full inventory.

Types

type CrawlerConfig

type CrawlerConfig struct {
	URI      string
	Username string
	Password string
	Insecure bool
	Timeout  time.Duration
}

type JawsOutlet

type JawsOutlet struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	State       string  `json:"state"`
	SocketType  string  `json:"socket_type"`
	Current     float32 `json:"current"`
	Voltage     float32 `json:"voltage"`
	ActivePower int     `json:"active_power"`
}

JawsOutlet represents the structure of a single outlet object

Jump to

Keyboard shortcuts

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