config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfg *Config) error

Types

type Config

type Config struct {
	Order     []string   `mapstructure:"order"`
	Hostname  *Hostname  `mapstructure:"hostname"`
	Uptime    *Uptime    `mapstructure:"uptime"`
	SysInfo   *SysInfo   `mapstructure:"sysinfo"`
	Zpool     *Zpool     `mapstructure:"zpool"`
	DiskSpace *DiskSpace `mapstructure:"diskspace"`
	Docker    *Docker    `mapstructure:"docker"`
	Smart     *Smart     `mapstructure:"smart"`
	Systemd   *Systemd   `mapstructure:"systemd"`
	Plex      *Plex      `mapstructure:"plex"`
}

type DiskSpace added in v0.2.0

type DiskSpace struct {
	Disabled   bool     `mapstructure:"disabled"`
	ExcludedFS []string `mapstructure:"excluded_fs"`
}

type Docker

type Docker struct {
	Disabled         bool     `mapstructure:"disabled"`
	IgnoreContainers []string `mapstructure:"ignore_containers"`
}

type Hostname

type Hostname struct {
	Disabled      bool   `mapstructure:"disabled"`
	Color         string `mapstructure:"color"`
	Figlet        bool   `mapstructure:"figlet"`
	FigletFont    string `mapstructure:"figlet_font"`
	FigletFontDir string `mapstructure:"figlet_font_dir"`
}

type Plex

type Plex struct {
	Disabled  bool   `mapstructure:"disabled"`
	Token     string `mapstructure:"token"`
	Server    string `mapstructure:"server"`
	TLSVerify bool   `mapstructure:"tls_verify"`
	Timeout   int    `mapstructure:"timeout"`
}

type Smart

type Smart struct {
	Disabled bool     `mapstructure:"disabled"`
	Disks    []string `mapstructure:"disks"`
}

type SysInfo

type SysInfo struct {
	Disabled        bool `mapstructure:"disabled"`
	UptimePrecision int  `mapstructure:"uptime_precision"`
}

type Systemd

type Systemd struct {
	Disabled bool     `mapstructure:"disabled"`
	Units    []string `mapstructure:"units"`
}

type Uptime

type Uptime struct {
	Disabled  bool `mapstructure:"disabled"`
	Precision int  `mapstructure:"precision"`
}

type Zpool

type Zpool struct {
	Disabled bool `mapstructure:"disabled"`
}

Jump to

Keyboard shortcuts

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