config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MasterKey

func MasterKey(appDir string) ([]byte, error)

Types

type AppConfig

type AppConfig struct {
	FirstRunComplete       bool   `json:"firstRunComplete"`
	DisplayCurrency        string `json:"displayCurrency"`
	RuntimeProvider        string `json:"runtimeProvider"`
	AutoUpdate             bool   `json:"autoUpdate"`
	HostnamePrefix         string `json:"hostnamePrefix"`
	CollectIntervalMinutes int    `json:"collectIntervalMinutes"`
	Timezone               string `json:"timezone"`
	FleetAPIKey            string `json:"fleetApiKey"`
	FleetBindAddress       string `json:"fleetBindAddress"`
	FleetPort              int    `json:"fleetPort"`
}

type Manager

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

func NewManager

func NewManager() (*Manager, error)

func (*Manager) AppDir

func (m *Manager) AppDir() string

func (*Manager) Config

func (m *Manager) Config() AppConfig

func (*Manager) DataDir

func (m *Manager) DataDir() string

func (*Manager) Save

func (m *Manager) Save(cfg AppConfig) error

Jump to

Keyboard shortcuts

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