secshc

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Protocol = "secexec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RPTYConfig

type RPTYConfig struct {
	Eth accounts.EthConfig `yaml:"ethereum"`
	NPP npp.Config         `yaml:"npp"`
}

func NewRPTYConfig

func NewRPTYConfig(path string) (*RPTYConfig, error)

type RemotePTY

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

func NewRemotePTY

func NewRemotePTY(cfg *RPTYConfig) (*RemotePTY, error)

NewRemotePTY constructs a new remote PTY (pseudo terminal) over a secured connection.

func (*RemotePTY) Run

func (m *RemotePTY) Run(ctx context.Context, addr auth.Addr) error

Run runs the PTY by capturing the standard input and executing commands on remote host over the secured connection.

Jump to

Keyboard shortcuts

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