wshremote

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 39 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ProcCacheIdleTimeout  = 60 * time.Second
	ProcCachePollInterval = 1 * time.Second
	ProcCacheMinSleep     = 500 * time.Millisecond
	ProcViewerMaxLimit    = 500
)
View Source
const BYTES_PER_GB = 1073741824
View Source
const RemoteFileTransferSizeLimit = 32 * 1024 * 1024

Variables

View Source
var DisableRecursiveFileOpts = true

Functions

func RunSysInfoLoop

func RunSysInfoLoop(client *wshutil.WshRpc, connName string)

Types

type JobManagerConnection

type JobManagerConnection struct {
	JobId     string
	Conn      net.Conn
	WshRpc    *wshutil.WshRpc
	CleanupFn func()
}

type ServerImpl

type ServerImpl struct {
	LogWriter     io.Writer
	Router        *wshutil.WshRouter
	RpcClient     *wshutil.WshRpc
	IsLocal       bool
	InitialEnv    map[string]string
	JobManagerMap map[string]*JobManagerConnection
	SockName      string
	Lock          sync.Mutex
}

func MakeRemoteRpcServerImpl

func MakeRemoteRpcServerImpl(logWriter io.Writer, router *wshutil.WshRouter, rpcClient *wshutil.WshRpc, isLocal bool, initialEnv map[string]string, sockName string) *ServerImpl

func (*ServerImpl) BadgeWatchPidCommand

func (impl *ServerImpl) BadgeWatchPidCommand(ctx context.Context, data wshrpc.CommandBadgeWatchPidData) error

func (*ServerImpl) ConnServerInitCommand

func (impl *ServerImpl) ConnServerInitCommand(ctx context.Context, data wshrpc.CommandConnServerInitData) error

func (*ServerImpl) DisposeSuggestionsCommand

func (*ServerImpl) DisposeSuggestionsCommand(ctx context.Context, widgetId string) error

func (*ServerImpl) FetchSuggestionsCommand

func (*ServerImpl) Log

func (impl *ServerImpl) Log(format string, args ...interface{})

func (*ServerImpl) MessageCommand

func (impl *ServerImpl) MessageCommand(ctx context.Context, data wshrpc.CommandMessageData) error

func (*ServerImpl) RemoteDisconnectFromJobManagerCommand

func (impl *ServerImpl) RemoteDisconnectFromJobManagerCommand(ctx context.Context, data wshrpc.CommandRemoteDisconnectFromJobManagerData) error

func (*ServerImpl) RemoteFileCopyCommand

func (impl *ServerImpl) RemoteFileCopyCommand(ctx context.Context, data wshrpc.CommandFileCopyData) (bool, error)

RemoteFileCopyCommand copies a file FROM somewhere TO here

func (*ServerImpl) RemoteFileDeleteCommand

func (*ServerImpl) RemoteFileDeleteCommand(ctx context.Context, data wshrpc.CommandDeleteFileData) error

func (*ServerImpl) RemoteFileInfoCommand

func (impl *ServerImpl) RemoteFileInfoCommand(ctx context.Context, path string) (*wshrpc.FileInfo, error)

func (*ServerImpl) RemoteFileJoinCommand

func (impl *ServerImpl) RemoteFileJoinCommand(ctx context.Context, paths []string) (*wshrpc.FileInfo, error)

func (*ServerImpl) RemoteFileMoveCommand

func (impl *ServerImpl) RemoteFileMoveCommand(ctx context.Context, data wshrpc.CommandFileCopyData) error

func (*ServerImpl) RemoteFileMultiInfoCommand

func (impl *ServerImpl) RemoteFileMultiInfoCommand(ctx context.Context, data wshrpc.CommandRemoteFileMultiInfoData) (map[string]wshrpc.FileInfo, error)

func (*ServerImpl) RemoteFileStreamCommand

func (impl *ServerImpl) RemoteFileStreamCommand(ctx context.Context, data wshrpc.CommandRemoteFileStreamData) (*wshrpc.FileInfo, error)

func (*ServerImpl) RemoteFileTouchCommand

func (impl *ServerImpl) RemoteFileTouchCommand(ctx context.Context, path string) error

func (*ServerImpl) RemoteGetInfoCommand

func (*ServerImpl) RemoteGetInfoCommand(ctx context.Context) (wshrpc.RemoteInfo, error)

func (*ServerImpl) RemoteInstallRcFilesCommand

func (*ServerImpl) RemoteInstallRcFilesCommand(ctx context.Context) error

func (*ServerImpl) RemoteMkdirCommand

func (impl *ServerImpl) RemoteMkdirCommand(ctx context.Context, path string) error

func (*ServerImpl) RemoteProcessListCommand

func (impl *ServerImpl) RemoteProcessListCommand(ctx context.Context, data wshrpc.CommandRemoteProcessListData) (*wshrpc.ProcessListResponse, error)

func (*ServerImpl) RemoteProcessSignalCommand

func (impl *ServerImpl) RemoteProcessSignalCommand(ctx context.Context, data wshrpc.CommandRemoteProcessSignalData) error

func (*ServerImpl) RemoteStartJobCommand

func (impl *ServerImpl) RemoteStartJobCommand(ctx context.Context, data wshrpc.CommandRemoteStartJobData) (*wshrpc.CommandStartJobRtnData, error)

func (*ServerImpl) RemoteTerminateJobManagerCommand

func (impl *ServerImpl) RemoteTerminateJobManagerCommand(ctx context.Context, data wshrpc.CommandRemoteTerminateJobManagerData) error

func (*ServerImpl) RemoteWriteFileCommand

func (*ServerImpl) RemoteWriteFileCommand(ctx context.Context, data wshrpc.FileData) error

func (*ServerImpl) StreamTestCommand

func (impl *ServerImpl) StreamTestCommand(ctx context.Context) chan wshrpc.RespOrErrorUnion[int]

func (*ServerImpl) WshServerImpl

func (*ServerImpl) WshServerImpl()

Jump to

Keyboard shortcuts

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