Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentRenderer ¶
type DeploymentRenderer struct{}
DeploymentRenderer implements the Renderer interface for use in tables
func NewDeploymentRenderer ¶
func NewDeploymentRenderer() *DeploymentRenderer
NewDeploymentRenderer returns a new DeploymentRenderer to be injected into the new table
func (*DeploymentRenderer) Cursor ¶
func (r *DeploymentRenderer) Cursor(s *k.State) int
Cursor returns the cursor position
func (*DeploymentRenderer) Headers ¶
func (r *DeploymentRenderer) Headers(s *k.State) []string
Headers returns the headers
func (*DeploymentRenderer) Lines ¶
func (r *DeploymentRenderer) Lines(s *k.State) [][]string
Lines returns the list of pods for table rendering
type NamespaceRenderer ¶
type NamespaceRenderer struct{}
NamespaceRenderer implements the Renderer interface for use in tables
func NewNamespaceRenderer ¶
func NewNamespaceRenderer() *NamespaceRenderer
NewNamespaceRenderer returns a new NamespaceRenderer to be injected into the new table
func (*NamespaceRenderer) Cursor ¶
func (r *NamespaceRenderer) Cursor(s *k.State) int
Cursor returns the cursor position
func (*NamespaceRenderer) Headers ¶
func (r *NamespaceRenderer) Headers(s *k.State) []string
Headers returns the headers
func (*NamespaceRenderer) Lines ¶
func (r *NamespaceRenderer) Lines(s *k.State) [][]string
Lines returns the list of namespaces for table rendering
type PodRenderer ¶
type PodRenderer struct{}
PodRenderer implements the Renderer interface for use in tables
func NewPodRenderer ¶
func NewPodRenderer() *PodRenderer
NewPodRenderer returns a new PodRenderer to be injected into the new table
func (*PodRenderer) Cursor ¶
func (r *PodRenderer) Cursor(s *k.State) int
Cursor returns the cursor position
func (*PodRenderer) Headers ¶
func (r *PodRenderer) Headers(s *k.State) []string
Headers returns the headers
func (*PodRenderer) Lines ¶
func (r *PodRenderer) Lines(s *k.State) [][]string
Lines returns the list of pods for table rendering
type Renderer ¶
type Renderer interface { Lines(*k.State) [][]string Cursor(*k.State) int Headers(*k.State) []string Origin(*k.State, *gocui.View) (int, int) }
Renderer contains the generic (!) methods needed