Documentation
¶
Overview ¶
Package tuisvc provides the real implementation of ports.TUIService.
Index ¶
- type Service
- func (s *Service) ListProjects(cfg *config.Config) ([]ports.TUIProjectInfo, error)
- func (s *Service) ListSnapshots(cfg *config.Config, tag string) ([]ports.TUISnapshotInfo, error)
- func (s *Service) ListVersions(cfg *config.Config, project string) ([]ports.TUIVersionInfo, error)
- func (s *Service) LoadConfig() (*config.Config, error)
- func (s *Service) RunBackup(cfg *config.Config, project string) ports.TUIBackupResult
- func (s *Service) VerifyBackup(cfg *config.Config, project string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
Service implements ports.TUIService using real filesystem operations.
func (*Service) ListProjects ¶
ListProjects returns all projects with their metadata from all configured sources.
func (*Service) ListSnapshots ¶ added in v1.0.0
ListSnapshots returns all restic snapshots for sensitive sources.
func (*Service) ListVersions ¶
ListVersions returns all backup versions for a project.
func (*Service) LoadConfig ¶
LoadConfig loads the application configuration.
Click to show internal directories.
Click to hide internal directories.