Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FormatJSON will be used to indicate a JSON file FormatJSON = uint(2) // FormatText will be used to indicate a text file, or when an unknown mimetype is found FormatText = uint(1) // FormatUnknown will be used to indicate a problem FormatUnknown = uint(0) )
Variables ¶
View Source
var ( /* The following support overrides during builds, which can be done by setting ldflags, e.g. `-ldflags "-X github.com/cezmunsta/ssh_ms/config.EnvSSHUserName=xxx"` */ // EnvBasePath is the parent location used to prefix storage paths EnvBasePath = filepath.Join(os.Getenv("HOME"), ".ssh", "cache") // EnvSSHDefaultUsername sets the default used in connections EnvSSHDefaultUsername = os.Getenv("USER") // EnvSSHUsername is used to authenticate with SSH EnvSSHUsername = "SSH_MS_USERNAME" // EnvSSHIdentityFile is used for SSH authentication EnvSSHIdentityFile = filepath.Join("~", ".ssh", "id_ed25519") )
Functions ¶
Types ¶
type Settings ¶
type Settings struct { LogLevel logrus.Level Debug, Simulate, StoredToken, Verbose, Version bool ConfigComment, EnvSSHDefaultUsername, EnvSSHIdentityFile, EnvSSHUsername, Show, StoragePath, User, VaultAddr, VaultToken string }
Settings contains the configuration details
Click to show internal directories.
Click to hide internal directories.