Documentation
¶
Overview ¶
Package ssh provides capabilities for remote command execution using the SSH protocol, including support for primary and rollback commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service encapsulates the SSH client logic, handling authentication and command dispatch to the target remote host.
func NewService ¶
NewService returns a new Service initialized with the provided config.Config.
func (*Service) RunCommands ¶
RunCommands connects to the remote host using the configured SSH credentials and executes the global set of deployment commands sequentially. It returns the combined output of all commands or an error.
func (*Service) RunRollback ¶
RunRollback connects to the remote host and executes the recovery command defined in the configuration (e.g., git checkout HEAD^).