Documentation ¶
Index ¶
- Constants
- Variables
- func New(addr string, config *rest.Config) (*ssh.Server, error)
- func PasswordHandler() ssh.PasswordHandler
- func PublicKeyHandler(clientset *kubernetes.Clientset) ssh.PublicKeyHandler
- func SftpHandler(clientset *kubernetes.Clientset, config *rest.Config) ssh.SubsystemHandler
- func SshHandler(clientset *kubernetes.Clientset, config *rest.Config) ssh.Handler
- type RateLimiter
- type Server
- 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 ¶
func PasswordHandler ¶
func PasswordHandler() ssh.PasswordHandler
func PublicKeyHandler ¶
func PublicKeyHandler(clientset *kubernetes.Clientset) ssh.PublicKeyHandler
func SftpHandler ¶
func SftpHandler(clientset *kubernetes.Clientset, config *rest.Config) ssh.SubsystemHandler
func SshHandler ¶
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
Click to show internal directories.
Click to hide internal directories.