config

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: GPL-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSessionEnv added in v0.0.3

func BuildSessionEnv(baseEnv []string, username, passwdFile, pamEnvFile string) ([]string, error)

BuildSessionEnv enriches baseEnv with user identity from passwdFile and optional overrides from pamEnvFile.

func DiscoverConfigPath added in v0.0.16

func DiscoverConfigPath() string

func EnvMapToSlice added in v0.0.26

func EnvMapToSlice(envMap map[string]string) []string

func EnvSliceToMap added in v0.0.26

func EnvSliceToMap(env []string) map[string]string

func SaveStateAt added in v0.0.26

func SaveStateAt(home, lastSession string) error

Types

type Config

type Config struct {
	DialogRC   string
	CountFrom  int
	Display    int
	XTTY       string // "keep" or number
	LockTTY    bool
	ConsoleKit bool
	CKTimeout  int
	AltStartX  bool
	StartXLog  string
	BinList    []string
	NameList   []string
	FlagList   []string
	ServerArgs []string
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type PasswdEntry added in v0.0.26

type PasswdEntry struct {
	Username string
	HomeDir  string
	Shell    string
}

func LoadPasswdEntry added in v0.0.26

func LoadPasswdEntry(path, username string) (*PasswdEntry, error)

type State

type State struct {
	LastSession string `json:"last_session"`
}

func LoadState

func LoadState() (*State, error)

Jump to

Keyboard shortcuts

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