session

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func New

func New(logger *zap.Logger, token string, shellEnv []string) *Session

func (*Session) LastActivity

func (session *Session) LastActivity() time.Time

func (*Session) Run

func (session *Session) Run(
	ctx context.Context,
	hostService api.HostServiceClient,
	locator string,
	dimensions *api.TerminalDimensions,
)

func (*Session) Token

func (session *Session) Token() string

type ShellPTY added in v0.10.0

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

func NewShellPTY added in v0.10.0

func NewShellPTY(logger *zap.SugaredLogger, dimensions *api.TerminalDimensions, env []string) (*ShellPTY, error)

func (*ShellPTY) Close added in v0.10.0

func (sp *ShellPTY) Close() error

func (*ShellPTY) Read added in v0.10.0

func (sp *ShellPTY) Read(b []byte) (n int, err error)

func (*ShellPTY) Resize added in v0.10.0

func (sp *ShellPTY) Resize(dimensions *api.TerminalDimensions) error

func (*ShellPTY) Write added in v0.10.0

func (sp *ShellPTY) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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