Documentation ¶
Index ¶
- type Console
- type Service
- func (s *Service) HandleConsole(ctx context.Context, stream *smux.Stream, payload []byte) error
- func (s *Service) HandleConsoleCommand(_ context.Context, stream *smux.Stream, payload []byte) error
- func (s *Service) HandleReloadCommand(_ context.Context, stream *smux.Stream, _ []byte) error
- func (s *Service) Stop() error
- func (s *Service) UpdateState(ctx context.Context, edgeURL string, enabled bool) error
- func (s *Service) WithConfigReloadNotifier(ch chan bool) *Service
- func (s *Service) WithTLSConfig(tlsConfig *tls.Config) *Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
Console contains resources involved in a remote console session.
func NewConsole ¶
NewConsole creates a new console. It returns a Console object and an error if any. If err == nil, the caller is responsible for closing the Console.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service controls remote access for the agent.
func (*Service) HandleConsole ¶
HandleConsole handles a remote console stream.
func (*Service) HandleConsoleCommand ¶
func (s *Service) HandleConsoleCommand(_ context.Context, stream *smux.Stream, payload []byte) error
HandleConsoleCommand handles a remote console command. This is primary used to resize an existing console.
func (*Service) HandleReloadCommand ¶
HandleReloadCommand handles the reload command.
func (*Service) UpdateState ¶
UpdateState ensures that remote access is enabled or disabled based on the enabled parameter.
func (*Service) WithConfigReloadNotifier ¶
WithConfigReloadNotifier registers a channel to be notified when a remote configuration reload is requested.