ssh

package
v0.0.0-...-640912d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EncodingBase64 = "base64"
)

Functions

This section is empty.

Types

type SSHApp

type SSHApp struct {
	// contains filtered or unexported fields
}

func NewSSHApp

func NewSSHApp(kvApp *kv.KVApp, logsApp *logs.LogsApp) *SSHApp

func (*SSHApp) AppID

func (a *SSHApp) AppID() string

func (*SSHApp) CallFunction

func (a *SSHApp) CallFunction(name string, req *nlibshared.Request) *nlibshared.Response

func (*SSHApp) Download

func (a *SSHApp) Download(sshConfig string, path string) ([]byte, error)

func (*SSHApp) Exec

func (a *SSHApp) Exec(sshConfig string, command string) (string, error)

func (*SSHApp) Start

func (a *SSHApp) Start() error

func (*SSHApp) Stop

func (a *SSHApp) Stop() error

type SSHConfig

type SSHConfig struct {
	Host     string `json:"host"`
	User     string `json:"user"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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