Documentation
¶
Index ¶
- type TUIBackend
- type TUIService
- func (s *TUIService) DeleteProfile(profilesFile, name string) error
- func (s *TUIService) LoadDashboardConfig(profilesFile string) (*profile.Config, 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, p profile.Profile) error
- func (s *TUIService) SaveStore(profilesFile, name string, store profile.Store) 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, profile.Store) ([]engine.SnapshotEntry, error)
// Each takes the profile's name and the whole config rather than the
// resolved profile.Profile as well: every implementation needs the store
// the profile points at, and profile.Config.StoreFor is the one lookup
// that resolves it. Passing both invited a caller to supply a profile that
// is not the one the name selects.
InitProfile(context.Context, string, string, *profile.Config) error
BackupProfile(context.Context, string, string, *profile.Config, cloudstic.Reporter) error
CheckProfile(context.Context, string, string, *profile.Config, 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) (*profile.Config, 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, p profile.Profile) error
Click to show internal directories.
Click to hide internal directories.