test

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func (*Channel) Close

func (c *Channel) Close() error

func (*Channel) CloseWrite

func (c *Channel) CloseWrite() error

func (*Channel) Read

func (c *Channel) Read(data []byte) (int, error)

func (*Channel) SendRequest

func (c *Channel) SendRequest(name string, wantReply bool, payload []byte) (bool, error)

func (*Channel) Stderr

func (c *Channel) Stderr() io.ReadWriter

func (*Channel) Write

func (c *Channel) Write(data []byte) (int, error)

type Session

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

func (*Session) Close

func (*Session) Close() error

func (*Session) GetKeepAliveReason

func (s *Session) GetKeepAliveReason() string

func (*Session) GetSharedServers

func (*Session) GetSharedServers(context.Context) ([]*liveshare.Port, error)

func (*Session) KeepAlive

func (s *Session) KeepAlive(reason string)

func (*Session) OpenStreamingChannel

func (s *Session) OpenStreamingChannel(ctx context.Context, id liveshare.ChannelID) (ssh.Channel, error)

Creates mock SSH channel connected to the mock gRPC server

func (*Session) StartSharing

func (s *Session) StartSharing(ctx context.Context, sessionName string, port int) (liveshare.ChannelID, error)

Jump to

Keyboard shortcuts

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