Documentation ¶
Overview ¶
Package service allows to start and stop the SFTPGo service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 LogVerbose bool LogUTCTime bool LoadDataClean bool LoadDataFrom string LoadDataMode int LoadDataQuotaScan int Shutdown chan bool Error error }
Service defines the SFTPGo service
func (*Service) LoadInitialData ¶ added in v2.3.0
LoadInitialData if a data file is set
func (*Service) StartPortableMode ¶
func (s *Service) StartPortableMode(sftpdPort, ftpPort, webdavPort int, enabledSSHCommands []string, advertiseService, advertiseCredentials bool, ftpsCert, ftpsKey, webDavCert, webDavKey string) error
StartPortableMode starts the service in portable mode
Click to show internal directories.
Click to hide internal directories.