sshserver

package
v0.0.0-...-d66aa58 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 New

func New(addr string, config *rest.Config) (*ssh.Server, error)

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

func SshHandler(clientset *kubernetes.Clientset, config *rest.Config) ssh.Handler

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 {
	// contains filtered or unexported fields
}

type User

type User struct {
	PublicKey ssh.PublicKey
	User      string
	Pod       string
	Namespace string
}

Jump to

Keyboard shortcuts

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