endpoint

package
v0.0.0-...-e5bbcc4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ECInitStep            = 0
	ECNameStep            = iota
	ECLambdasLoadingStep  = iota
	ECLambdaSelectionStep = iota
	ECEndpointStep        = iota
	ECLoadingStep         = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointCreateModel

type EndpointCreateModel struct {
	Name            string
	Endpoint        string
	Lambda          *api.Lambda
	EndpointCreator EndpointCreator
	LambdaLister    lambda.LambdaLister
	// contains filtered or unexported fields
}

func InitEndpointCreateModel

func InitEndpointCreateModel(m *EndpointCreateModel) *EndpointCreateModel

func (EndpointCreateModel) Init

func (m EndpointCreateModel) Init() tea.Cmd

func (EndpointCreateModel) Update

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

func (EndpointCreateModel) View

func (m EndpointCreateModel) View() string

type EndpointCreateResponse

type EndpointCreateResponse struct {
	Endpoint *api.Endpoint
	Err      error
}

type EndpointCreateResponseMsg

type EndpointCreateResponseMsg struct {
	Resp *EndpointCreateResponse
}

type EndpointCreator

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

type EndpointListModel

type EndpointListModel struct {
	Lister EndpointLister
	// contains filtered or unexported fields
}

func InitEndpointListModel

func InitEndpointListModel(m *EndpointListModel) *EndpointListModel

func (EndpointListModel) Init

func (m EndpointListModel) Init() tea.Cmd

func (EndpointListModel) Update

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

func (EndpointListModel) View

func (m EndpointListModel) View() string

type EndpointListResponse

type EndpointListResponse struct {
	Endpoints []api.Endpoint
	Err       error
}

type EndpointListResponseMsg

type EndpointListResponseMsg struct {
	Resp *EndpointListResponse
}

type EndpointLister

type EndpointLister interface {
	List() tea.Cmd
}

Jump to

Keyboard shortcuts

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