secsh

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: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WatchDir added in v0.4.31

func WatchDir(ctx context.Context, path string, interval time.Duration, log *zap.SugaredLogger) error

WatchDir blocks until either the directory on the specified path are made exist or the context is canceled.

Types

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

func NewBanner

func NewBanner(ctx context.Context, log *zap.SugaredLogger) *Banner

func (*Banner) AddLine

func (m *Banner) AddLine(line string)

func (*Banner) String

func (m *Banner) String() string

type Config

type Config struct {
	SecExecPath      string             `yaml:"secexec"`
	SeccompPolicyDir string             `yaml:"seccomp_policy_dir"`
	AllowedKeys      []string           `yaml:"allowed_keys"`
	Eth              accounts.EthConfig `yaml:"ethereum"`
	NPP              npp.Config         `yaml:"npp"`
}

type RemotePTYServer

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

func NewRemotePTYServer

func NewRemotePTYServer(cfg *Config, log *zap.SugaredLogger) (*RemotePTYServer, error)

func (*RemotePTYServer) Run

func (m *RemotePTYServer) Run(ctx context.Context) error

type RemotePTYService

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

func (*RemotePTYService) Banner

func (m *RemotePTYService) Banner(ctx context.Context, request *sonm.RemotePTYBannerRequest) (*sonm.RemotePTYBannerResponse, error)

func (*RemotePTYService) Exec

func (m *RemotePTYService) Exec(request *sonm.RemotePTYExecRequest, server sonm.RemotePTY_ExecServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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