goos

package
v0.0.0-...-4c37742 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

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

func NewUnisonSvc(syncName, syncDir string) UnisonSvc

NewUnisonSvc - Return a new instance of `UnisonSvc`.

func (UnisonSvc) CheckSyncService

func (s UnisonSvc) CheckSyncService() error

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) StopSyncService

func (s UnisonSvc) StopSyncService()

StopSyncService ...

func (UnisonSvc) SyncServiceStatus

func (s UnisonSvc) SyncServiceStatus() string

SyncServiceStatus ...

func (UnisonSvc) UnloadSyncService

func (s UnisonSvc) UnloadSyncService()

UnloadSyncService Remove the unison sync service

Jump to

Keyboard shortcuts

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