component

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TreeNodeStatusLoading TreeNodeStatus = "loading"
	TreeNodeStatusIdle                   = "idle"
	TreeNodeStatusUpdate                 = "update"
	TreeNodeStatusCreate                 = "create"
	TreeNodeStatusDelete                 = "delete"
	TreeNodeStatusDone                   = "done"
	TreeNodeStatusUnknown                = "unknown"
	TreeNodeStatusEmpty                  = ""
)

Variables

View Source
var (
	ColorMain = ColorCyan500

	ColorCyan400 = lipgloss.Color("#7df2fe")
	ColorCyan500 = lipgloss.Color("#02daf0")
	ColorCyan600 = lipgloss.Color("#02b6c9")

	ColorGreen400 = lipgloss.Color("#9afcb3")
	ColorGreen500 = lipgloss.Color("#50fa7b")
	ColorGreen600 = lipgloss.Color("#049529")

	ColorGrey400 = lipgloss.Color("#a6a6a6")
	ColorGrey500 = lipgloss.Color("#808080")
	ColorGrey600 = lipgloss.Color("#5a5a5a")

	ColorRed400 = lipgloss.Color("#ff8080")
	ColorRed500 = lipgloss.Color("#ff3333")
	ColorRed600 = lipgloss.Color("#e60000")

	ColorOrange400 = lipgloss.Color("#ffdc9d")
	ColorOrange500 = lipgloss.Color("#ffa500")
	ColorOrange600 = lipgloss.Color("#eb9800")

	ColorPurple500 = lipgloss.Color("#a6a6ed")

	Space100 = 1
	Space200 = 2
	Space300 = 3
	Space400 = 4
	Space500 = 5
	Space600 = 6
	Space700 = 7
	Space800 = 8
)

Functions

This section is empty.

Types

type DetailModel

type DetailModel struct {
	Root    *DetailNode
	Logger  hclog.Logger
	Spinner spinner.Model
}

func (*DetailModel) Init

func (m *DetailModel) Init() tea.Cmd

func (*DetailModel) Update

func (m *DetailModel) Update(msg tea.Msg) (*DetailModel, tea.Cmd)

func (*DetailModel) View

func (m *DetailModel) View() string

type DetailNode

type DetailNode struct {
	Status TreeNodeStatus
	Name   string
	Diff   diff.Type
	Kind   string

	Entries []*DetailNode
}

type Resource

type Resource struct {
}

func (*Resource) Init

func (r *Resource) Init() tea.Cmd

func (*Resource) Update

func (r *Resource) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Resource) View

func (r *Resource) View() string

type TreeModel

type TreeModel struct {
	Root    *TreeNode
	Spinner spinner.Model
	Logger  hclog.Logger
}

func (*TreeModel) Init

func (m *TreeModel) Init() tea.Cmd

func (*TreeModel) Update

func (m *TreeModel) Update(msg tea.Msg) (*TreeModel, tea.Cmd)

func (*TreeModel) View

func (m *TreeModel) View() string

type TreeNode

type TreeNode struct {
	Status  TreeNodeStatus
	Name    string
	Kind    string
	Entries []*TreeNode
}

type TreeNodeStatus

type TreeNodeStatus string

type UpdateDetailStatus

type UpdateDetailStatus struct {
	Name     string
	Selector selector.Selector
	Status   TreeNodeStatus
	Diff     diff.Type
}

type UpdateTreeNodeMsg

type UpdateTreeNodeMsg struct {
	Selector selector.Selector
	Status   TreeNodeStatus
}

Jump to

Keyboard shortcuts

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