bernard

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) (autoscan.Trigger, error)

func NewPostProcessBernardDiff

func NewPostProcessBernardDiff(driveID string, store *bds, diff *sqlite.Difference) bernard.Hook

Types

type Config

type Config struct {
	AccountPath   string             `yaml:"account"`
	CronSchedule  string             `yaml:"cron"`
	DatastorePath string             `yaml:"database"`
	Priority      int                `yaml:"priority"`
	TimeOffset    time.Duration      `yaml:"time-offset"`
	Verbosity     string             `yaml:"verbosity"`
	Rewrite       []autoscan.Rewrite `yaml:"rewrite"`
	Include       []string           `yaml:"include"`
	Exclude       []string           `yaml:"exclude"`
	Drives        []struct {
		ID         string             `yaml:"id"`
		TimeOffset time.Duration      `yaml:"time-offset"`
		Rewrite    []autoscan.Rewrite `yaml:"rewrite"`
		Include    []string           `yaml:"include"`
		Exclude    []string           `yaml:"exclude"`
	} `yaml:"drives"`
}

type Paths

type Paths struct {
	AddedFiles   []string
	ChangedFiles []string
	RemovedFiles []string
}

func NewPathsHook

func NewPathsHook(driveID string, store *bds, diff *sqlite.Difference) (bernard.Hook, *Paths)

Jump to

Keyboard shortcuts

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