tsh

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

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tsh

type Tsh struct {
	Path     string
	Proxy    string
	Identity string
	Insecure bool
}

Tsh is a runner of tsh command.

func (Tsh) CheckExecutable

func (tsh Tsh) CheckExecutable() error

CheckExecutable checks if `tsh` executable exists in the system.

func (Tsh) SSHCommand

func (tsh Tsh) SSHCommand(ctx context.Context, userHost string) *exec.Cmd

SSHCommand creates exec.CommandContext for tsh ssh --tty on behalf of userHost

Jump to

Keyboard shortcuts

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