Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
Action(syncAction *meta.SyncAction, data *SyncMatchData) Action
CheckExpr(when string) error
}
Factory is a factory for creating Action
func NewActionFactory ¶
NewActionFactory create a Factory
type SyncMatchData ¶
type SyncMatchData struct {
JobID string
FileNeedSyncs meta.FileNeedSyncs // only available in file sync stage
FileSyncGroup meta.FileSyncGroup
Units []meta.SyncUnit
DeleteUnits []meta.SyncUnit
SyncedFileCounts []int
Err error // only available in errors stage
}
SyncMatchData is a data holder for syncAction templates
func NewSyncMatchData ¶
func NewSyncMatchData(jobID string, grp meta.FileSyncGroup, units []meta.SyncUnit, deleteUnits []meta.SyncUnit, fileNeedSyncs meta.FileNeedSyncs, syncedFileCounts []int, err error) *SyncMatchData
NewSyncMatchData create a new SyncMatchData
func (SyncMatchData) SyncedFileSum ¶
func (sd SyncMatchData) SyncedFileSum() int
SyncedFileSum 本次同步的总文件数目
Click to show internal directories.
Click to hide internal directories.