sync

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sync synchronizes configuration between the database and corresponding file and synchronization of any downloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sync

type Sync struct {
	DB                 *sql.DB
	Config             *config.File
	ConfigTemplatePath string
	Log                *log.Logger
	Plumb              *plumbing.Plumbing
	Stderr             io.Writer
	Stdout             io.Writer
}

Sync synchronize database tables

func (*Sync) Check added in v1.1.0

func (s *Sync) Check(key, file string) bool

Check returns true if a file needs synchronizing. key is the key the database which holds the last update time and file is the path to stat

func (*Sync) Templates added in v1.1.0

func (s *Sync) Templates()

Templates synchronizes templates between the YAML configuration, database and its upstream version control repository.

Jump to

Keyboard shortcuts

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