sshd

package
v0.0.0-...-57ef63b Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SHELL = "bash"

Variables

This section is empty.

Functions

func Exists

func Exists(name string) bool

func HandleTcpReading

func HandleTcpReading(channel ssh.Channel, term *terminal.Terminal, perms *ssh.Permissions)

Types

type CommandRequest

type CommandRequest struct {
	Command string `json:"command"`
}

type CommandResponse

type CommandResponse struct {
	Response string `json:"response"`
}

type CommandService

type CommandService struct {
}

func NewCommandService

func NewCommandService() *CommandService

func (*CommandService) GetCommandResponse

func (c *CommandService) GetCommandResponse(command string) *CommandResponse

Jump to

Keyboard shortcuts

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