flex

package module
v0.0.0-...-7e5b427 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 9 Imported by: 0

README

flex-sftp

Flexible and pluggable SFTP server that you can plug stuff into

Warning

We included a private/public key-pair in the keys directory. These should NOT be used in production because they have been exposed "in plain text" in this repository and can be copied by anyone to masquerade as your server should you use these keys as private keys for your server. Instead, generate a strong key and expire them to ensure the safety of your clients' sessions.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenerCount uint `env:"LISTENER_COUNT"`
}

type ConnectionRequest

type ConnectionRequest struct {
	Connection net.Conn
	Timestamp  time.Time
}

type SFTPConnectionListener

type SFTPConnectionListener struct {
	Handlers sftp.Handlers
	// contains filtered or unexported fields
}

func (*SFTPConnectionListener) Listen

func (listener *SFTPConnectionListener) Listen(connection net.Conn) (err error)

func (*SFTPConnectionListener) ProcessNewChannels

func (listener *SFTPConnectionListener) ProcessNewChannels(newChannel ssh.NewChannel) (err error)

type SFTPServer

type SFTPServer struct {
	// contains filtered or unexported fields
}

func NewSFTPServer

func NewSFTPServer(config Config) *SFTPServer

func (*SFTPServer) ListenAndServe

func (server *SFTPServer) ListenAndServe(addr string) (err error)

func (*SFTPServer) SetupEventLoop

func (server *SFTPServer) SetupEventLoop() (err error)

Directories

Path Synopsis
example
in-memory command

Jump to

Keyboard shortcuts

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