kernel

package
v0.5.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPrompt

func DetectPrompt(cmdName string) ([]byte, error)

func NewKernelServiceHandler

func NewKernelServiceHandler(logger *zap.Logger) kernelv1connect.KernelServiceHandler

func NewKernelServiceServer

func NewKernelServiceServer(logger *zap.Logger) kernelv1.KernelServiceServer

Types

type ShellSession

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

func NewShellSession

func NewShellSession(command, prompt string) (*ShellSession, error)

func (*ShellSession) Close

func (s *ShellSession) Close() error

func (*ShellSession) Done

func (s *ShellSession) Done() <-chan struct{}

func (*ShellSession) Err

func (s *ShellSession) Err() error

func (*ShellSession) ID

func (s *ShellSession) ID() string

func (*ShellSession) Send

func (s *ShellSession) Send(data []byte) error

Jump to

Keyboard shortcuts

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