checker

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Age

type Age struct{}

func (Age) Check

func (Age) Check(cfg *config.UploaderCheck, log *logrus.Entry, paths []pathutils.Path, size uint64) (bool, error)

func (Age) CheckFile

func (Age) CheckFile(cfg *config.UploaderCheck, log *logrus.Entry, path pathutils.Path, size uint64) (bool, error)

func (Age) RcloneParams

func (Age) RcloneParams(cfg *config.UploaderCheck, log *logrus.Entry) []string

type Interface

type Interface interface {
	Check(*config.UploaderCheck, *logrus.Entry, []pathutils.Path, uint64) (bool, error)
	CheckFile(*config.UploaderCheck, *logrus.Entry, pathutils.Path, uint64) (bool, error)
	RcloneParams(check *config.UploaderCheck, entry *logrus.Entry) []string
}

type Size

type Size struct{}

func (Size) Check

func (Size) Check(cfg *config.UploaderCheck, log *logrus.Entry, paths []pathutils.Path, size uint64) (bool, error)

func (Size) CheckFile

func (Size) CheckFile(cfg *config.UploaderCheck, log *logrus.Entry, path pathutils.Path, size uint64) (bool, error)

func (Size) RcloneParams

func (Size) RcloneParams(cfg *config.UploaderCheck, log *logrus.Entry) []string

Jump to

Keyboard shortcuts

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