Documentation
¶
Index ¶
- type Backuper
- type Checker
- func (h *Checker) Add(path string, uploadedAt time.Time)
- func (h *Checker) Close(ctx context.Context) error
- func (h *Checker) Exists(path string, lastUpdate time.Time) bool
- func (h *Checker) GetFiles() map[string]time.Time
- func (h *Checker) Ignored() int
- func (h Checker) Open(ctx context.Context) error
- func (h *Checker) Remove(path string)
- func (h *Checker) Uploaded() int
- type Config
- type ConfigDecoder
- type ExistentFilesChecker
- type FileNotFoundError
- type Remote
- type RemoteFilesRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backuper ¶
type Backuper struct {
// contains filtered or unexported fields
}
func NewBackuper ¶
func NewBackuper( filesRepository RemoteFilesRepository, eChecker ExistentFilesChecker, config Config, ) Backuper
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker(filesRepository RemoteFilesRepository, cfg Config) *Checker
type ConfigDecoder ¶
type ConfigDecoder struct { }
func NewConfigDecoder ¶
func NewConfigDecoder() *ConfigDecoder
func (ConfigDecoder) LoadConfiguration ¶
func (cd ConfigDecoder) LoadConfiguration() (Config, error)
type ExistentFilesChecker ¶
type FileNotFoundError ¶
type FileNotFoundError struct {
// contains filtered or unexported fields
}
func NewFileNotFoundError ¶
func NewFileNotFoundError(filePath string) FileNotFoundError
func (FileNotFoundError) Error ¶
func (f FileNotFoundError) Error() string
type RemoteFilesRepository ¶
Click to show internal directories.
Click to hide internal directories.