Documentation ¶
Index ¶
- Constants
- Variables
- func DismissDrain(v ResourceViewer, p *ui.Pages)
- func DismissPortForwards(v ResourceViewer, p *ui.Pages)
- func ShowDrain(view ResourceViewer, path string, defaults dao.DrainOptions, okFn DrainFunc)
- func ShowPortForwards(v ResourceViewer, path string, ports port.ContainerPortSpecs, ...)
- type ActionExtender
- type Alias
- type App
- func (a *App) ActiveView() model.Component
- func (a *App) BailOut()
- func (a *App) ClearStatus(flash bool)
- func (a *App) ConOK() bool
- func (a *App) Halt()
- func (a *App) Init(version string, rate int) error
- func (a *App) IsBenchmarking() bool
- func (a *App) PrevCmd(evt *tcell.EventKey) *tcell.EventKey
- func (a *App) Resume()
- func (a *App) Run() error
- func (a *App) Status(l model.FlashLevel, msg string)
- type Benchmark
- type BindKeysFunc
- type BoostActionsFunc
- type Browser
- func (b *Browser) Aliases() []string
- func (b *Browser) BufferActive(state bool, k model.BufferKind)
- func (b *Browser) BufferChanged(_, _ string)
- func (b *Browser) BufferCompleted(text, _ string)
- func (b *Browser) GetTable() *Table
- func (b *Browser) InCmdMode() bool
- func (b *Browser) Init(ctx context.Context) error
- func (b *Browser) Name() string
- func (b *Browser) SetContextFn(f ContextFunc)
- func (b *Browser) SetInstance(path string)
- func (b *Browser) Start()
- func (b *Browser) Stop()
- func (b *Browser) TableDataChanged(data render.TableData)
- func (b *Browser) TableLoadFailed(err error)
- type ClusterInfo
- type Command
- type ConfigMap
- type Container
- type Context
- type ContextFunc
- type Cow
- func (c *Cow) Actions() ui.KeyActions
- func (c *Cow) ExtraHints() map[string]string
- func (c *Cow) Hints() model.MenuHints
- func (*Cow) InCmdMode() bool
- func (c *Cow) Init(_ context.Context) error
- func (c *Cow) Name() string
- func (c *Cow) Start()
- func (c *Cow) Stop()
- func (c *Cow) StylesChanged(s *config.Styles)
- type CronJob
- type DaemonSet
- type Deploy
- type Details
- func (d *Details) Actions() ui.KeyActions
- func (d *Details) BufferActive(state bool, k model.BufferKind)
- func (d *Details) BufferChanged(_, _ string)
- func (d *Details) BufferCompleted(text, _ string)
- func (d *Details) ExtraHints() map[string]string
- func (d *Details) Hints() model.MenuHints
- func (d *Details) InCmdMode() bool
- func (d *Details) Init(_ context.Context) error
- func (d *Details) Name() string
- func (d *Details) SetSubject(s string)
- func (d *Details) Start()
- func (d *Details) Stop()
- func (d *Details) StylesChanged(s *config.Styles)
- func (d *Details) TextChanged(lines []string)
- func (d *Details) TextFiltered(lines []string, matches fuzzy.Matches)
- func (d *Details) Update(buff string) *Details
- type Dir
- type DrainFunc
- type EnterFunc
- type Env
- type EnvFunc
- type Event
- type Graphable
- type Group
- type Helm
- type Help
- type HelpFunc
- type Hinter
- type ImageExtender
- type Job
- type LiveView
- func (v *LiveView) Actions() ui.KeyActions
- func (v *LiveView) BufferActive(state bool, k model.BufferKind)
- func (v *LiveView) BufferChanged(_, _ string)
- func (v *LiveView) BufferCompleted(text, _ string)
- func (v *LiveView) ExtraHints() map[string]string
- func (v *LiveView) Hints() model.MenuHints
- func (v *LiveView) InCmdMode() bool
- func (v *LiveView) Init(_ context.Context) error
- func (v *LiveView) Name() string
- func (v *LiveView) ResourceChanged(lines []string, matches fuzzy.Matches)
- func (v *LiveView) ResourceFailed(err error)
- func (v *LiveView) Start()
- func (v *LiveView) Stop()
- func (v *LiveView) StylesChanged(s *config.Styles)
- type Log
- func (l *Log) BufferActive(state bool, k model.BufferKind)
- func (l *Log) BufferChanged(_, _ string)
- func (l *Log) BufferCompleted(text, _ string)
- func (l *Log) ExtraHints() map[string]string
- func (l *Log) Flush(lines [][]byte)
- func (l *Log) GetModel() *model.Log
- func (l *Log) Hints() model.MenuHints
- func (l *Log) InCmdMode() bool
- func (l *Log) Indicator() *LogIndicator
- func (l *Log) Init(ctx context.Context) (err error)
- func (l *Log) LogCanceled()
- func (l *Log) LogChanged(lines [][]byte)
- func (l *Log) LogCleared()
- func (l *Log) LogFailed(err error)
- func (l *Log) LogResume()
- func (l *Log) LogStop()
- func (l *Log) Logs() *Logger
- func (l *Log) Name() string
- func (l *Log) SaveCmd(*tcell.EventKey) *tcell.EventKey
- func (l *Log) SendKeys(kk ...tcell.Key)
- func (l *Log) SendStrokes(s string)
- func (l *Log) Start()
- func (l *Log) Stop()
- func (l *Log) StylesChanged(s *config.Styles)
- type LogIndicator
- func (l *LogIndicator) AutoScroll() bool
- func (l *LogIndicator) FullScreen() bool
- func (l *LogIndicator) Refresh()
- func (l *LogIndicator) StylesChanged(styles *config.Styles)
- func (l *LogIndicator) TextWrap() bool
- func (l *LogIndicator) Timestamp() bool
- func (l *LogIndicator) ToggleAllContainers()
- func (l *LogIndicator) ToggleAutoScroll()
- func (l *LogIndicator) ToggleFullScreen()
- func (l *LogIndicator) ToggleTextWrap()
- func (l *LogIndicator) ToggleTimestamp()
- type LogOptionsFunc
- type LogViewer
- type Logger
- func (l *Logger) Actions() ui.KeyActions
- func (l *Logger) BufferActive(state bool, k model.BufferKind)
- func (l *Logger) BufferChanged(_, _ string)
- func (l *Logger) BufferCompleted(_, _ string)
- func (l *Logger) ExtraHints() map[string]string
- func (l *Logger) Hints() model.MenuHints
- func (l *Logger) Init(_ context.Context) error
- func (l *Logger) Name() string
- func (l *Logger) SetSubject(s string)
- func (l *Logger) Start()
- func (l *Logger) Stop()
- func (l *Logger) StylesChanged(s *config.Styles)
- type LogsExtender
- type MetaViewer
- type MetaViewers
- type Namespace
- type Node
- type PageStack
- type PersistentVolumeClaim
- type Picker
- type Pod
- type Policy
- type Popeye
- type PortForward
- type PortForwardCB
- type PortForwardExtender
- type Pulse
- func (p *Pulse) Actions() ui.KeyActions
- func (p *Pulse) AddBindKeysFn(BindKeysFunc)
- func (p *Pulse) App() *App
- func (p *Pulse) ExtraHints() map[string]string
- func (p *Pulse) GVR() client.GVR
- func (p *Pulse) GetTable() *Table
- func (p *Pulse) Hints() model.MenuHints
- func (*Pulse) InCmdMode() bool
- func (p *Pulse) Init(ctx context.Context) error
- func (p *Pulse) Name() string
- func (p *Pulse) PulseChanged(c *health.Check)
- func (p *Pulse) PulseFailed(err error)
- func (p *Pulse) Refresh()
- func (p *Pulse) SetContextFn(ContextFunc)
- func (p *Pulse) SetEnvFn(EnvFunc)
- func (p *Pulse) SetInstance(string)
- func (p *Pulse) Start()
- func (p *Pulse) Stop()
- func (p *Pulse) StylesChanged(s *config.Styles)
- type Rbac
- type Reference
- type ReplicaSet
- type ResourceViewer
- func NewAlias(gvr client.GVR) ResourceViewer
- func NewBenchmark(gvr client.GVR) ResourceViewer
- func NewBrowser(gvr client.GVR) ResourceViewer
- func NewConfigMap(gvr client.GVR) ResourceViewer
- func NewContainer(gvr client.GVR) ResourceViewer
- func NewContext(gvr client.GVR) ResourceViewer
- func NewCronJob(gvr client.GVR) ResourceViewer
- func NewDaemonSet(gvr client.GVR) ResourceViewer
- func NewDeploy(gvr client.GVR) ResourceViewer
- func NewDir(path string) ResourceViewer
- func NewEvent(gvr client.GVR) ResourceViewer
- func NewGroup(gvr client.GVR) ResourceViewer
- func NewHelm(gvr client.GVR) ResourceViewer
- func NewImageExtender(r ResourceViewer) ResourceViewer
- func NewJob(gvr client.GVR) ResourceViewer
- func NewLogsExtender(v ResourceViewer, f LogOptionsFunc) ResourceViewer
- func NewNamespace(gvr client.GVR) ResourceViewer
- func NewNode(gvr client.GVR) ResourceViewer
- func NewPersistentVolumeClaim(gvr client.GVR) ResourceViewer
- func NewPod(gvr client.GVR) ResourceViewer
- func NewPopeye(gvr client.GVR) ResourceViewer
- func NewPortForward(gvr client.GVR) ResourceViewer
- func NewPortForwardExtender(r ResourceViewer) ResourceViewer
- func NewPulse(gvr client.GVR) ResourceViewer
- func NewRbac(gvr client.GVR) ResourceViewer
- func NewReference(gvr client.GVR) ResourceViewer
- func NewReplicaSet(gvr client.GVR) ResourceViewer
- func NewRestartExtender(v ResourceViewer) ResourceViewer
- func NewSanitizer(gvr client.GVR) ResourceViewer
- func NewScaleExtender(r ResourceViewer) ResourceViewer
- func NewScreenDump(gvr client.GVR) ResourceViewer
- func NewSecret(gvr client.GVR) ResourceViewer
- func NewService(gvr client.GVR) ResourceViewer
- func NewServiceAccount(gvr client.GVR) ResourceViewer
- func NewStatefulSet(gvr client.GVR) ResourceViewer
- func NewUser(gvr client.GVR) ResourceViewer
- func NewXray(gvr client.GVR) ResourceViewer
- type RestartExtender
- type RestartableViewer
- type Runner
- type Sanitizer
- func (s *Sanitizer) AddBindKeysFn(BindKeysFunc)
- func (s *Sanitizer) Aliases() []string
- func (s *Sanitizer) App() *App
- func (s *Sanitizer) BufferActive(state bool, k model.BufferKind)
- func (s *Sanitizer) BufferChanged(_, _ string)
- func (s *Sanitizer) BufferCompleted(_, _ string)
- func (s *Sanitizer) EnvFn() EnvFunc
- func (s *Sanitizer) ExtraHints() map[string]string
- func (s *Sanitizer) GVR() client.GVR
- func (s *Sanitizer) GetSelectedPath() string
- func (s *Sanitizer) GetTable() *Table
- func (*Sanitizer) InCmdMode() bool
- func (s *Sanitizer) Init(ctx context.Context) error
- func (s *Sanitizer) Name() string
- func (s *Sanitizer) Refresh()
- func (s *Sanitizer) SetContextFn(f ContextFunc)
- func (s *Sanitizer) SetEnvFn(EnvFunc)
- func (s *Sanitizer) SetInstance(string)
- func (s *Sanitizer) Start()
- func (s *Sanitizer) Stop()
- func (s *Sanitizer) TreeChanged(node *xray.TreeNode)
- func (s *Sanitizer) TreeLoadFailed(err error)
- func (s *Sanitizer) TreeNodeSelected()
- func (s *Sanitizer) UpdateTitle()
- type ScalableViewer
- type ScaleExtender
- type ScreenDump
- type Secret
- type Service
- type ServiceAccount
- type StatefulSet
- type SubjectViewer
- type Table
- func (t *Table) AddBindKeysFn(f BindKeysFunc)
- func (t *Table) App() *App
- func (t *Table) BufferActive(state bool, k model.BufferKind)
- func (t *Table) BufferChanged(_, _ string)
- func (t *Table) BufferCompleted(text, _ string)
- func (t *Table) EnvFn() EnvFunc
- func (t *Table) HeaderIndex(colName string) (int, bool)
- func (t *Table) Init(ctx context.Context) (err error)
- func (t *Table) Name() string
- func (t *Table) SendKey(evt *tcell.EventKey)
- func (t *Table) SetEnterFn(f EnterFunc)
- func (t *Table) SetEnvFn(f EnvFunc)
- func (t *Table) SetExtraActionsFn(BoostActionsFunc)
- func (t *Table) Start()
- func (t *Table) Stop()
- type TableViewer
- type User
- type Viewer
- type ViewerFunc
- type Xray
- func (x *Xray) AddBindKeysFn(BindKeysFunc)
- func (x *Xray) Aliases() []string
- func (x *Xray) App() *App
- func (x *Xray) BufferActive(state bool, k model.BufferKind)
- func (x *Xray) BufferChanged(_, _ string)
- func (x *Xray) BufferCompleted(_, _ string)
- func (x *Xray) EnvFn() EnvFunc
- func (x *Xray) ExtraHints() map[string]string
- func (x *Xray) GVR() client.GVR
- func (x *Xray) GetSelectedPath() string
- func (x *Xray) GetTable() *Table
- func (*Xray) InCmdMode() bool
- func (x *Xray) Init(ctx context.Context) error
- func (x *Xray) Name() string
- func (x *Xray) Refresh()
- func (x *Xray) SetContextFn(ContextFunc)
- func (x *Xray) SetEnvFn(EnvFunc)
- func (x *Xray) SetInstance(string)
- func (x *Xray) Start()
- func (x *Xray) Stop()
- func (x *Xray) TreeChanged(node *xray.TreeNode)
- func (x *Xray) TreeLoadFailed(err error)
- func (x *Xray) TreeNodeSelected()
- func (x *Xray) UpdateTitle()
Constants ¶
const AllScopes = "all"
AllScopes represents actions available for all views.
Variables ¶
var EOL = []byte{'\n'}
EOL tracks end of lines.
var ExitStatus = ""
ExitStatus indicates UI exit conditions.
Functions ¶
func DismissDrain ¶ added in v0.17.6
func DismissDrain(v ResourceViewer, p *ui.Pages)
DismissDrain dismiss the port forward dialog.
func DismissPortForwards ¶ added in v0.15.2
func DismissPortForwards(v ResourceViewer, p *ui.Pages)
DismissPortForwards dismiss the port forward dialog.
func ShowDrain ¶ added in v0.17.6
func ShowDrain(view ResourceViewer, path string, defaults dao.DrainOptions, okFn DrainFunc)
ShowDrain pops a node drain dialog.
func ShowPortForwards ¶ added in v0.15.2
func ShowPortForwards(v ResourceViewer, path string, ports port.ContainerPortSpecs, aa port.Annotations, okFn PortForwardCB)
ShowPortForwards pops a port forwarding configuration dialog.
Types ¶
type ActionExtender ¶
type ActionExtender interface { // BindKeys injects new menu actions. BindKeys(ResourceViewer) }
ActionExtender enhances a given viewer by adding new menu actions.
type App ¶
App represents an application view.
func (*App) ActiveView ¶
ActiveView returns the currently active view.
func (*App) ClearStatus ¶
ClearStatus reset logo back to normal.
func (*App) IsBenchmarking ¶ added in v0.17.6
IsBenchmarking check if benchmarks are active.
type Benchmark ¶
type Benchmark struct {
ResourceViewer
}
Benchmark represents a service benchmark results view.
type BoostActionsFunc ¶
type BoostActionsFunc func(ui.KeyActions)
BoostActionsFunc extends viewer keyboard actions.
type Browser ¶
type Browser struct { *Table // contains filtered or unexported fields }
Browser represents a generic resource browser.
func (*Browser) BufferActive ¶ added in v0.19.3
func (b *Browser) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Browser) BufferChanged ¶ added in v0.19.3
BufferChanged indicates the buffer was changed.
func (*Browser) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Browser) SetContextFn ¶
func (b *Browser) SetContextFn(f ContextFunc)
SetContextFn populates a custom context.
func (*Browser) SetInstance ¶
SetInstance sets a single instance view.
func (*Browser) TableDataChanged ¶
TableDataChanged notifies view new data is available.
func (*Browser) TableLoadFailed ¶
TableLoadFailed notifies view something went south.
type ClusterInfo ¶
ClusterInfo represents a cluster info view.
func NewClusterInfo ¶
func NewClusterInfo(app *App) *ClusterInfo
NewClusterInfo returns a new cluster info view.
func (*ClusterInfo) ClusterInfoChanged ¶ added in v0.13.5
func (c *ClusterInfo) ClusterInfoChanged(prev, curr model.ClusterMeta)
ClusterInfoChanged notifies the cluster meta was changed.
func (*ClusterInfo) ClusterInfoUpdated ¶ added in v0.13.5
func (c *ClusterInfo) ClusterInfoUpdated(data model.ClusterMeta)
ClusterInfoUpdated notifies the cluster meta was updated.
func (*ClusterInfo) StylesChanged ¶
func (c *ClusterInfo) StylesChanged(s *config.Styles)
StylesChanged notifies skin changed.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command represents a user command.
type ConfigMap ¶ added in v0.20.0
type ConfigMap struct {
ResourceViewer
}
ConfigMap represents a configmap viewer.
type ContextFunc ¶
ContextFunc enhances a given context.
type Cow ¶ added in v0.23.0
Cow represents a bomb viewer.
func (*Cow) Actions ¶ added in v0.23.0
func (c *Cow) Actions() ui.KeyActions
Actions returns menu actions.
func (*Cow) ExtraHints ¶ added in v0.23.0
ExtraHints returns additional hints.
func (*Cow) StylesChanged ¶ added in v0.23.0
StylesChanged notifies the skin changes.
type DaemonSet ¶
type DaemonSet struct {
ResourceViewer
}
DaemonSet represents a daemon set custom viewer.
type Details ¶
Details represents a generic text viewer.
func NewDetails ¶
NewDetails returns a details viewer.
func (*Details) BufferActive ¶ added in v0.14.0
func (d *Details) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Details) BufferChanged ¶ added in v0.14.0
BufferChanged indicates the buffer was changed.
func (*Details) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Details) ExtraHints ¶ added in v0.13.3
ExtraHints returns additional hints.
func (*Details) StylesChanged ¶
StylesChanged notifies the skin changed.
func (*Details) TextChanged ¶ added in v0.14.0
TextChanged notifies the model changed.
func (*Details) TextFiltered ¶ added in v0.14.0
TextFiltered notifies when the filter changed.
type Dir ¶ added in v0.21.0
type Dir struct { ResourceViewer // contains filtered or unexported fields }
Dir represents a command directory view.
type DrainFunc ¶ added in v0.17.6
type DrainFunc func(v ResourceViewer, path string, opts dao.DrainOptions)
DrainFunc represents a drain callback function.
type Graphable ¶ added in v0.24.8
type Graphable interface { tview.Primitive // ID returns the graph id. ID() string // Add adds a metric Add(tchart.Metric) // SetLegend sets the graph legend SetLegend(string) // SetSeriesColors sets charts series colors. SetSeriesColors(...tcell.Color) // GetSeriesColorNames returns the series color names. GetSeriesColorNames() []string // SetFocusColorNames sets the focus color names. SetFocusColorNames(fg, bg string) // SetBackgroundColor sets chart bg color. SetBackgroundColor(tcell.Color) // IsDial returns true if chart is a dial IsDial() bool }
Graphable represents a graphic component.
type Helm ¶ added in v0.19.3
type Helm struct { ResourceViewer Values *model.Values }
Helm represents a helm chart view.
type Help ¶
type Help struct { *Table // contains filtered or unexported fields }
Help presents a help viewer.
func (*Help) StylesChanged ¶ added in v0.24.9
StylesChanged notifies skin changed.
type ImageExtender ¶ added in v0.23.0
type ImageExtender struct {
ResourceViewer
}
ImageExtender provides for overriding container images.
type LiveView ¶ added in v0.23.0
LiveView represents a live text viewer.
func NewLiveView ¶ added in v0.23.0
func NewLiveView(app *App, title string, m model.ResourceViewer) *LiveView
NewLiveView returns a live viewer.
func (*LiveView) Actions ¶ added in v0.23.0
func (v *LiveView) Actions() ui.KeyActions
Actions returns menu actions.
func (*LiveView) BufferActive ¶ added in v0.23.0
func (v *LiveView) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*LiveView) BufferChanged ¶ added in v0.23.0
BufferChanged indicates the buffer was changed.
func (*LiveView) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*LiveView) ExtraHints ¶ added in v0.23.0
ExtraHints returns additional hints.
func (*LiveView) ResourceChanged ¶ added in v0.23.0
ResourceChanged notifies when the filter changes.
func (*LiveView) ResourceFailed ¶ added in v0.23.0
ResourceFailed notifies when their is an issue.
func (*LiveView) StylesChanged ¶ added in v0.23.0
StylesChanged notifies the skin changed.
type Log ¶
Log represents a generic log viewer.
func (*Log) BufferActive ¶
func (l *Log) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Log) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*Log) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Log) ExtraHints ¶ added in v0.13.3
ExtraHints returns additional hints.
func (*Log) Indicator ¶
func (l *Log) Indicator() *LogIndicator
Indicator returns the scroll mode viewer.
func (*Log) LogCanceled ¶ added in v0.25.0
func (l *Log) LogCanceled()
LogCanceled indicates no more logs are coming.
func (*Log) SaveCmd ¶
func (l *Log) SaveCmd(*tcell.EventKey) *tcell.EventKey
SaveCmd dumps the logs to file.
func (*Log) SendKeys ¶ added in v0.18.0
func (l *Log) SendKeys(kk ...tcell.Key)
SendKeys (testing only!)
func (*Log) SendStrokes ¶ added in v0.18.0
SendStrokes (testing only!)
func (*Log) StylesChanged ¶
StylesChanged reports skin changes.
type LogIndicator ¶
LogIndicator represents a log view indicator.
func NewLogIndicator ¶
NewLogIndicator returns a new indicator.
func (*LogIndicator) AutoScroll ¶
func (l *LogIndicator) AutoScroll() bool
AutoScroll reports the current scrolling status.
func (*LogIndicator) FullScreen ¶
func (l *LogIndicator) FullScreen() bool
FullScreen reports the current screen mode.
func (*LogIndicator) StylesChanged ¶ added in v0.18.0
func (l *LogIndicator) StylesChanged(styles *config.Styles)
StylesChanged notifies listener the skin changed.
func (*LogIndicator) TextWrap ¶
func (l *LogIndicator) TextWrap() bool
TextWrap reports the current wrap mode.
func (*LogIndicator) Timestamp ¶ added in v0.17.1
func (l *LogIndicator) Timestamp() bool
Timestamp reports the current timestamp mode.
func (*LogIndicator) ToggleAllContainers ¶ added in v0.24.11
func (l *LogIndicator) ToggleAllContainers()
ToggleAllContainers toggles the all-containers mode.
func (*LogIndicator) ToggleAutoScroll ¶
func (l *LogIndicator) ToggleAutoScroll()
ToggleAutoScroll toggles the scroll mode.
func (*LogIndicator) ToggleFullScreen ¶
func (l *LogIndicator) ToggleFullScreen()
ToggleFullScreen toggles the screen mode.
func (*LogIndicator) ToggleTextWrap ¶
func (l *LogIndicator) ToggleTextWrap()
ToggleTextWrap toggles the wrap mode.
func (*LogIndicator) ToggleTimestamp ¶ added in v0.17.1
func (l *LogIndicator) ToggleTimestamp()
ToggleTimestamp toggles the current timestamp mode.
type LogOptionsFunc ¶ added in v0.24.11
type LogOptionsFunc func(bool) (*dao.LogOptions, error)
LogOptionsFunc returns the active log options.
type LogViewer ¶
type LogViewer interface { ResourceViewer ShowLogs(prev bool) }
LogViewer represents a log viewer.
type Logger ¶ added in v0.23.0
Logger represents a generic log viewer.
func (*Logger) Actions ¶ added in v0.23.0
func (l *Logger) Actions() ui.KeyActions
Actions returns menu actions.
func (*Logger) BufferActive ¶ added in v0.23.0
func (l *Logger) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Logger) BufferChanged ¶ added in v0.23.0
BufferChanged indicates the buffer was changed.
func (*Logger) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Logger) ExtraHints ¶ added in v0.23.0
ExtraHints returns additional hints.
func (*Logger) SetSubject ¶ added in v0.23.0
SetSubject updates the subject.
func (*Logger) StylesChanged ¶ added in v0.23.0
StylesChanged notifies the skin changed.
type LogsExtender ¶
type LogsExtender struct { ResourceViewer // contains filtered or unexported fields }
LogsExtender adds log actions to a given viewer.
type MetaViewer ¶
type MetaViewer struct {
// contains filtered or unexported fields
}
MetaViewer represents a registered meta viewer.
type MetaViewers ¶
type MetaViewers map[client.GVR]MetaViewer
MetaViewers represents a collection of meta viewers.
type PageStack ¶
PageStack represents a stack of pages.
func (*PageStack) StackPopped ¶
StackPopped notifies a page was removed.
func (*PageStack) StackPushed ¶
StackPushed notifies a new page was added.
type PersistentVolumeClaim ¶ added in v0.19.5
type PersistentVolumeClaim struct {
ResourceViewer
}
PersistentVolumeClaim represents a PVC custom viewer.
type Picker ¶
Picker represents a container picker.
func (*Picker) ExtraHints ¶ added in v0.13.3
ExtraHints returns additional hints.
type Policy ¶
type Policy struct { ResourceViewer // contains filtered or unexported fields }
Policy presents a RBAC rules viewer based on what a given user/group or sa can do.
type Popeye ¶ added in v0.19.0
type Popeye struct {
ResourceViewer
}
Popeye represents a sanitizer view.
type PortForward ¶
type PortForward struct { ResourceViewer // contains filtered or unexported fields }
PortForward presents active portforward viewer.
type PortForwardCB ¶ added in v0.18.0
type PortForwardCB func(ResourceViewer, string, port.PortTunnels) error
PortForwardCB represents a port-forward callback function.
type PortForwardExtender ¶ added in v0.15.2
type PortForwardExtender struct {
ResourceViewer
}
PortForwardExtender adds port-forward extensions.
type Pulse ¶ added in v0.16.0
Pulse represents a command health view.
func (*Pulse) Actions ¶ added in v0.16.0
func (p *Pulse) Actions() ui.KeyActions
Actions returns active menu bindings.
func (*Pulse) AddBindKeysFn ¶ added in v0.23.0
func (p *Pulse) AddBindKeysFn(BindKeysFunc)
AddBindKeysFn sets up extra key bindings.
func (*Pulse) ExtraHints ¶ added in v0.16.0
ExtraHints returns additional hints.
func (*Pulse) PulseChanged ¶ added in v0.16.0
PulseChanged notifies the model data changed.
func (*Pulse) PulseFailed ¶ added in v0.16.0
PulseFailed notifies the load failed.
func (*Pulse) SetContextFn ¶ added in v0.16.0
func (p *Pulse) SetContextFn(ContextFunc)
SetContextFn sets custom context.
func (*Pulse) SetInstance ¶ added in v0.16.0
SetInstance sets specific resource instance.
func (*Pulse) Start ¶ added in v0.16.0
func (p *Pulse) Start()
Start initializes resource watch loop.
func (*Pulse) StylesChanged ¶ added in v0.16.0
StylesChanged notifies the skin changed.
type Reference ¶ added in v0.20.0
type Reference struct {
ResourceViewer
}
Reference represents resource references.
type ReplicaSet ¶
type ReplicaSet struct {
ResourceViewer
}
ReplicaSet presents a replicaset viewer.
type ResourceViewer ¶
type ResourceViewer interface { TableViewer // SetEnvFn sets a function to pull viewer env vars for plugins. SetEnvFn(EnvFunc) // GVR returns a resource descriptor. GVR() client.GVR // SetContextFn provision a custom context. SetContextFn(ContextFunc) // AddBindKeys provision additional key bindings. AddBindKeysFn(BindKeysFunc) // SetInstance sets a parent FQN SetInstance(string) }
ResourceViewer represents a generic resource viewer.
func NewBenchmark ¶
func NewBenchmark(gvr client.GVR) ResourceViewer
NewBenchmark returns a new viewer.
func NewConfigMap ¶ added in v0.20.0
func NewConfigMap(gvr client.GVR) ResourceViewer
NewConfigMap returns a new viewer.
func NewContainer ¶
func NewContainer(gvr client.GVR) ResourceViewer
NewContainer returns a new container view.
func NewDaemonSet ¶
func NewDaemonSet(gvr client.GVR) ResourceViewer
NewDaemonSet returns a new viewer.
func NewDeploy ¶
func NewDeploy(gvr client.GVR) ResourceViewer
NewDeploy returns a new deployment view.
func NewDir ¶ added in v0.21.0
func NewDir(path string) ResourceViewer
NewDir returns a new instance.
func NewHelm ¶ added in v0.19.3
func NewHelm(gvr client.GVR) ResourceViewer
NewHelm returns a new alias view.
func NewImageExtender ¶ added in v0.23.0
func NewImageExtender(r ResourceViewer) ResourceViewer
NewImageExtender returns a new extender.
func NewLogsExtender ¶
func NewLogsExtender(v ResourceViewer, f LogOptionsFunc) ResourceViewer
NewLogsExtender returns a new extender.
func NewNamespace ¶
func NewNamespace(gvr client.GVR) ResourceViewer
NewNamespace returns a new viewer.
func NewPersistentVolumeClaim ¶ added in v0.19.5
func NewPersistentVolumeClaim(gvr client.GVR) ResourceViewer
NewPersistentVolumeClaim returns a new viewer.
func NewPopeye ¶ added in v0.19.0
func NewPopeye(gvr client.GVR) ResourceViewer
NewPopeye returns a new view.
func NewPortForward ¶
func NewPortForward(gvr client.GVR) ResourceViewer
NewPortForward returns a new viewer.
func NewPortForwardExtender ¶ added in v0.15.2
func NewPortForwardExtender(r ResourceViewer) ResourceViewer
NewPortForwardExtender returns a new extender.
func NewPulse ¶ added in v0.16.0
func NewPulse(gvr client.GVR) ResourceViewer
NewPulse returns a new alias view.
func NewReference ¶ added in v0.20.0
func NewReference(gvr client.GVR) ResourceViewer
NewReference returns a new alias view.
func NewReplicaSet ¶
func NewReplicaSet(gvr client.GVR) ResourceViewer
NewReplicaSet returns a new viewer.
func NewRestartExtender ¶
func NewRestartExtender(v ResourceViewer) ResourceViewer
NewRestartExtender returns a new extender.
func NewSanitizer ¶ added in v0.19.0
func NewSanitizer(gvr client.GVR) ResourceViewer
NewSanitizer returns a new view.
func NewScaleExtender ¶
func NewScaleExtender(r ResourceViewer) ResourceViewer
NewScaleExtender returns a new extender.
func NewScreenDump ¶
func NewScreenDump(gvr client.GVR) ResourceViewer
NewScreenDump returns a new viewer.
func NewServiceAccount ¶ added in v0.20.0
func NewServiceAccount(gvr client.GVR) ResourceViewer
NewServiceAccount returns a new viewer.
func NewStatefulSet ¶
func NewStatefulSet(gvr client.GVR) ResourceViewer
NewStatefulSet returns a new viewer.
type RestartExtender ¶
type RestartExtender struct {
ResourceViewer
}
RestartExtender represents a restartable resource.
type RestartableViewer ¶
type RestartableViewer interface { LogViewer }
RestartableViewer represents a viewer with restartable resources.
type Sanitizer ¶ added in v0.19.0
Sanitizer represents an sanitizer tree view.
func (*Sanitizer) AddBindKeysFn ¶ added in v0.23.0
func (s *Sanitizer) AddBindKeysFn(BindKeysFunc)
AddBindKeysFn sets up extra key bindings.
func (*Sanitizer) BufferActive ¶ added in v0.19.0
func (s *Sanitizer) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Sanitizer) BufferChanged ¶ added in v0.19.0
BufferChanged indicates the buffer was changed.
func (*Sanitizer) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Sanitizer) ExtraHints ¶ added in v0.19.0
ExtraHints returns additional hints.
func (*Sanitizer) GetSelectedPath ¶ added in v0.19.0
GetSelectedPath returns the current selection as string.
func (*Sanitizer) Refresh ¶ added in v0.19.0
func (s *Sanitizer) Refresh()
Refresh updates the view.
func (*Sanitizer) SetContextFn ¶ added in v0.19.0
func (s *Sanitizer) SetContextFn(f ContextFunc)
SetContextFn sets custom context.
func (*Sanitizer) SetInstance ¶ added in v0.19.0
SetInstance sets specific resource instance.
func (*Sanitizer) Start ¶ added in v0.19.0
func (s *Sanitizer) Start()
Start initializes resource watch loop.
func (*Sanitizer) TreeChanged ¶ added in v0.19.0
TreeChanged notifies the model data changed.
func (*Sanitizer) TreeLoadFailed ¶ added in v0.19.0
TreeLoadFailed notifies the load failed.
func (*Sanitizer) TreeNodeSelected ¶ added in v0.19.0
func (s *Sanitizer) TreeNodeSelected()
TreeNodeSelected callback for node selection.
func (*Sanitizer) UpdateTitle ¶ added in v0.19.0
func (s *Sanitizer) UpdateTitle()
UpdateTitle updates the view title.
type ScalableViewer ¶
type ScalableViewer interface { LogViewer }
ScalableViewer represents a viewer with scalable resources.
type ScaleExtender ¶
type ScaleExtender struct {
ResourceViewer
}
ScaleExtender adds scaling extensions.
type ScreenDump ¶
type ScreenDump struct {
ResourceViewer
}
ScreenDump presents a directory listing viewer.
type Service ¶
type Service struct { ResourceViewer // contains filtered or unexported fields }
Service represents a service viewer.
type ServiceAccount ¶ added in v0.20.0
type ServiceAccount struct {
ResourceViewer
}
ServiceAccount represents a serviceaccount viewer.
type StatefulSet ¶
type StatefulSet struct {
ResourceViewer
}
StatefulSet represents a statefulset viewer.
type SubjectViewer ¶
type SubjectViewer interface { ResourceViewer // SetSubject sets the active subject. SetSubject(s string) }
SubjectViewer represents a policy viewer.
type Table ¶
Table represents a table viewer.
func (*Table) AddBindKeysFn ¶ added in v0.23.0
func (t *Table) AddBindKeysFn(f BindKeysFunc)
AddBindKeysFn adds additional key bindings.
func (*Table) BufferActive ¶
func (t *Table) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Table) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*Table) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates input was accepted.
func (*Table) HeaderIndex ¶ added in v0.24.12
HeaderIndex returns index of a given column or false if not found.
func (*Table) SendKey ¶ added in v0.17.0
func (t *Table) SendKey(evt *tcell.EventKey)
SendKey sends an keyboard event (testing only!).
func (*Table) SetEnterFn ¶
SetEnterFn specifies the default enter behavior.
func (*Table) SetExtraActionsFn ¶
func (t *Table) SetExtraActionsFn(BoostActionsFunc)
SetExtraActionsFn specifies custom keyboard behavior.
type TableViewer ¶
TableViewer represents a tabular viewer.
type Viewer ¶
type Viewer interface { model.Component // Actions returns active menu bindings. Actions() ui.KeyActions // App returns an app handle. App() *App // Refresh updates the viewer Refresh() }
Viewer represents a component viewer.
type ViewerFunc ¶
type ViewerFunc func(client.GVR) ResourceViewer
ViewerFunc returns a viewer matching a given gvr.
type Xray ¶
Xray represents an xray tree view.
func (*Xray) AddBindKeysFn ¶ added in v0.23.0
func (x *Xray) AddBindKeysFn(BindKeysFunc)
AddBindKeysFn sets up extra key bindings.
func (*Xray) BufferActive ¶
func (x *Xray) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Xray) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*Xray) BufferCompleted ¶ added in v0.23.0
BufferCompleted indicates the buffer was changed.
func (*Xray) ExtraHints ¶ added in v0.13.3
ExtraHints returns additional hints.
func (*Xray) GetSelectedPath ¶ added in v0.13.3
GetSelectedPath returns the current selection as string.
func (*Xray) SetContextFn ¶
func (x *Xray) SetContextFn(ContextFunc)
SetContextFn sets custom context.
func (*Xray) SetInstance ¶
SetInstance sets specific resource instance.
func (*Xray) TreeChanged ¶
TreeChanged notifies the model data changed.
func (*Xray) TreeLoadFailed ¶
TreeLoadFailed notifies the load failed.
func (*Xray) TreeNodeSelected ¶
func (x *Xray) TreeNodeSelected()
TreeNodeSelected callback for node selection.
Source Files ¶
- actions.go
- alias.go
- app.go
- benchmark.go
- browser.go
- cluster_info.go
- cm.go
- command.go
- container.go
- context.go
- cow.go
- cronjob.go
- details.go
- dir.go
- dp.go
- drain_dialog.go
- ds.go
- env.go
- event.go
- exec.go
- group.go
- helm.go
- help.go
- helpers.go
- image_extender.go
- job.go
- live_view.go
- log.go
- log_indicator.go
- logger.go
- logs_extender.go
- node.go
- ns.go
- ofaas.go
- page_stack.go
- pf.go
- pf_dialog.go
- pf_extender.go
- picker.go
- pod.go
- policy.go
- popeye.go
- pulse.go
- pvc.go
- rbac.go
- reference.go
- registrar.go
- restart_extender.go
- rs.go
- sa.go
- sanitizer.go
- scale_extender.go
- screen_dump.go
- secret.go
- sts.go
- svc.go
- table.go
- table_helper.go
- types.go
- user.go
- xray.go
- yaml.go