auth

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthViaPassword

func AuthViaPassword(config *commons.Config) (bool, error)

AuthViaPassword authenticate a user via password

func AuthViaPublicKey

func AuthViaPublicKey(config *commons.Config) (bool, []string, error)

AuthViaPublicKey authenticate a user via public key

func CreateSshDir added in v0.1.3

func CreateSshDir(config *commons.Config) error

func GetHomeCollectionPath

func GetHomeCollectionPath(config *commons.Config, options []string) string

GetHomeCollectionPath returns home collection path

func IsClientRejected

func IsClientRejected(clientIP string, options []string) bool

func IsKeyExpired

func IsKeyExpired(options []string) bool

func MakeSFTPGoUser

func MakeSFTPGoUser(config *commons.Config, sftpgoUsername string, mountPaths []types.MountPath) (*types.SFTPGoUser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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