config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetViper

func GetViper() *viper.Viper

Types

type Config

type Config struct {
	Username           string        `mapstructure:"username"`
	Hostname           string        `mapstructure:"hostname"`
	Port               int           `mapstructure:"port"`
	SSHCommand         string        `mapstructure:"ssh_command"`
	OTPEnabled         bool          `mapstructure:"otp_enabled"`
	OTPCallbackCommand string        `mapstructure:"otp_callback_command"`
	OTPShellCommand    string        `mapstructure:"otp_shell_command"`
	OpenBao            OpenBaoConfig `mapstructure:"openbao"`
}

func Load

func Load(path string) (*Config, error)

type OpenBaoConfig added in v0.2.0

type OpenBaoConfig struct {
	Enabled    bool   `mapstructure:"enabled"`
	Address    string `mapstructure:"address"`
	MountPath  string `mapstructure:"mount_path"`
	Role       string `mapstructure:"role"`
	PublicKey  string `mapstructure:"public_key"`
	PrivateKey string `mapstructure:"private_key"`
	CertOutput string `mapstructure:"cert_output"`
	TTL        string `mapstructure:"ttl"`
}

OpenBaoConfig configures signing of an SSH key by an OpenBao SSH secrets engine to obtain a short-lived certificate used to authenticate to the bastion.

Jump to

Keyboard shortcuts

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