server

package
v0.0.0-...-a09db05 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*ssh.Server
	// contains filtered or unexported fields
}

Server holds the boombox server.

func New

func New(cfg *config.Config, client *k8s.Client) *Server

New returns a new *Server, configured to run boombox.

func (*Server) DeregisterSession

func (s *Server) DeregisterSession()

Deregisters a session.

func (*Server) IsShuttingDown

func (s *Server) IsShuttingDown() bool

Returns true if the server is shutting down.

func (*Server) RegisterSession

func (s *Server) RegisterSession()

Registers a new session.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdowns the server by closing all active connections.

Jump to

Keyboard shortcuts

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