rsync

package
v0.0.0-...-a4557ec Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndBackup

func CheckAndBackup(dir string, kk *oss.Bucket)

func CheckAndDelete

func CheckAndDelete(kk *oss.Bucket, c *atomic.Bool)

func CheckAndSync

func CheckAndSync(dir string, kk *oss.Bucket, c *atomic.Bool)

func GetDbCmd

func GetDbCmd() *cobra.Command

func Hash

func Hash(data []byte) (hash string)

func Md5

func Md5(path string) string

Types

type Waiter

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

func NewWaiter

func NewWaiter(maxTimes ...int) *Waiter

func (*Waiter) Report

func (t *Waiter) Report(key string, c *atomic.Bool)

func (*Waiter) Skip

func (t *Waiter) Skip(key string) bool

Jump to

Keyboard shortcuts

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