server

package
v3.41.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 36 Imported by: 2

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 added in v3.33.0

func InitS3(e *gin.Engine)

func S3 added in v3.32.0

func S3(g *gin.RouterGroup)

func S3Server added in v3.33.0

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 added in v3.41.0

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

func NewMainDriver added in v3.41.0

func NewMainDriver() (*FtpMainDriver, error)

func (*FtpMainDriver) AuthUser added in v3.41.0

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

func (*FtpMainDriver) ClientConnected added in v3.41.0

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

func (*FtpMainDriver) ClientDisconnected added in v3.41.0

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

func (*FtpMainDriver) GetSettings added in v3.41.0

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

func (*FtpMainDriver) GetTLSConfig added in v3.41.0

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

func (*FtpMainDriver) Stop added in v3.41.0

func (d *FtpMainDriver) Stop()

type SftpDriver added in v3.41.0

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

func NewSftpDriver added in v3.41.0

func NewSftpDriver() (*SftpDriver, error)

func (*SftpDriver) AuthLogCallback added in v3.41.0

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

func (*SftpDriver) Close added in v3.41.0

func (d *SftpDriver) Close()

func (*SftpDriver) GetBanner added in v3.41.0

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

func (*SftpDriver) GetConfig added in v3.41.0

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

func (*SftpDriver) GetFileSystem added in v3.41.0

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

func (*SftpDriver) NoClientAuth added in v3.41.0

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

func (*SftpDriver) PasswordAuth added in v3.41.0

func (d *SftpDriver) PasswordAuth(conn ssh.ConnMetadata, password []byte) (*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 alist
Credits: https://pkg.go.dev/github.com/rclone/rclone@v1.65.2/cmd/serve/s3 Package s3 implements a fake s3 server for alist
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