localservices

package
v1.33.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalServicesKeys = keyMap{
	Up: key.NewBinding(
		key.WithKeys("up"),
		key.WithHelp("↑", "scroll table up"),
	),
	Down: key.NewBinding(
		key.WithKeys("down"),
		key.WithHelp("↓", "scroll table down"),
	),
	Quit: key.NewBinding(
		key.WithKeys("esc", "ctrl+c"),
		key.WithHelp("esc", "quit"),
	),
}

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {
	Error error
}

type FunctionsReadyMessage

type FunctionsReadyMessage struct {
	LocalServices run.LocalServices
	Functions     []*run.Function
}

type FunctionsStartedMessage

type FunctionsStartedMessage struct{}

type Model

type Model struct {
	Ready      FunctionsReadyMessage
	StackState *run.RunStackState
	Error      error
	Warnings   []string
	// contains filtered or unexported fields
}

func New

func New(args ModelArgs) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type ModelArgs

type ModelArgs struct {
	Envs      map[string]string
	Project   *project.Project
	Sub       chan tea.Msg
	NoBrowser bool
}

type QuitMessage

type QuitMessage struct{}

type StackUpdateMessage

type StackUpdateMessage struct {
	StackState *run.RunStackState
}

type StartingFunctionsMessage

type StartingFunctionsMessage struct{}

type WarningMessage

type WarningMessage struct {
	Warning string
}

Jump to

Keyboard shortcuts

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