contentpackage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentPackagesMsg

type ContentPackagesMsg []api.ContentPackage

type Item

type Item api.ContentPackage

func (Item) FilterValue

func (item Item) FilterValue() string

type ItemDelegate

type ItemDelegate struct {
	// contains filtered or unexported fields
}

func NewContentPackageItemDelegate

func NewContentPackageItemDelegate() ItemDelegate

func (ItemDelegate) Height

func (ItemDelegate) Height() int

func (ItemDelegate) Render

func (itemDelegate ItemDelegate) Render(writer io.Writer, model list.Model, index int, listItem list.Item)

func (ItemDelegate) Spacing

func (ItemDelegate) Spacing() int

func (ItemDelegate) Update

func (ItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New() *Model

func (*Model) ContentPackagesCmd

func (*Model) ContentPackagesCmd() tea.Msg

func (*Model) Init

func (model *Model) Init() tea.Cmd

func (*Model) SelectedPackageAttributes

func (model *Model) SelectedPackageAttributes() []attribute.Attribute

func (*Model) SelectedPackageID

func (model *Model) SelectedPackageID() *string

func (*Model) SelectedPackageWebUIURL added in v0.2.0

func (model *Model) SelectedPackageWebUIURL() *url.URL

func (*Model) Update

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

func (*Model) View

func (model *Model) View() string

Jump to

Keyboard shortcuts

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