Documentation
¶
Index ¶
- type TUIBackend
- type TUIService
- func (s *TUIService) BuildDashboard(ctx context.Context, profilesFile string) (tui.Dashboard, error)
- func (s *TUIService) DeleteProfile(profilesFile, name string) 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) BuildDashboard ¶
func (*TUIService) DeleteProfile ¶
func (s *TUIService) DeleteProfile(profilesFile, name string) error
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.