Documentation ¶
Index ¶
- func FindPod(items []list.Item, search Item) int
- func New() list.Model
- func Route(cmds ...tea.Cmd) []tea.Cmd
- type AddedPodMsg
- type ErrorMsg
- type Item
- type ItemDelegate
- type ListMsg
- type Message
- type MessageHandler
- func (handler *MessageHandler) CheckConditionsThatApply(namespace string) tea.Cmd
- func (handler *MessageHandler) GetPods(namespace string) tea.Cmd
- func (handler *MessageHandler) NextEvent() tea.Msg
- func (handler *MessageHandler) RunComand(command api.INamespaceOperation, namespace string) tea.Cmd
- func (handler *MessageHandler) StopWatching()
- func (handler *MessageHandler) WatchPods(ctx context.Context, resourceVersion string, namespace string) tea.Cmd
- type ModifiedPodMsg
- type NextEventMsg
- type Property
- type RemovedPodMsg
- type RoutedMsg
- type WatchingPodsMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddedPodMsg ¶
type AddedPodMsg struct {
Pod Item
}
type Item ¶
func LoadExtensions ¶
func LoadExtensions(extensions []api.IPodExtension, res []v1.Pod) []Item
func (Item) FilterValue ¶
func (*Item) LoadCustomProperties ¶
func (n *Item) LoadCustomProperties(properties ...api.IPodExtension)
type ItemDelegate ¶
type ItemDelegate struct {
IsFocused bool
}
func (ItemDelegate) Height ¶
func (n ItemDelegate) Height() int
func (ItemDelegate) Spacing ¶
func (n ItemDelegate) Spacing() int
type MessageHandler ¶
type MessageHandler struct { Extensions []api.IPodExtension AvailableNamespaceOperations []api.INamespaceOperation // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(service k8mpasskube.IPodService, extensions []api.IPodExtension, ops []api.INamespaceOperation) *MessageHandler
func (*MessageHandler) CheckConditionsThatApply ¶
func (handler *MessageHandler) CheckConditionsThatApply(namespace string) tea.Cmd
func (*MessageHandler) NextEvent ¶
func (handler *MessageHandler) NextEvent() tea.Msg
func (*MessageHandler) RunComand ¶
func (handler *MessageHandler) RunComand(command api.INamespaceOperation, namespace string) tea.Cmd
func (*MessageHandler) StopWatching ¶
func (handler *MessageHandler) StopWatching()
type ModifiedPodMsg ¶
type ModifiedPodMsg struct {
Pod Item
}
type NextEventMsg ¶
type NextEventMsg struct{}
type RemovedPodMsg ¶
type RemovedPodMsg struct {
Pod Item
}
type WatchingPodsMsg ¶
type WatchingPodsMsg struct{}
Click to show internal directories.
Click to hide internal directories.