runtime

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RCInitStep    = 0
	RCNameStep    = iota
	RCLoadingStep = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeCreateModel

type RuntimeCreateModel struct {
	Name    string
	Path    string
	Creator RuntimeCreator
	// contains filtered or unexported fields
}

func InitRuntimeCreateModel

func InitRuntimeCreateModel(m *RuntimeCreateModel) *RuntimeCreateModel

func (RuntimeCreateModel) Init

func (m RuntimeCreateModel) Init() tea.Cmd

func (RuntimeCreateModel) Update

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

func (RuntimeCreateModel) View

func (m RuntimeCreateModel) View() string

type RuntimeCreateResponse

type RuntimeCreateResponse struct {
	Runtime *api.Runtime
	Err     error
}

type RuntimeCreateResponseMsg

type RuntimeCreateResponseMsg struct {
	Resp *RuntimeCreateResponse
}

type RuntimeCreator

type RuntimeCreator interface {
	Create(name string, path string) tea.Cmd
}

type RuntimeListModel

type RuntimeListModel struct {
	Lister RuntimeLister
	// contains filtered or unexported fields
}

func InitRuntimeListModel

func InitRuntimeListModel(m *RuntimeListModel) *RuntimeListModel

func (RuntimeListModel) Init

func (m RuntimeListModel) Init() tea.Cmd

func (RuntimeListModel) Update

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

func (RuntimeListModel) View

func (m RuntimeListModel) View() string

type RuntimeListResponse

type RuntimeListResponse struct {
	Runtimes []api.Runtime
	Err      error
}

type RuntimeListResponseMsg

type RuntimeListResponseMsg struct {
	Resp *RuntimeListResponse
}

type RuntimeLister

type RuntimeLister interface {
	List() tea.Cmd
}

Jump to

Keyboard shortcuts

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