Documentation
¶
Overview ¶
Package config provides configuration types for SSH-based automation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeConfig ¶ added in v0.4.0
type NodeConfig struct {
// SSH connection settings
SSHHost string
SSHPort string
SSHLogin string
SSHKey string
// User settings
RootUser string
NonRootUser string
// Database settings (when applicable)
DBPort string
DBRootPassword string
// Extra arguments passed via command line
Args map[string]string
}
NodeConfig holds all configuration variables for remote server operations.
func (NodeConfig) GetArg ¶ added in v0.4.0
func (c NodeConfig) GetArg(key string) string
GetArg retrieves an argument from the Args map. Returns empty string if not found.
func (NodeConfig) GetArgOr ¶ added in v0.4.0
func (c NodeConfig) GetArgOr(key, defaultValue string) string
GetArgOr retrieves an argument from the Args map with a default value.
func (NodeConfig) SSHAddr ¶ added in v0.4.0
func (c NodeConfig) SSHAddr() string
SSHAddr returns the full SSH address as host:port. Defaults to port 22 if SSHPort is not set.
Click to show internal directories.
Click to hide internal directories.