pty

package
v0.0.0-...-445f9a6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTerminalServer

func RegisterTerminalServer(s *grpc.Server, srv TerminalServer)

Types

type Bytes

type Bytes struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Completed            bool     `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Bytes) Descriptor

func (*Bytes) Descriptor() ([]byte, []int)

func (*Bytes) GetCompleted

func (m *Bytes) GetCompleted() bool

func (*Bytes) GetData

func (m *Bytes) GetData() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) Reset

func (m *Bytes) Reset()

func (*Bytes) String

func (m *Bytes) String() string

func (*Bytes) XXX_DiscardUnknown

func (m *Bytes) XXX_DiscardUnknown()

func (*Bytes) XXX_Marshal

func (m *Bytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bytes) XXX_Merge

func (dst *Bytes) XXX_Merge(src proto.Message)

func (*Bytes) XXX_Size

func (m *Bytes) XXX_Size() int

func (*Bytes) XXX_Unmarshal

func (m *Bytes) XXX_Unmarshal(b []byte) error

type Size

type Size struct {
	Cols                 uint32   `protobuf:"varint,1,opt,name=cols,proto3" json:"cols,omitempty"`
	Rows                 uint32   `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Size) Descriptor

func (*Size) Descriptor() ([]byte, []int)

func (*Size) GetCols

func (m *Size) GetCols() uint32

func (*Size) GetRows

func (m *Size) GetRows() uint32

func (*Size) ProtoMessage

func (*Size) ProtoMessage()

func (*Size) Reset

func (m *Size) Reset()

func (*Size) String

func (m *Size) String() string

func (*Size) XXX_DiscardUnknown

func (m *Size) XXX_DiscardUnknown()

func (*Size) XXX_Marshal

func (m *Size) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Size) XXX_Merge

func (dst *Size) XXX_Merge(src proto.Message)

func (*Size) XXX_Size

func (m *Size) XXX_Size() int

func (*Size) XXX_Unmarshal

func (m *Size) XXX_Unmarshal(b []byte) error

type Terminal

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

func Open

func Open(shell string, cols, rows uint16) (*Terminal, error)

func (*Terminal) Attach

func (t *Terminal) Attach(srv Terminal_AttachServer) error

func (*Terminal) Close

func (t *Terminal) Close() error

func (*Terminal) Completed

func (t *Terminal) Completed() bool

func (*Terminal) ListenAndServe

func (t *Terminal) ListenAndServe(addr string) error

func (*Terminal) Resize

func (t *Terminal) Resize(ctx context.Context, req *Size) (*Size, error)

func (*Terminal) ResizePty

func (t *Terminal) ResizePty(cols, rows uint16) error

type TerminalClient

type TerminalClient interface {
	Attach(ctx context.Context, opts ...grpc.CallOption) (Terminal_AttachClient, error)
	Resize(ctx context.Context, in *Size, opts ...grpc.CallOption) (*Size, error)
}

TerminalClient is the client API for Terminal service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTerminalClient

func NewTerminalClient(cc *grpc.ClientConn) TerminalClient

type TerminalServer

type TerminalServer interface {
	Attach(Terminal_AttachServer) error
	Resize(context.Context, *Size) (*Size, error)
}

TerminalServer is the server API for Terminal service.

type Terminal_AttachClient

type Terminal_AttachClient interface {
	Send(*Bytes) error
	Recv() (*Bytes, error)
	grpc.ClientStream
}

type Terminal_AttachServer

type Terminal_AttachServer interface {
	Send(*Bytes) error
	Recv() (*Bytes, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

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