ssh

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string `json:"host" yaml:"host"`
	Port int32  `json:"port" yaml:"port"`
	User string `json:"user" yaml:"user"`

	Password    string `json:"password" yaml:"password"`
	PrivatePath string `json:"private_path" yaml:"private_path"`
}

type SSH

type SSH interface {
	Run(script string) (string, error)
	RunFile(scriptFile string) (string, error) //local file
}

func NewLocalSSH

func NewLocalSSH() SSH

func NewRemoteSSH

func NewRemoteSSH(config *Config) (SSH, error)

Jump to

Keyboard shortcuts

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