Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
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
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
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 (*Stack) AddChangeListener ¶ added in v0.0.53
func (s *Stack) AddChangeListener(listener func())
AddChangeListener adds a change listener
func (*Stack) GetCurrent ¶
GetCurrent returns the current view