proxy_shell

package module
v0.0.0-...-852e004 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(commands string) ([]byte, error)

Types

type Cmd

type Cmd string

type Config

type Config struct {
	LocalURL  string `json:"localURL"`
	RemoteURL string `json:"remoteURL"`
	Version   string `json:"version"`
}

type LocalMachine

type LocalMachine struct {
	IP          net.IP   //client's url
	Stdin       *os.File // stdin stream
	Stdout      *os.File //stdout stream
	Stderr      *os.File // stderr stream
	Information goInfo.GoInfoObject
}

func (LocalMachine) CollectInfo

func (lm LocalMachine) CollectInfo() error

func (LocalMachine) GetLocalAddr

func (lm LocalMachine) GetLocalAddr() error

func (LocalMachine) PrintInfo

func (lm LocalMachine) PrintInfo() error

func (LocalMachine) SendCommand

func (lm LocalMachine) SendCommand(command Cmd, rm RemoteMachine) (interface{}, error)

type RemoteMachine

type RemoteMachine struct {
	IP    net.IP
	Alive bool
}

func (RemoteMachine) IsAlive

func (rm RemoteMachine) IsAlive(duration time.Duration) error

func (RemoteMachine) ListenForCommands

func (rm RemoteMachine) ListenForCommands() (*Cmd, error)

Directories

Path Synopsis
Example module

Jump to

Keyboard shortcuts

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