ssh

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 4 Imported by: 0

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

func NewService(cfg *config.Config) *Service

NewService returns a new Service initialized with the provided config.Config.

func (*Service) RunCommands

func (s *Service) RunCommands() (string, error)

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

func (s *Service) RunRollback() (string, error)

RunRollback connects to the remote host and executes the recovery command defined in the configuration (e.g., git checkout HEAD^).

Jump to

Keyboard shortcuts

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