core

package
v1.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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputTable    = "table"
	OutputJSON     = "json"
	OutputMarkdown = "markdown"

	BackendAuto      = "auto"
	BackendNVML      = "nvml"
	BackendNvidiaSMI = "nvidia-smi"
	BackendAMD       = "amd"
)

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() (string, error)

Types

type Config

type Config struct {
	DefaultOutput string `yaml:"default_output"`
	Backend       string `yaml:"backend"`
	ReportDir     string `yaml:"report_dir"`
	NvidiaSmiPath string `yaml:"nvidia_smi_path"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type ConfigError

type ConfigError struct {
	Field string
	Value string
}

func (*ConfigError) Error

func (e *ConfigError) Error() string

Jump to

Keyboard shortcuts

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