sync

package
v0.0.0-...-302834b Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change uint8
const (
	ChangeLocalAdd Change = 1 << iota
	ChangeLocalDelete
	ChangeLocalUpdate
	ChangeRemoteAdd
	ChangeRemoteDelete
	ChangeRemoteUpdate
)

func (Change) Changed

func (c Change) Changed() bool

func (Change) HasAll

func (c Change) HasAll(test ...Change) bool

func (Change) HasOne

func (c Change) HasOne(test ...Change) bool

func (Change) Is

func (c Change) Is(test Change) bool

func (*Change) Register

func (c *Change) Register(add Change)

func (Change) String

func (c Change) String() string

type Config

type Config struct {
	ForceUseChecksum bool          `yaml:"force_use_checksum"`
	ScanInterval     time.Duration `yaml:"scan_interval"`
}

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

func New

func New(local, remote providers.CloudProvider, db *sql.DB, conf Config, logger *log.Entry) *Sync

func (*Sync) Run

func (s *Sync) Run() error

func (*Sync) Stop

func (s *Sync) Stop()

Jump to

Keyboard shortcuts

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