ssh

package
v0.0.0-...-5ddb564 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExeImpl

type ExeImpl struct{}

ExeImpl runs SSH via an executable that is assumed to be on the PATH.

func (ExeImpl) Run

func (e ExeImpl) Run(ctx context.Context, userIP, cmd string, args ...string) (string, error)

type SSH

type SSH interface {
	Run(ctx context.Context, userIP, cmd string, args ...string) (string, error)
}

Jump to

Keyboard shortcuts

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