ssh

package
v0.0.0-...-c4207ce Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

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

type Response

type Response struct {
	StatusCode string              `json:"status_code"`
	Type       string              `json:"type"`
	Data       model.BenchmarkData `json:"data"`
}

type SSH

type SSH struct {
	ConnectionInfo *model.ConnectionInfo
	Options        Options
}

func (*SSH) BenchRunCmd

func (o *SSH) BenchRunCmd(connectionInfo model.ConnectionInfo, types []string) ([]model.Benchmark, error)

func (*SSH) CheckKubernetes

func (o *SSH) CheckKubernetes(connectionInfo model.ConnectionInfo) (bool, error)

func (*SSH) Close

func (o *SSH) Close()

func (*SSH) NewClientConn

func (o *SSH) NewClientConn(connectionInfo model.ConnectionInfo) error

func (*SSH) RunAgent

func (o *SSH) RunAgent(connectionInfo model.ConnectionInfo) error

func (*SSH) RunBenchmark

func (o *SSH) RunBenchmark(connectionInfo model.ConnectionInfo, types string) (string, error)

func (*SSH) RunCmd

func (o *SSH) RunCmd(cmd string) (string, error)

RunCmd to SSH Server

func (*SSH) SendGetRequestToAgent

func (o *SSH) SendGetRequestToAgent(connectionInfo model.ConnectionInfo, requestPath string) (string, error)

func (*SSH) StopBenchmark

func (o *SSH) StopBenchmark(connectionInfo model.ConnectionInfo) error

Jump to

Keyboard shortcuts

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