server

package
v0.0.0-...-c2f3789 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(r *gin.Engine)

func Init

func Init(e *gin.Engine)

func InitS3

func InitS3(e *gin.Engine)

func S3

func S3(g *gin.RouterGroup)

func S3Server

func S3Server(g *gin.RouterGroup)

func ServeWebDAV

func ServeWebDAV(c *gin.Context)

func WebDAVAuth

func WebDAVAuth(c *gin.Context)

func WebDav

func WebDav(dav *gin.RouterGroup)

Types

type FtpMainDriver

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

func NewMainDriver

func NewMainDriver() (*FtpMainDriver, error)

func (*FtpMainDriver) AuthUser

func (d *FtpMainDriver) AuthUser(cc ftpserver.ClientContext, user, pass string) (ftpserver.ClientDriver, error)

func (*FtpMainDriver) ClientConnected

func (d *FtpMainDriver) ClientConnected(cc ftpserver.ClientContext) (string, error)

func (*FtpMainDriver) ClientDisconnected

func (d *FtpMainDriver) ClientDisconnected(cc ftpserver.ClientContext)

func (*FtpMainDriver) GetSettings

func (d *FtpMainDriver) GetSettings() (*ftpserver.Settings, error)

func (*FtpMainDriver) GetTLSConfig

func (d *FtpMainDriver) GetTLSConfig() (*tls.Config, error)

func (*FtpMainDriver) Stop

func (d *FtpMainDriver) Stop()

type SftpDriver

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

func NewSftpDriver

func NewSftpDriver() (*SftpDriver, error)

func (*SftpDriver) AuthLogCallback

func (d *SftpDriver) AuthLogCallback(conn ssh.ConnMetadata, method string, err error)

func (*SftpDriver) Close

func (d *SftpDriver) Close()

func (*SftpDriver) GetBanner

func (d *SftpDriver) GetBanner(_ ssh.ConnMetadata) string

func (*SftpDriver) GetConfig

func (d *SftpDriver) GetConfig() *sftpd.Config

func (*SftpDriver) GetFileSystem

func (d *SftpDriver) GetFileSystem(sc *ssh.ServerConn) (sftpd.FileSystem, error)

func (*SftpDriver) NoClientAuth

func (d *SftpDriver) NoClientAuth(conn ssh.ConnMetadata) (*ssh.Permissions, error)

func (*SftpDriver) PasswordAuth

func (d *SftpDriver) PasswordAuth(conn ssh.ConnMetadata, password []byte) (*ssh.Permissions, error)

func (*SftpDriver) PublicKeyAuth

func (d *SftpDriver) PublicKeyAuth(conn ssh.ConnMetadata, key ssh.PublicKey) (*ssh.Permissions, error)

Directories

Path Synopsis
Credits: https://pkg.go.dev/github.com/rclone/rclone@v1.65.2/cmd/serve/s3 Package s3 implements a fake s3 server for openlist
Credits: https://pkg.go.dev/github.com/rclone/rclone@v1.65.2/cmd/serve/s3 Package s3 implements a fake s3 server for openlist
Package webdav provides a WebDAV server implementation.
Package webdav provides a WebDAV server implementation.
internal/xml
Package xml implements a simple XML 1.0 parser that understands XML name spaces.
Package xml implements a simple XML 1.0 parser that understands XML name spaces.

Jump to

Keyboard shortcuts

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