server

package
v0.0.0-...-f538abd Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesArrayToStrArray

func BytesArrayToStrArray(ba [][]byte) []string

func Len

func Len(sm *sync.Map) int

func NewSN

func NewSN() uint32

Types

type Commander

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

func NewCommander

func NewCommander(in *apis.Command) *Commander

type Executor

type Executor struct{}

func (*Executor) ExecCommand

func (e *Executor) ExecCommand(ctx context.Context, req *apis.Command) (*apis.Sn, error)

func (*Executor) FetchStderr

func (e *Executor) FetchStderr(sn *apis.Sn, s apis.Executor_FetchStderrServer) error

func (*Executor) FetchStdout

func (e *Executor) FetchStdout(sn *apis.Sn, s apis.Executor_FetchStdoutServer) error

func (*Executor) Kill

func (e *Executor) Kill(ctx context.Context, req *apis.Sn) (*apis.Error, error)

func (*Executor) SendInput

func (e *Executor) SendInput(s apis.Executor_SendInputServer) error

func (*Executor) Start

func (e *Executor) Start(ctx context.Context, req *apis.StartInput) (*apis.StartResponse, error)

func (*Executor) Wait

func (e *Executor) Wait(ctx context.Context, in *apis.Sn) (*apis.WaitResponse, error)

Jump to

Keyboard shortcuts

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