tuisvc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tuisvc provides the real implementation of ports.TUIService.

Index

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 New

func New() *Service

New creates a new TUI service.

func (*Service) ListProjects

func (s *Service) ListProjects(cfg *config.Config) ([]ports.TUIProjectInfo, error)

ListProjects returns all projects with their metadata from all configured sources.

func (*Service) ListSnapshots added in v1.0.0

func (s *Service) ListSnapshots(cfg *config.Config, tag string) ([]ports.TUISnapshotInfo, error)

ListSnapshots returns all restic snapshots for sensitive sources.

func (*Service) ListVersions

func (s *Service) ListVersions(cfg *config.Config, project string) ([]ports.TUIVersionInfo, error)

ListVersions returns all backup versions for a project.

func (*Service) LoadConfig

func (s *Service) LoadConfig() (*config.Config, error)

LoadConfig loads the application configuration.

func (*Service) RunBackup

func (s *Service) RunBackup(cfg *config.Config, project string) ports.TUIBackupResult

RunBackup performs a backup of the specified project.

func (*Service) VerifyBackup

func (s *Service) VerifyBackup(cfg *config.Config, project string) error

VerifyBackup verifies the latest backup of a project.

Jump to

Keyboard shortcuts

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