lambda

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LCInitStep             = 0
	LCCNameStep            = iota
	LCRuntimesLoadingStep  = iota
	LCRuntimeSelectionStep = iota
	LCTypeStep             = iota
	LCLoadingStep          = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LambdaCreateModel

type LambdaCreateModel struct {
	Name          string
	LambdaType    string
	Path          string
	Runtime       *api.Runtime
	LambdaCreator LambdaCreator
	RuntimeLister runtime.RuntimeLister
	// contains filtered or unexported fields
}

func InitLambdaCreateModel

func InitLambdaCreateModel(m *LambdaCreateModel) *LambdaCreateModel

func (LambdaCreateModel) GetLambda

func (m LambdaCreateModel) GetLambda() *api.Lambda

func (LambdaCreateModel) Init

func (m LambdaCreateModel) Init() tea.Cmd

func (LambdaCreateModel) Update

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

func (LambdaCreateModel) View

func (m LambdaCreateModel) View() string

type LambdaCreateResponse

type LambdaCreateResponse struct {
	Lambda *api.Lambda
	Err    error
}

type LambdaCreateResponseMsg

type LambdaCreateResponseMsg struct {
	Resp *LambdaCreateResponse
}

type LambdaCreator

type LambdaCreator interface {
	Create(name string, runtime string, lambdaType string, path string) tea.Cmd
}

type LambdaDestroyModel

type LambdaDestroyModel struct {
	LambdaID  string
	Destroyer LambdaDestroyer
	// contains filtered or unexported fields
}

func InitLambdaDestroyModel

func InitLambdaDestroyModel(m *LambdaDestroyModel) *LambdaDestroyModel

func (LambdaDestroyModel) Init

func (m LambdaDestroyModel) Init() tea.Cmd

func (LambdaDestroyModel) Update

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

func (LambdaDestroyModel) View

func (m LambdaDestroyModel) View() string

type LambdaDestroyResponse

type LambdaDestroyResponse struct {
	Err error
}

type LambdaDestroyResponseMsg

type LambdaDestroyResponseMsg struct {
	Resp *LambdaDestroyResponse
}

type LambdaDestroyer

type LambdaDestroyer interface {
	Destroy(id string) tea.Cmd
}

type LambdaListModel

type LambdaListModel struct {
	Lister LambdaLister
	// contains filtered or unexported fields
}

func InitLambdaListModel

func InitLambdaListModel(m *LambdaListModel) *LambdaListModel

func (LambdaListModel) Init

func (m LambdaListModel) Init() tea.Cmd

func (LambdaListModel) Update

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

func (LambdaListModel) View

func (m LambdaListModel) View() string

type LambdaListResponse

type LambdaListResponse struct {
	Lambdas []api.Lambda
	Err     error
}

type LambdaListResponseMsg

type LambdaListResponseMsg struct {
	Resp *LambdaListResponse
}

type LambdaLister

type LambdaLister interface {
	List() tea.Cmd
}

type LambdaStartModel

type LambdaStartModel struct {
	LambdaID string
	Starter  LambdaStarter
	// contains filtered or unexported fields
}

func InitLambdaStartModel

func InitLambdaStartModel(m *LambdaStartModel) *LambdaStartModel

func (LambdaStartModel) Init

func (m LambdaStartModel) Init() tea.Cmd

func (LambdaStartModel) Update

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

func (LambdaStartModel) View

func (m LambdaStartModel) View() string

type LambdaStartResponse

type LambdaStartResponse struct {
	Lambda *api.Lambda
	Err    error
}

type LambdaStartResponseMsg

type LambdaStartResponseMsg struct {
	Resp *LambdaStartResponse
}

type LambdaStarter

type LambdaStarter interface {
	Start(id string) tea.Cmd
}

Jump to

Keyboard shortcuts

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