Documentation
¶
Index ¶
- func BuildSessionEnv(baseEnv []string, username, passwdFile, pamEnvFile string) ([]string, error)
- func DiscoverConfigPath() string
- func EnvMapToSlice(envMap map[string]string) []string
- func EnvSliceToMap(env []string) map[string]string
- func SaveStateAt(home, lastSession string) error
- type Config
- type PasswdEntry
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSessionEnv ¶ added in v0.0.3
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 EnvSliceToMap ¶ added in v0.0.26
func SaveStateAt ¶ added in v0.0.26
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 ¶
type PasswdEntry ¶ added in v0.0.26
func LoadPasswdEntry ¶ added in v0.0.26
func LoadPasswdEntry(path, username string) (*PasswdEntry, error)
Click to show internal directories.
Click to hide internal directories.