ssh

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAddr

func WithAddr(addr string, port int) clientOptionsFunc

func WithPrivateKey

func WithPrivateKey(envKey string, path string) clientOptionsFunc

func WithPrivateKeyFromEnvKey

func WithPrivateKeyFromEnvKey(envKey string) clientOptionsFunc

func WithPrivateKeyFromFile

func WithPrivateKeyFromFile(filepath string) clientOptionsFunc

func WithUser

func WithUser(user string) clientOptionsFunc

Types

type RespType

type RespType byte
const (
	Ok RespType = iota
	Warning
	Error
)

type Runner

type Runner interface {
	CreateEnvFile(path string, env map[string]string) error
	RunRemote(cmds ...string) error
	CopyFiles(permissions, remotePath string, workspace string, filepaths ...string) error
}

func Client

func Client(optsFns ...clientOptionsFunc) (Runner, error)

Jump to

Keyboard shortcuts

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