detect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package detect gathers system facts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detect

func Detect() (*facts.Facts, error)

Detect returns system facts using the default readers.

func DetectEnv

func DetectEnv() (*facts.Facts, error)

DetectEnv wraps Detect and returns an error if the facts are incomplete.

func DetectWith

func DetectWith(osReader OSReleaseReader, gpuReader GPUReader) (*facts.Facts, error)

DetectWith returns system facts using the provided readers.

Types

type GPUReader

type GPUReader interface {
	Read() (string, error)
}

GPUReader reads GPU information.

type OSReleaseReader

type OSReleaseReader interface {
	Read() (string, error)
}

OSReleaseReader reads /etc/os-release content.

Jump to

Keyboard shortcuts

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