syncfile

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncFile

type SyncFile struct {
	ID       string
	Path     string
	Checksum []byte
	Size     int64
	AddTime  time.Time
	ModTime  time.Time
	DelTime  time.Time
	Deleted  bool
	Sources  []string
	// contains filtered or unexported fields
}

func (*SyncFile) AddSource

func (f *SyncFile) AddSource(id string)

func (*SyncFile) AddSourceList

func (f *SyncFile) AddSourceList(ids []string)

func (*SyncFile) CleanSources

func (f *SyncFile) CleanSources(servers []serverinfo.ServerInfo)

func (*SyncFile) ClearChecksum

func (f *SyncFile) ClearChecksum()

func (*SyncFile) ClearSources

func (f *SyncFile) ClearSources()

func (*SyncFile) DeleteSource

func (f *SyncFile) DeleteSource(id string)

func (*SyncFile) GetDestination

func (f *SyncFile) GetDestination() string

func (*SyncFile) GetIncomingTime

func (f *SyncFile) GetIncomingTime() time.Time

func (*SyncFile) GetSources

func (f *SyncFile) GetSources() []string

func (*SyncFile) New

func (f *SyncFile) New(root string, path string) error

func (*SyncFile) SelectSource

func (f *SyncFile) SelectSource(thisID string) (string, error)

func (*SyncFile) SetDestination

func (f *SyncFile) SetDestination(id string)

func (*SyncFile) SetIncomingTime

func (f *SyncFile) SetIncomingTime(t time.Time)

func (*SyncFile) Update

func (f *SyncFile) Update(root string) (bool, error)

Jump to

Keyboard shortcuts

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