config

package
v0.0.0-...-a70f80b Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Defaults HostParams   `yaml:"defaults,omitempty"`
	Hosts    []HostParams `yaml:"hosts,omitempty"`

	KnownHostsFilename string `yaml:"-"`
}

func LoadConfig

func LoadConfig(file string) (conf *Config, err error)

type GssAPIParams

type GssAPIParams struct {
	Enabled             bool `yaml:"enabled,omitempty"`
	DelegateCredentials bool `yaml:"delegateCredentials,omitempty"`
}

type HostParams

type HostParams struct {
	Name                  string           `yaml:"name,omitempty"`
	Port                  uint16           `yaml:"port,omitempty"`
	User                  string           `yaml:"user,omitempty"`
	IdentityFile          string           `yaml:"identityFile,omitempty"`
	PreferredAuth         []string         `yaml:"preferredAuthentications,omitempty"`
	Aliases               []string         `yaml:"aliases,omitempty"`
	Pattern               string           `yaml:"pattern,omitempty"`
	Replace               string           `yaml:"replace,omitempty"`
	GssAPI                *GssAPIParams    `yaml:"gssApi,omitempty"`
	JumpHost              string           `yaml:"jumpHost,omitempty"`
	HttpProxy             *HttpProxyParams `yaml:"httpProxy,omitempty"`
	Timeout               time.Duration    `yaml:"timeout,omitempty"`
	InsecureIgnoreHostKey bool             `yaml:"ignoreHostKey,omitempty"`
}

func DefaultHostParams

func DefaultHostParams() HostParams

type HttpProxyAuthParams

type HttpProxyAuthParams struct {
	User     string `yaml:"user"`
	Password string `yaml:"pass"`
}

type HttpProxyParams

type HttpProxyParams struct {
	Host string               `yaml:"host"`
	Port uint16               `yaml:"port"`
	Auth *HttpProxyAuthParams `yaml:"auth"`
}

Jump to

Keyboard shortcuts

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