Versions in this module Expand all Collapse all v0 v0.10.13 Jun 5, 2019 v0.10.12 May 30, 2019 Changes in this version + const ADD + const REMOVE + func PerformSync(store Store, local []FileRef, remote []FileRef) (added int, removed int, err error) + func TestIdempotent(config Config, cfg *models.Config) error + type Config struct + Bucket string + BucketRootPath string + FileRootPath string + Profile string + Region string + type FileRef struct + func (f *FileRef) String() string + type FileRefCollection []FileRef + func (c *FileRefCollection) GetReader() *bytes.Reader + func (c *FileRefCollection) Parse(reader io.Reader) error + func (c *FileRefCollection) Print() + type LocalStore struct + func NewLocalStore(config Config) (*LocalStore, error) + func (store *LocalStore) List() (FileRefCollection, error) + type S3Store struct + func NewS3Store(config Config) (*S3Store, error) + func (store *S3Store) Delete(wg *sync.WaitGroup, f FileRef) error + func (store *S3Store) List() (FileRefCollection, error) + func (store *S3Store) Upload(wg *sync.WaitGroup, f FileRef) error + func (store *S3Store) UploadFileIndex(f FileRefCollection) error + type Store interface + Delete func(wg *sync.WaitGroup, file FileRef) error + List func() (FileRefCollection, error) + Upload func(wg *sync.WaitGroup, file FileRef) error + UploadFileIndex func(FileRefCollection) error + type Summary struct + ChangesDetectedDuration time.Duration + ErrorCount int + FilesAdded int + FilesRemoved int + FilesTotal int + Logs []string + RenderDuration time.Duration + UploadDuration time.Duration + func Execute(config Config) (*Summary, error) + func (s *Summary) ToJSON() string + type Sync struct + Config Config + Store Store