Documentation ¶
Overview ¶
Package service allows to start and stop the SFTPGo service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { ConfigDir string ConfigFile string LogFilePath string LogMaxSize int LogMaxBackups int LogMaxAge int PortableMode int PortableUser dataprovider.User LogCompress bool LogLevel string LogUTCTime bool LoadDataClean bool LoadDataFrom string LoadDataMode int LoadDataQuotaScan int Shutdown chan bool Error error }
Service defines the SFTPGo service
func (*Service) LoadInitialData ¶
LoadInitialData if a data file is set
func (*Service) StartPortableMode ¶
func (s *Service) StartPortableMode(sftpdPort, ftpPort, webdavPort int, enabledSSHCommands []string, ftpsCert, ftpsKey, webDavCert, webDavKey string) error
StartPortableMode starts the service in portable mode
Click to show internal directories.
Click to hide internal directories.