Documentation
¶
Index ¶
- Constants
- Variables
- type RateLimiter
- type Server
- func (s Server) PasswordHandler() ssh.PasswordHandler
- func (s Server) PublicKeyHandler() ssh.PublicKeyHandler
- func (s Server) RemotecommandExec(config *rest.Config, pod, namespace string, cmd []string, pty bool) (remotecommand.Executor, error)
- func (s Server) SftpHandler() ssh.SubsystemHandler
- func (s Server) SshHandler() ssh.Handler
- type User
Constants ¶
View Source
const AuthorizedKeyAnnotation = "ssh.barpilot.io/publickey"
View Source
const CommandAnnotation = "ssh.barpilot.io/command"
View Source
const PrefixCommandAnnotation = "ssh.barpilot.io/prefix-command"
Variables ¶
View Source
var ErrDestination = errors.New("can't find destination")
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter() *RateLimiter
func (*RateLimiter) ConnCallback ¶
func (r *RateLimiter) ConnCallback() ssh.ConnCallback
func (*RateLimiter) ConnectionFailedCallback ¶
func (r *RateLimiter) ConnectionFailedCallback() ssh.ConnectionFailedCallback
type Server ¶
type Server struct { Server *gssh.Server Scheme *runtime.Scheme Client client.Client Config *rest.Config Logger *slog.Logger }
func (Server) PasswordHandler ¶
func (s Server) PasswordHandler() ssh.PasswordHandler
func (Server) PublicKeyHandler ¶
func (s Server) PublicKeyHandler() ssh.PublicKeyHandler
func (Server) RemotecommandExec ¶
func (Server) SftpHandler ¶
func (s Server) SftpHandler() ssh.SubsystemHandler
func (Server) SshHandler ¶
Click to show internal directories.
Click to hide internal directories.