Versions in this module Expand all Collapse all v1 v1.1.2 Jan 31, 2025 v1.1.1 Jan 30, 2025 Changes in this version + func CancelDeploy(ctx context.Context, input DeployCancelInput) (string, error) + func CancelJob(ctx context.Context, input JobCancelInput) (string, error) + func CreateDeploy(ctx context.Context, input types.DeployInput) (*client.Deploy, error) + func CreateJob(ctx context.Context, input JobCreateInput) (*clientjob.Job, error) + func DeployCreateConfirm(ctx context.Context, input types.DeployInput) func() (string, error) + func LoadDeployList(ctx context.Context, input DeployListInput, cur client.Cursor) (client.Cursor, []*client.Deploy, error) + func LoadEnvironments(ctx context.Context, in EnvironmentInput) ([]*client.Environment, error) + func LoadJobListData(ctx context.Context, input JobListInput, cur client.Cursor) (client.Cursor, []*clientjob.Job, error) + func LoadLogData(ctx context.Context, in LogInput) (*tui.LogResult, error) + func LoadProjects(ctx context.Context, _ ProjectInput) ([]*client.Project, error) + func LoadResourceData(ctx context.Context, in ListResourceInput) ([]resource.Resource, error) + func NonInteractiveLogin(cmd *cobra.Command) error + func RequireConfirmationForCancelDeploy(ctx context.Context, input DeployCancelInput) (string, error) + func RequireConfirmationForCancelJob(ctx context.Context, input JobCancelInput) (string, error) + func RestartResource(ctx context.Context, input RestartInput) (string, error) + func SelectWorkspace(ctx context.Context, input GetWorkspaceInput) (*client.Owner, error) + func WaitForDeploy(ctx context.Context, serviceID, deployID string) (*client.Deploy, error) + type DeployCancelInput struct + DeployID string + ServiceID string + type DeployCancelView struct + func NewDeployCancelView(ctx context.Context, input DeployCancelInput) *DeployCancelView + func (v *DeployCancelView) Init() tea.Cmd + func (v *DeployCancelView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *DeployCancelView) View() string + type DeployCreateView struct + func NewDeployCreateView(ctx context.Context, input types.DeployInput, ...) *DeployCreateView + func (v *DeployCreateView) Init() tea.Cmd + func (v *DeployCreateView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *DeployCreateView) View() string + type DeployListInput struct + ServiceID string + type DeployListView struct + func NewDeployListView(ctx context.Context, input DeployListInput, ...) *DeployListView + func (v *DeployListView) Init() tea.Cmd + func (v *DeployListView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *DeployListView) View() string + type EnvironmentInput struct + ProjectID string + func (e EnvironmentInput) ToParams() *client.ListEnvironmentsParams + type EnvironmentList struct + func NewEnvironmentList(ctx context.Context, input EnvironmentInput, ...) *EnvironmentList + func (pl *EnvironmentList) Init() tea.Cmd + func (pl *EnvironmentList) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pl *EnvironmentList) View() string + type FooterModel struct + func (f *FooterModel) Init() tea.Cmd + func (f *FooterModel) SetHeight(height int) + func (f *FooterModel) SetWidth(width int) + func (f *FooterModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (f *FooterModel) View() string + type GetWorkspaceInput struct + IDOrName string + type JobCancelInput struct + JobID string + ServiceID string + type JobCancelView struct + func NewJobCancelView(ctx context.Context, input JobCancelInput) *JobCancelView + func (v *JobCancelView) Init() tea.Cmd + func (v *JobCancelView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *JobCancelView) View() string + type JobCreateInput struct + PlanID *string + ServiceID string + StartCommand *string + type JobCreateView struct + func NewJobCreateView(ctx context.Context, input *JobCreateInput, cobraCmd *cobra.Command, ...) *JobCreateView + func (v *JobCreateView) Init() tea.Cmd + func (v *JobCreateView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *JobCreateView) View() string + type JobListInput struct + ServiceID string + type JobListView struct + func NewJobListView(ctx context.Context, input *JobListInput, ...) *JobListView + func (v *JobListView) Init() tea.Cmd + func (v *JobListView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *JobListView) View() string + type ListResourceInput struct + EnvironmentIDs []string + IncludePreviews bool + Project *client.Project + func DefaultListResourceInput(ctx context.Context) (ListResourceInput, error) + func (l ListResourceInput) ToParams() resource.ResourceParams + type ListWorkspaceInput struct + type LogInput struct + Direction string + EndTime *command.TimeOrRelative + Host []string + Instance []string + Level []string + Limit int + ListResourceInput ListResourceInput + Method []string + Path []string + ResourceIDs []string + StartTime *command.TimeOrRelative + StatusCode []string + Tail bool + Text []string + Type []string + func (l LogInput) ToParam() (*client.ListLogsParams, error) + type LoginView struct + func NewLoginView(ctx context.Context) *LoginView + func (l *LoginView) Init() tea.Cmd + func (l *LoginView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (l *LoginView) View() string + type LogsView struct + func NewLogsView(ctx context.Context, logsCmd *cobra.Command, ...) *LogsView + func (v *LogsView) Init() tea.Cmd + func (v *LogsView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *LogsView) View() string + type OnSelectFunc func(context.Context, *client.Project) tea.Cmd + type OnSelectFuncT func(context.Context, T) tea.Cmd + type PSQLInput struct + Args []string + EnvironmentIDs []string + PostgresID string + Project *client.Project + Tool PSQLTool + type PSQLTool string + const PGCLI + const PSQL + type PSQLView struct + func NewPSQLView(ctx context.Context, input *PSQLInput, ...) *PSQLView + func (v *PSQLView) Init() tea.Cmd + func (v *PSQLView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *PSQLView) View() string + type PaletteCommand struct + Action func(ctx context.Context, args []string) tea.Cmd + Description string + Name string + type PaletteView struct + func NewPaletteView(ctx context.Context, commands []PaletteCommand) *PaletteView + func (pv *PaletteView) Init() tea.Cmd + func (pv *PaletteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pv *PaletteView) View() string + type PostgresInput struct + EnvironmentIDs []string + type PostgresList struct + func NewPostgresList(ctx context.Context, selectFunc OnSelectFuncT[*postgres.Model], ...) *PostgresList + func (pl *PostgresList) Init() tea.Cmd + func (pl *PostgresList) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pl *PostgresList) View() string + type ProjectFilterView struct + func (v *ProjectFilterView) Init() tea.Cmd + func (v *ProjectFilterView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *ProjectFilterView) View() string + type ProjectInput struct + type ProjectList struct + func NewProjectFilterView(ctx context.Context, onSelect func(context.Context, *client.Project) tea.Cmd) *ProjectList + func NewProjectList(ctx context.Context, selectEnvironment OnSelectFunc, ...) *ProjectList + func (pl *ProjectList) Init() tea.Cmd + func (pl *ProjectList) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pl *ProjectList) View() string + type RedisCLIInput struct + Args []string + EnvironmentIDs []string + Project *client.Project + RedisID string + type RedisCLIView struct + func NewRedisCLIView(ctx context.Context, input *RedisCLIInput, ...) *RedisCLIView + func (v *RedisCLIView) Init() tea.Cmd + func (v *RedisCLIView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *RedisCLIView) View() string + type RedisInput struct + EnvironmentIDs []string + type RedisList struct + func NewRedisList(ctx context.Context, selectFunc OnSelectFuncT[*redis.Model], input RedisInput, ...) *RedisList + func (pl *RedisList) Init() tea.Cmd + func (pl *RedisList) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pl *RedisList) View() string + type ResourceView struct + func NewResourceView(ctx context.Context, input ListResourceInput, ...) *ResourceView + func (v *ResourceView) Init() tea.Cmd + func (v *ResourceView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *ResourceView) View() string + type ResourceWithPaletteView struct + func NewResourceWithPaletteView(ctx context.Context, input ListResourceInput, ...) *ResourceWithPaletteView + func (v *ResourceWithPaletteView) Init() tea.Cmd + func (v *ResourceWithPaletteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *ResourceWithPaletteView) View() string + type RestartInput struct + ResourceID string + type RestartView struct + func NewRestartView(ctx context.Context, input RestartInput, logCmd func() tea.Cmd) *RestartView + func (v *RestartView) Init() tea.Cmd + func (v *RestartView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *RestartView) View() string + type SSHInput struct + Args []string + EnvironmentIDs []string + Project *client.Project + ServiceID string + type SSHView struct + func NewSSHView(ctx context.Context, input *SSHInput, opts ...tui.TableOption[*service.Model]) *SSHView + func (v *SSHView) Init() tea.Cmd + func (v *SSHView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *SSHView) View() string + type ServiceInput struct + EnvironmentIDs []string + IncludePreviews bool + Project *client.Project + Types []client.ServiceType + type ServiceList struct + func NewServiceList(ctx context.Context, in ServiceInput, ...) *ServiceList + func (pl *ServiceList) Init() tea.Cmd + func (pl *ServiceList) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (pl *ServiceList) View() string + type WorkspaceView struct + func NewWorkspaceView(ctx context.Context, input ListWorkspaceInput) *WorkspaceView + func (v *WorkspaceView) Init() tea.Cmd + func (v *WorkspaceView) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (v *WorkspaceView) View() string