Documentation
¶
Index ¶
- func AltScreenEnabledFromEnv() bool
- func MouseEnabledFromEnv() bool
- func ServiceActionTarget(action ActionID) (string, string, bool)
- func StackActionTarget(action ActionID) (string, string, bool)
- type ActionID
- type ActionReport
- type ActionRunner
- type ActionSpec
- type ClipboardWriter
- type ConfigManager
- type ConfigSourceState
- type Connection
- type DBShellLauncher
- type DBShellRequest
- type DoctorCheck
- type DoctorSummary
- type HealthLine
- type Loader
- type LogWatchLauncher
- type LogWatchRequest
- type Model
- func (m Model) Init() tea.Cmd
- func (m Model) QuitBlockedReason() string
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() tea.View
- func (m Model) WithAltScreen(enabled bool) Model
- func (m Model) WithHelpExpanded(expanded bool) Model
- func (m Model) WithMouse(enabled bool) Model
- func (m Model) WithProductivity(copyWriter ClipboardWriter, shellLauncher ServiceShellLauncher, ...) Model
- func (m Model) WithVersion(version string) Model
- type QuitBlockedMsg
- type Service
- type ServiceShellLauncher
- type ServiceShellRequest
- type Snapshot
- type StackProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AltScreenEnabledFromEnv ¶
func AltScreenEnabledFromEnv() bool
func MouseEnabledFromEnv ¶
func MouseEnabledFromEnv() bool
Types ¶
type ActionReport ¶
type ActionRunner ¶
type ActionRunner func(ActionID) (ActionReport, error)
type ActionSpec ¶
type ActionSpec struct {
ID ActionID
Label string
Group string
ConfirmMessage string
PendingMessage string
PendingStatus string
DefaultStatus string
}
func (ActionSpec) RequiresConfirmation ¶
func (s ActionSpec) RequiresConfirmation() bool
type ClipboardWriter ¶
type ConfigManager ¶
type ConfigManager struct {
DefaultConfig func() configpkg.Config
SaveConfig func(string, configpkg.Config) error
ValidateConfig func(configpkg.Config) []configpkg.ValidationIssue
MarshalConfig func(configpkg.Config) ([]byte, error)
ManagedStackNeedsScaffold func(configpkg.Config) (bool, error)
ScaffoldManagedStack func(configpkg.Config, bool) (configpkg.ScaffoldResult, error)
}
type ConfigSourceState ¶
type ConfigSourceState string
const ( ConfigSourceLoaded ConfigSourceState = "loaded" ConfigSourceMissing ConfigSourceState = "missing" )
type Connection ¶
type DBShellLauncher ¶
type DBShellLauncher func(DBShellRequest) (tea.ExecCommand, error)
type DBShellRequest ¶
type DBShellRequest struct {
Service string
}
type DoctorCheck ¶
type HealthLine ¶
type LogWatchLauncher ¶
type LogWatchLauncher func(LogWatchRequest) (tea.ExecCommand, error)
type LogWatchRequest ¶
type LogWatchRequest struct {
Service string
}
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewActionModel ¶
func NewActionModel(loader Loader, runner ActionRunner) Model
func NewFullModel ¶
func NewFullModel(loader Loader, logWatchLauncher LogWatchLauncher, runner ActionRunner, configManager *ConfigManager) Model
func NewInspectionModel ¶
func NewInspectionModel(loader Loader, logWatchLauncher LogWatchLauncher, runner ActionRunner) Model
func (Model) QuitBlockedReason ¶
func (Model) WithAltScreen ¶
func (Model) WithHelpExpanded ¶
func (Model) WithProductivity ¶
func (m Model) WithProductivity(copyWriter ClipboardWriter, shellLauncher ServiceShellLauncher, dbShellLauncher DBShellLauncher) Model
func (Model) WithVersion ¶
type QuitBlockedMsg ¶
type QuitBlockedMsg struct {
Reason string
}
type Service ¶
type Service struct {
Name string
DisplayName string
Status string
ContainerName string
Image string
DataVolume string
Host string
ExternalPort int
InternalPort int
PortListening bool
PortConflict bool
Database string
MaintenanceDB string
Email string
MasterKey string
Token string
AccessKey string
SecretKey string
Username string
Password string
AppendOnly *bool
SavePolicy string
MaxMemoryPolicy string
VolumeSizeLimitMB int
ServerMode string
Endpoint string
URL string
DSN string
}
type ServiceShellLauncher ¶
type ServiceShellLauncher func(ServiceShellRequest) (tea.ExecCommand, error)
type ServiceShellRequest ¶
type ServiceShellRequest struct {
Service string
}
type Snapshot ¶
type Snapshot struct {
ConfigPath string
ConfigData configpkg.Config
ConfigSource ConfigSourceState
ConfigProblem string
ConfigIssues []configpkg.ValidationIssue
ConfigNeedsScaffold bool
ConfigScaffoldProblem string
StackName string
StackDir string
ComposePath string
Managed bool
WaitForServices bool
StartupTimeoutSec int
LoadedAt time.Time
ServiceError string
HealthError string
DoctorError string
Services []Service
Health []HealthLine
DoctorSummary DoctorSummary
DoctorChecks []DoctorCheck
Connections []Connection
ConnectText string
EnvExportText string
PortsText string
Stacks []StackProfile
}
Click to show internal directories.
Click to hide internal directories.