Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDecoderOptions ¶
func ConfigDecoderOptions(config *mapstructure.DecoderConfig)
ConfigDecoderOptions enables necessary mapstructure decode hook functions
Types ¶
type Config ¶
type Config struct {
LogLevel log.Level `mapstructure:"log_level"`
IAM struct {
URL string
Token string
TokenFile string `mapstructure:"token_file"`
AllowInsecure bool `mapstructure:"allow_insecure"`
LoginValidity time.Duration `mapstructure:"login_validity"`
}
SSH struct {
ListenAddress string `mapstructure:"listen_address"`
HostKeys []ssh.Signer `mapstructure:"host_keys"`
HostKeyFiles []string `mapstructure:"host_key_files"`
}
Jail util.JailConfig
}
Config represents shhd's config
func (*Config) ReadSecrets ¶
ReadSecrets loads values for secret config options from files
Click to show internal directories.
Click to hide internal directories.