rsync

package
v0.0.0-...-0ac09b4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbCmd

func GetDbCmd() *cobra.Command

func GetEntry

func GetEntry() golug_entry.Entry

func Hash

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

func Md5

func Md5(path string) string

func OssMove

func OssMove(k *oss.Bucket, srcObjectKey, destObjectKey string) error

func Range

func Range(min, max int) int

Types

type SyncFile

type SyncFile struct {
	Crc64ecma uint64
	Name      string
	Path      string
	Changed   bool
	Synced    bool
	Size      int64
	Mode      os.FileMode
	ModTime   int64
	IsDir     bool
}

type Waiter

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

func NewWaiter

func NewWaiter() *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