Documentation ¶
Index ¶
- type UnisonSvc
- func (s UnisonSvc) CheckSyncService() error
- func (s UnisonSvc) CreateSyncFile()
- func (s UnisonSvc) CreateSyncService()
- func (s UnisonSvc) RegisterSyncService()
- func (s UnisonSvc) RestartSyncService()
- func (s UnisonSvc) StartSyncService()
- func (s UnisonSvc) StopSyncService()
- func (s UnisonSvc) SyncServiceStatus() string
- func (s UnisonSvc) UnloadSyncService()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnisonSvc ¶
type UnisonSvc struct { SyncName string SyncDir string Filename string Filepath string Systemdpath string }
UnisonSvc ...
func NewUnisonSvc ¶
NewUnisonSvc - Return a new instance of `UnisonSvc`.
func (UnisonSvc) CheckSyncService ¶
CheckSyncService a verbose sync status check used for tok status
func (UnisonSvc) CreateSyncFile ¶
func (s UnisonSvc) CreateSyncFile()
CreateSyncFile creates the systemd path (if necessary) and file
func (UnisonSvc) CreateSyncService ¶
func (s UnisonSvc) CreateSyncService()
CreateSyncService Register a launchd or systemctl service for Unison active sync
func (UnisonSvc) RegisterSyncService ¶
func (s UnisonSvc) RegisterSyncService()
RegisterSyncService Register the unison sync service for systemd
func (UnisonSvc) RestartSyncService ¶
func (s UnisonSvc) RestartSyncService()
RestartSyncService ...
func (UnisonSvc) StartSyncService ¶
func (s UnisonSvc) StartSyncService()
StartSyncService Start the systemd service after it is created
func (UnisonSvc) SyncServiceStatus ¶
SyncServiceStatus ...
func (UnisonSvc) UnloadSyncService ¶
func (s UnisonSvc) UnloadSyncService()
UnloadSyncService Remove the unison sync service
Click to show internal directories.
Click to hide internal directories.