app

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (*TUIService) SaveStore

func (s *TUIService) SaveStore(profilesFile, name string, store profile.Store) error

Jump to

Keyboard shortcuts

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