Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel string
LogLevel represents the logging level as a string enum
func FromSlogLevel ¶
FromSlogLevel converts slog.Level to LogLevel
func ParseLogLevel ¶
ParseLogLevel parses a string to LogLevel
func (LogLevel) ToSlogLevel ¶
ToSlogLevel converts LogLevel to slog.Level
type Settings ¶
type Settings struct {
Autostart bool `json:"autostart" mapstructure:"autostart"`
Hotkeys []SettingsHotkey `json:"hotkeys" mapstructure:"hotkeys"`
LogLevel LogLevel `json:"logLevel" mapstructure:"logLevel"`
Commands SettingsCommands `json:"commands" mapstructure:"commands"`
Disks SettingsDisks `json:"disks" mapstructure:"disks"`
Media SettingsMedia `json:"media" mapstructure:"media"`
}
type SettingsCommandDefinition ¶
type SettingsCommandDefinition struct {
ID string `json:"id" mapstructure:"id"`
Name string `json:"name" mapstructure:"name"`
Command string `json:"command" mapstructure:"command"`
WorkingDir string `json:"workingDir" mapstructure:"workingDir"`
Arguments []string `json:"arguments" mapstructure:"arguments"`
}
type SettingsCommands ¶
type SettingsCommands struct {
Allowlist []SettingsCommandDefinition `json:"allowlist" mapstructure:"allowlist"`
}
type SettingsDisks ¶
type SettingsDisks struct {
AllowedSecondaryMountPoints []string `json:"allowedSecondaryMountPoints" mapstructure:"allowedSecondaryMountPoints"`
}
type SettingsHotkey ¶
type SettingsMedia ¶
type SettingsMedia struct {
Directories []SettingsMediaDirectory `json:"directories" mapstructure:"directories"`
}
type SettingsMediaDirectory ¶
Click to show internal directories.
Click to hide internal directories.