browser

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreationCommand string

CreationCommand stores the command to run after browser exits

Functions

func StartBrowser

func StartBrowser(cmd *cobra.Command, args []string)

StartBrowser is the entry point for the browser TUI

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents the TUI application state

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles all messages

func (Model) View

func (m Model) View() string

View renders the UI

type NavItem struct {
	Label   string
	Icon    string
	Product ProductType
	Path    string
}

Navigation items for the top bar

type ProductType

type ProductType int

ProductType represents a product category

const (
	ProductInstances ProductType = iota
	ProductKubernetes
	ProductManagedDatabases
	ProductManagedAnalytics
	ProductStorage
	ProductNetworks
	ProductProjects
)

type ViewMode

type ViewMode int

ViewMode represents the current view mode

const (
	ProjectSelectView  ViewMode = iota // Initial view to select a project
	TableView                          // List view for products
	DetailView                         // Detail view for a single item
	NodePoolsView                      // Node pools management view
	NodePoolDetailView                 // Detail view for a single node pool
	LoadingView
	ErrorView
	EmptyView                 // Empty list with creation prompt
	WizardView                // Multi-step wizard for resource creation
	DeleteConfirmView         // Confirmation dialog for deletion
	DebugView                 // Debug panel showing API requests
	KubeUpgradeView           // Kubernetes cluster upgrade selection
	KubePolicyEditView        // Kubernetes cluster policy edit
	KubeDeleteConfirmView     // Kubernetes cluster delete confirmation
	NodePoolScaleView         // Node pool scale view
	NodePoolDeleteConfirmView // Node pool delete confirmation
	KubeKubeconfigPickerView  // Directory picker for saving kubeconfig
	ComingSoonView            // Coming soon placeholder for unimplemented products
)

type WizardData

type WizardData struct {
	// contains filtered or unexported fields
}

WizardData holds the state for the creation wizard

type WizardStep

type WizardStep int

WizardStep represents the current step in the creation wizard

const (
	// Instance wizard steps
	WizardStepRegion WizardStep = iota
	WizardStepFlavor
	WizardStepImage
	WizardStepSSHKey
	WizardStepNetwork
	WizardStepFloatingIP // For private network without public network
	WizardStepName
	WizardStepConfirm
	// Kubernetes wizard steps (offset by 100 to avoid conflicts)
	KubeWizardStepRegion WizardStep = iota + 100
	KubeWizardStepVersion
	KubeWizardStepNetwork
	KubeWizardStepSubnet
	KubeWizardStepName
	KubeWizardStepOptions
	KubeWizardStepConfirm
	// Node pool wizard steps (offset by 200)
	NodePoolWizardStepFlavor WizardStep = iota + 200
	NodePoolWizardStepName
	NodePoolWizardStepSize
	NodePoolWizardStepOptions
	NodePoolWizardStepConfirm
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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