common

package
v0.0.0-...-8bec7fc Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoSync

func AutoSync(repoConfig RepoConfig) error

func GitCommand

func GitCommand(repoConfig RepoConfig, args []string) (bytes.Buffer, error)

func ShouldIgnoreFile

func ShouldIgnoreFile(repoPath string, filePath string) (bool, error)

func WatchForChanges

func WatchForChanges(cfg RepoConfig) error

Types

type AwakeNotifier

type AwakeNotifier interface {
	Start(chan bool) error
}

func NewAwakeNotifier

func NewAwakeNotifier() (AwakeNotifier, error)

type AwakeNotifierEmpty

type AwakeNotifierEmpty struct{}

func (AwakeNotifierEmpty) Start

func (AwakeNotifierEmpty) Start(chan bool) error

type RepoConfig

type RepoConfig struct {
	RepoPath     string
	PollInterval time.Duration
	FSLag        time.Duration
	GitExec      string
	Env          []string
}

func NewRepoConfig

func NewRepoConfig(repoPath string) (RepoConfig, error)

type Service

type Service struct {
	Service service.Service
}

func NewService

func NewService() (Service, error)

func NewServiceWithDaemon

func NewServiceWithDaemon(daemon service.Interface) (Service, error)

func (Service) Disable

func (srv Service) Disable() error

func (Service) Enable

func (srv Service) Enable() error

func (Service) Status

func (srv Service) Status() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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