Documentation ¶
Index ¶
- Variables
- func HashedSecretField(secret string) zap.Field
- func HashedTokenField(token string) zap.Field
- func LocatorField(locator string) zap.Field
- type LocatorGenerator
- type Option
- type TerminalServer
- func (ts *TerminalServer) Addresses() []string
- func (ts *TerminalServer) ControlChannel(channel api.HostService_ControlChannelServer) error
- func (ts *TerminalServer) DataChannel(channel api.HostService_DataChannelServer) error
- func (ts *TerminalServer) Run(ctx context.Context) (err error)
- func (ts *TerminalServer) TerminalChannel(channel api.GuestService_TerminalChannelServer) error
- func (ts *TerminalServer) TraceContext(ctx context.Context) []zap.Field
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNewTerminalRefused = errors.New("refusing to register new terminal")
Functions ¶
func HashedSecretField ¶ added in v0.9.0
func HashedTokenField ¶ added in v0.9.0
func LocatorField ¶ added in v0.9.0
Types ¶
type LocatorGenerator ¶
type LocatorGenerator func() string
type Option ¶
type Option func(*TerminalServer)
func WithAddresses ¶
func WithGCPProjectID ¶ added in v0.9.0
func WithLocatorGenerator ¶
func WithLocatorGenerator(locatorGenerator LocatorGenerator) Option
func WithLogger ¶
func WithTLSConfig ¶
type TerminalServer ¶
type TerminalServer struct { api.UnimplementedGuestServiceServer api.UnimplementedHostServiceServer // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) (*TerminalServer, error)
func (*TerminalServer) Addresses ¶ added in v0.9.0
func (ts *TerminalServer) Addresses() []string
func (*TerminalServer) ControlChannel ¶
func (ts *TerminalServer) ControlChannel(channel api.HostService_ControlChannelServer) error
func (*TerminalServer) DataChannel ¶
func (ts *TerminalServer) DataChannel(channel api.HostService_DataChannelServer) error
func (*TerminalServer) TerminalChannel ¶
func (ts *TerminalServer) TerminalChannel(channel api.GuestService_TerminalChannelServer) error
func (*TerminalServer) TraceContext ¶ added in v0.9.0
func (ts *TerminalServer) TraceContext(ctx context.Context) []zap.Field
Source Files ¶
Click to show internal directories.
Click to hide internal directories.