sshserver

package
v0.0.0-...-febe97e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSSHConnection

func HandleSSHConnection(conn net.Conn, sshConfig *ssh.ServerConfig, clientset kubernetes.Interface, restConfig *rest.Config)

func RunServer

func RunServer(reconcileInterval, sshPort, metricsPort int, namespace, privateKeyPath string)

Types

type SFTPHandler

type SFTPHandler struct {
	Clientset     kubernetes.Interface
	Config        *rest.Config
	Namespace     string
	PodName       string
	ContainerName string
}

func (*SFTPHandler) FileChmod

func (h *SFTPHandler) FileChmod(r *sftp.Request) error

func (*SFTPHandler) FileGet

func (h *SFTPHandler) FileGet(r *sftp.Request) (io.ReaderAt, error)

func (*SFTPHandler) FileList

func (h *SFTPHandler) FileList(r *sftp.Request) ([]os.FileInfo, error)

func (*SFTPHandler) FilePut

func (h *SFTPHandler) FilePut(r *sftp.Request) (io.WriterAt, error)

func (*SFTPHandler) FileRemove

func (h *SFTPHandler) FileRemove(r *sftp.Request) error

func (*SFTPHandler) FileRename

func (h *SFTPHandler) FileRename(r *sftp.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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