remote

package
v0.0.0-...-995ed43 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrefixedLineWriter

func NewPrefixedLineWriter(prefix string) io.Writer

Types

type Agent

type Agent interface {
	GetConnection() (net.Conn, error)

	Close() error
}

type LocalAgent

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

func (*LocalAgent) Close

func (a *LocalAgent) Close() error

func (*LocalAgent) GetConnection

func (a *LocalAgent) GetConnection() (net.Conn, error)

type LocalSession

type LocalSession struct {
}

func (*LocalSession) Close

func (s *LocalSession) Close() error

func (*LocalSession) PlaceAgent

func (s *LocalSession) PlaceAgent(filepath string, agentBytes []byte) error

func (*LocalSession) StartAgent

func (s *LocalSession) StartAgent(command ...string) (Agent, error)

type PrefixedLineWriter

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

func (*PrefixedLineWriter) Close

func (w *PrefixedLineWriter) Close() error

func (*PrefixedLineWriter) Write

func (w *PrefixedLineWriter) Write(bs []byte) (int, error)

type RemoteAgent

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

func (*RemoteAgent) Close

func (a *RemoteAgent) Close() error

func (*RemoteAgent) GetConnection

func (a *RemoteAgent) GetConnection() (net.Conn, error)

type RemoteSession

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

func (*RemoteSession) Close

func (s *RemoteSession) Close() error

func (*RemoteSession) PlaceAgent

func (s *RemoteSession) PlaceAgent(filepath string, agentBytes []byte) error

func (*RemoteSession) StartAgent

func (s *RemoteSession) StartAgent(command ...string) (Agent, error)

type Session

type Session interface {
	PlaceAgent(path string, agentBytes []byte) error

	StartAgent(command ...string) (Agent, error)

	Close() error
}

func OpenLocalSession

func OpenLocalSession() (Session, error)

func OpenSshSession

func OpenSshSession(username string, hostname string, port int) (Session, error)

Jump to

Keyboard shortcuts

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