ui

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	*tview.Flex
	// contains filtered or unexported fields
}

Header is the header of the Pipeline dashboard

func NewHeader added in v0.0.53

func NewHeader(clientset *kubernetes.Clientset, stack *Stack) (header *Header)

NewHeader creates header view

type ItemAddingListener added in v0.0.53

type ItemAddingListener func(string)

ItemAddingListener callback when adding an item

type Resource added in v0.0.53

type Resource interface {
	tview.Primitive

	GetKeyActions() actions.KeyActions
	AddKeyActions(actions.KeyActions)

	SetKind(string)
	GetKind() string
}

Resource represents a resource view

type ResourceList added in v0.0.53

type ResourceList struct {
	*tview.List
	// contains filtered or unexported fields
}

ResourceList represents a list of a Kubernetes resource

func NewResourceList added in v0.0.53

func NewResourceList(client dynamic.Interface, app *tview.Application, stack *Stack) *ResourceList

NewResourceList creates a list for Kubernetes resource

func (*ResourceList) Load added in v0.0.53

func (r *ResourceList) Load(ns string, resource schema.GroupVersionResource, labelSelector string)

Load loads the data

func (*ResourceList) PutItemAddingListener added in v0.0.53

func (r *ResourceList) PutItemAddingListener(listener ItemAddingListener)

PutItemAddingListener puts an ItemAddingListener

func (*ResourceList) Stop added in v0.0.53

func (r *ResourceList) Stop() *ResourceList

Stop stops reload the data

type ResourcePrimitive added in v0.0.53

type ResourcePrimitive struct {
	*tview.Grid
}

ResourcePrimitive represents a grid view

func (*ResourcePrimitive) AddKeyActions added in v0.0.53

func (r *ResourcePrimitive) AddKeyActions(actions.KeyActions)

AddKeyActions add key actions

func (*ResourcePrimitive) GetKeyActions added in v0.0.53

func (r *ResourcePrimitive) GetKeyActions() actions.KeyActions

GetKeyActions returns the key actions

func (*ResourcePrimitive) GetKind added in v0.0.53

func (r *ResourcePrimitive) GetKind() string

GetKind returns the kind

func (*ResourcePrimitive) SetKind added in v0.0.53

func (r *ResourcePrimitive) SetKind(string)

SetKind set the kind

type ResourceTable added in v0.0.53

type ResourceTable struct {
	*tview.Table
	// contains filtered or unexported fields
}

ResourceTable represents a table of a Kubernetes resource

func NewResourceTable added in v0.0.53

func NewResourceTable(client *rest.RESTClient, app *tview.Application, stack *Stack) *ResourceTable

NewResourceTable creates a table for Kubernetes resource

func (*ResourceTable) Load added in v0.0.53

func (t *ResourceTable) Load(ns, kind, labelSelector string)

Load loads the data of a Kubernetes resource

func (*ResourceTable) Stop added in v0.0.53

func (t *ResourceTable) Stop() *ResourceTable

Stop stops the refresh data action

type Stack

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

Stack is the stack of the views

func NewStack

func NewStack(app *tview.Application) *Stack

NewStack creates a new stack instance

func (*Stack) AddChangeListener added in v0.0.53

func (s *Stack) AddChangeListener(listener func())

AddChangeListener adds a change listener

func (*Stack) GetCurrent

func (s *Stack) GetCurrent() tview.Primitive

GetCurrent returns the current view

func (*Stack) Pop

func (s *Stack) Pop() tview.Primitive

Pop pops a view and show the preview one

func (*Stack) Push

func (s *Stack) Push(view tview.Primitive)

Push pushes a view and show it

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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