config

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config abstracts all program configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLPConfig

type CLPConfig struct {
	Port int      `yaml:"port,omitempty"`
	LE   string   `yaml:"line_endings,omitempty"`
	Keys []string `yaml:"public_keys,omitempty"`
}

CLPConfig wraps configuration values for gclpr.

type Config

type Config struct {
	GUI GUIConfig
	GPG GPGConfig
}

Config keeps all configuration values.

func Load

func Load(fnames ...string) (*Config, error)

Load prepares configuration structures using all available sources.

type GPGConfig

type GPGConfig struct {
	Path    string   `yaml:"install_path,omitempty"`
	Home    string   `yaml:"homedir,omitempty"`
	Sockets string   `yaml:"socketdir,omitempty"`
	StdPin  bool     `yaml:"use_standard_pinentry,omitempty"`
	Config  string   `yaml:"gpg_agent_conf,omitempty"`
	Args    []string `yaml:"gpg_agent_args,omitempty"`
}

GPGConfig structs wraps configuration values for GnuPG.

type GUIConfig

type GUIConfig struct {
	Debug             bool            `yaml:"debug,omitempty"`
	SetEnv            bool            `yaml:"setenv,omitempty"`
	IgnoreSessionLock bool            `yaml:"ignore_session_lock,omitempty"`
	SSH               string          `yaml:"openssh,omitempty"`
	PipeName          string          `yaml:"pipe_name,omitempty"`
	ExtraPort         int             `yaml:"extra_port,omitempty"`
	Home              string          `yaml:"homedir,omitempty"`
	Deadline          time.Duration   `yaml:"deadline,omitempty"`
	XAgentCookieSize  int             `yaml:"xagent_cookie_size,omitempty"`
	PinDlg            util.DlgDetails `yaml:"pin_dialog,omitempty"`
	Clp               CLPConfig       `yaml:"gclpr,omitempty"`
}

GUIConfig wraps configuration values for agent-gui, pinentry and sorelay.

Jump to

Keyboard shortcuts

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