Documentation
¶
Index ¶
- type TUIBackend
- type TUIService
- func (s *TUIService) DeleteProfile(profilesFile, name string) error
- func (s *TUIService) LoadDashboardConfig(profilesFile string) (*cloudstic.ProfilesConfig, error)
- func (s *TUIService) RunProfileAction(ctx context.Context, profilesFile string, profile tui.ProfileCard, ...) error
- func (s *TUIService) RunProfileCheck(ctx context.Context, profilesFile string, profile tui.ProfileCard, ...) error
- func (s *TUIService) SaveProfile(profilesFile, name string, profile cloudstic.BackupProfile) error
- func (s *TUIService) SaveStore(profilesFile, name string, store cloudstic.ProfileStore) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TUIBackend ¶
type TUIBackend interface {
LoadStoreSnapshots(context.Context, string, cloudstic.ProfileStore) ([]engine.SnapshotEntry, error)
InitProfile(context.Context, string, string, cloudstic.BackupProfile, *cloudstic.ProfilesConfig) error
BackupProfile(context.Context, string, string, cloudstic.BackupProfile, *cloudstic.ProfilesConfig, cloudstic.Reporter) error
CheckProfile(context.Context, string, string, cloudstic.BackupProfile, *cloudstic.ProfilesConfig, cloudstic.Reporter) error
}
type TUIService ¶
type TUIService struct {
// contains filtered or unexported fields
}
func NewTUIService ¶
func NewTUIService(backend TUIBackend) *TUIService
func (*TUIService) DeleteProfile ¶
func (s *TUIService) DeleteProfile(profilesFile, name string) error
func (*TUIService) LoadDashboardConfig ¶ added in v1.16.0
func (s *TUIService) LoadDashboardConfig(profilesFile string) (*cloudstic.ProfilesConfig, error)
LoadDashboardConfig loads and normalizes the profiles config for the TUI. The Bubble Tea renderer builds a probe-less dashboard skeleton from it and then probes stores concurrently, rather than probing serially up front.
func (*TUIService) RunProfileAction ¶
func (s *TUIService) RunProfileAction(ctx context.Context, profilesFile string, profile tui.ProfileCard, reporter cloudstic.Reporter) error
func (*TUIService) RunProfileCheck ¶
func (s *TUIService) RunProfileCheck(ctx context.Context, profilesFile string, profile tui.ProfileCard, reporter cloudstic.Reporter) error
func (*TUIService) SaveProfile ¶
func (s *TUIService) SaveProfile(profilesFile, name string, profile cloudstic.BackupProfile) error
func (*TUIService) SaveStore ¶
func (s *TUIService) SaveStore(profilesFile, name string, store cloudstic.ProfileStore) error
Click to show internal directories.
Click to hide internal directories.