internal

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	GitCommit = "unknown"
	BuildDate = "unknown"
	GitTag    = "unknown"
)

Functions

func FullVersion added in v0.0.8

func FullVersion() string

func ShortVersion added in v0.0.8

func ShortVersion() string

Types

type CPUInfo

type CPUInfo struct {
	Model string
	Count string
	Usage string
}

type DiskInfo

type DiskInfo struct {
	Device       string
	Size         string
	Used         string
	Available    string
	UsagePercent string
	MountPoint   string
}

type GPUInfo

type GPUInfo struct {
	Index       string
	Name        string
	VRAMTotal   int // in MB
	VRAMUsed    int // in MB
	Utilization int // percentage
	PowerDraw   int // in Watts
	PowerLimit  int // in Watts
	Temperature int // in Celsius
}

type RAMInfo

type RAMInfo struct {
	Total        int // in MB
	Used         int // in MB
	UsagePercent float64
}

type SSHClient

type SSHClient struct {
	// contains filtered or unexported fields
}

func NewSSHClient

func NewSSHClient(host SSHHost) (*SSHClient, error)

func (*SSHClient) Close

func (c *SSHClient) Close() error

func (*SSHClient) ExecuteCommand

func (c *SSHClient) ExecuteCommand(cmd string) (string, error)

type SSHHost

type SSHHost struct {
	Name         string
	Hostname     string
	User         string
	Port         string
	IdentityFile string
}

func ParseSSHConfig

func ParseSSHConfig(configPath string) ([]SSHHost, error)

type SystemInfo

type SystemInfo struct {
	CPU  CPUInfo
	GPUs []GPUInfo
	RAM  RAMInfo
	Disk []DiskInfo
}

func GatherSystemInfo

func GatherSystemInfo(client *SSHClient) (*SystemInfo, error)

type UpdateInfo added in v0.0.9

type UpdateInfo struct {
	Available      bool
	LatestVersion  string
	CurrentVersion string
}

func CheckForUpdates added in v0.0.9

func CheckForUpdates() UpdateInfo

Directories

Path Synopsis
gpu

Jump to

Keyboard shortcuts

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