bernard

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config, db *sql.DB) (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"`
	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 Parents added in v0.4.0

type Parents struct {
	New        []datastore.Folder
	Old        []datastore.Folder
	FolderMaps *diffFolderMaps
}

type Paths

type Paths struct {
	NewFolders []string
	OldFolders []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