Documentation ¶
Index ¶
- Constants
- Variables
- func DismissDrain(v ResourceViewer, p *ui.Pages)
- func DismissLogs(a *App, p *ui.Pages)
- func DismissPortForwards(v ResourceViewer, p *ui.Pages)
- func ShowDrain(view ResourceViewer, path string, defaults dao.DrainOptions, okFn DrainFunc)
- func ShowLogs(a *App, path string, applyFn LogCB)
- func ShowPortForwards(v ResourceViewer, path string, ports []string, okFn PortForwardCB)
- 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(s string)
- func (b *Browser) GetTable() *Table
- 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 ContainerFunc
- type Context
- type ContextFunc
- 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(s string)
- func (d *Details) ExtraHints() map[string]string
- func (d *Details) Hints() model.MenuHints
- 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 Grapheable
- type Group
- type Helm
- type Help
- type HelpFunc
- type Hinter
- type Job
- type Log
- func (l *Log) BufferActive(state bool, k model.BufferKind)
- func (l *Log) BufferChanged(s string)
- func (l *Log) ExtraHints() map[string]string
- func (l *Log) Flush(lines dao.LogItems)
- func (l *Log) GetModel() *model.Log
- func (l *Log) Hints() model.MenuHints
- func (l *Log) Indicator() *LogIndicator
- func (l *Log) Init(ctx context.Context) (err error)
- func (l *Log) LogChanged(lines dao.LogItems)
- func (l *Log) LogCleared()
- func (l *Log) LogFailed(err error)
- func (l *Log) Logs() *Details
- func (l *Log) Name() string
- func (l *Log) SaveCmd(evt *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 LogCB
- 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) ToggleAutoScroll()
- func (l *LogIndicator) ToggleFullScreen()
- func (l *LogIndicator) ToggleTextWrap()
- func (l *LogIndicator) ToggleTimestamp()
- type LogViewer
- type LogsExtender
- type Meow
- type MetaViewer
- type MetaViewers
- type Namespace
- type Node
- type OpenFaas
- 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) 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 (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) SetBindKeysFn(BindKeysFunc)
- 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 NewJob(gvr client.GVR) ResourceViewer
- func NewLogsExtender(v ResourceViewer, f ContainerFunc) ResourceViewer
- func NewNamespace(gvr client.GVR) ResourceViewer
- func NewNode(gvr client.GVR) ResourceViewer
- func NewOpenFaas(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) Aliases() []string
- func (s *Sanitizer) App() *App
- func (s *Sanitizer) BufferActive(state bool, k model.BufferKind)
- func (s *Sanitizer) BufferChanged(q 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 (s *Sanitizer) Init(ctx context.Context) error
- func (s *Sanitizer) Name() string
- func (s *Sanitizer) Refresh()
- func (s *Sanitizer) SetBindKeysFn(BindKeysFunc)
- 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) App() *App
- func (t *Table) BufferActive(state bool, k model.BufferKind)
- func (t *Table) BufferChanged(s string)
- func (t *Table) EnvFn() EnvFunc
- func (t *Table) Init(ctx context.Context) (err error)
- func (t *Table) Name() string
- func (t *Table) SendKey(evt *tcell.EventKey)
- func (t *Table) SetBindKeysFn(f BindKeysFunc)
- 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) Aliases() []string
- func (x *Xray) App() *App
- func (x *Xray) BufferActive(state bool, k model.BufferKind)
- func (x *Xray) BufferChanged(s 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 (x *Xray) Init(ctx context.Context) error
- func (x *Xray) Name() string
- func (x *Xray) Refresh()
- func (x *Xray) SetBindKeysFn(BindKeysFunc)
- 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 ¶
func DismissDrain(v ResourceViewer, p *ui.Pages)
DismissDrain dismiss the port forward dialog.
func DismissPortForwards ¶
func DismissPortForwards(v ResourceViewer, p *ui.Pages)
DismissPortForwards dismiss the port forward dialog.
func ShowDrain ¶
func ShowDrain(view ResourceViewer, path string, defaults dao.DrainOptions, okFn DrainFunc)
ShowDrain pops a node drain dialog.
func ShowPortForwards ¶
func ShowPortForwards(v ResourceViewer, path string, ports []string, 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 ¶
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 ¶
func (b *Browser) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Browser) BufferChanged ¶
BufferChanged indicates the buffer was changed.
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 ¶
func (c *ClusterInfo) ClusterInfoChanged(prev, curr model.ClusterMeta)
ClusterInfoChanged notifies the cluster meta was changed.
func (*ClusterInfo) ClusterInfoUpdated ¶
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 ContainerFunc ¶
type ContainerFunc func() string
ContainerFunc returns the active container name.
type ContextFunc ¶
ContextFunc enhances a given context.
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 ¶
func (d *Details) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Details) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*Details) ExtraHints ¶
ExtraHints returns additional hints.
func (*Details) StylesChanged ¶
StylesChanged notifies the skin changed.
func (*Details) TextChanged ¶
TextChanged notifies the model changed.
func (*Details) TextFiltered ¶
TextFiltered notifies when the filter changed.
type Dir ¶
type Dir struct { ResourceViewer // contains filtered or unexported fields }
Dir represents a command directory view.
type DrainFunc ¶
type DrainFunc func(v ResourceViewer, path string, opts dao.DrainOptions)
DrainFunc represents a drain callback function.
type Grapheable ¶
type Grapheable 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 }
Grapheable represents a graphic component.
type Help ¶
type Help struct { *Table // contains filtered or unexported fields }
Help presents a help viewer.
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) ExtraHints ¶
ExtraHints returns additional hints.
func (*Log) Indicator ¶
func (l *Log) Indicator() *LogIndicator
Indicator returns the scroll mode viewer.
func (*Log) StylesChanged ¶
StylesChanged reports skin changes.
type LogCB ¶
type LogCB func(path string, opts dao.LogOptions)
LogCB represents a log callback function.
type LogIndicator ¶
LogIndicator represents a log view indicator.
func NewLogIndicator ¶
func NewLogIndicator(cfg *config.Config, styles *config.Styles) *LogIndicator
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 ¶
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 ¶
func (l *LogIndicator) Timestamp() bool
Timestamp reports the current timestamp 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 ¶
func (l *LogIndicator) ToggleTimestamp()
ToggleTimestamp toggles the current timestamp mode.
type LogViewer ¶
type LogViewer interface { ResourceViewer ShowLogs(prev bool) }
LogViewer represents a log viewer.
type LogsExtender ¶
type LogsExtender struct { ResourceViewer // contains filtered or unexported fields }
LogsExtender adds log actions to a given viewer.
type Meow ¶
Meow represents a bomb viewer
func (*Meow) ExtraHints ¶
ExtraHints returns additional hints.
func (*Meow) StylesChanged ¶
StylesChanged notifies the skin changes.
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 ¶
type PersistentVolumeClaim struct {
ResourceViewer
}
PersistentVolumeClaim represents a PVC custom viewer.
type Picker ¶
Picker represents a container picker.
func (*Picker) ExtraHints ¶
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 PortForward ¶
type PortForward struct { ResourceViewer // contains filtered or unexported fields }
PortForward presents active portforward viewer.
type PortForwardCB ¶
type PortForwardCB func(v ResourceViewer, path, co string, mapper []client.PortTunnel)
PortForwardCB represents a port-forward callback function.
type PortForwardExtender ¶
type PortForwardExtender struct {
ResourceViewer
}
PortForwardExtender adds port-forward extensions.
type Pulse ¶
Pulse represents a command health view.
func (*Pulse) Actions ¶
func (p *Pulse) Actions() ui.KeyActions
Actions returns active menu bindings.
func (*Pulse) ExtraHints ¶
ExtraHints returns additional hints.
func (*Pulse) PulseChanged ¶
PulseChanged notifies the model data changed.
func (*Pulse) PulseFailed ¶
PulseFailed notifies the load failed.
func (*Pulse) SetBindKeysFn ¶
func (p *Pulse) SetBindKeysFn(BindKeysFunc)
SetBindKeysFn sets up extra key bindings.
func (*Pulse) SetContextFn ¶
func (p *Pulse) SetContextFn(ContextFunc)
SetContextFn sets custom context.
func (*Pulse) SetInstance ¶
SetInstance sets specific resource instance.
func (*Pulse) StylesChanged ¶
StylesChanged notifies the skin changed.
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) // SetBindKeys provision additional key bindings. SetBindKeysFn(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 ¶
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 NewLogsExtender ¶
func NewLogsExtender(v ResourceViewer, f ContainerFunc) ResourceViewer
NewLogsExtender returns a new extender.
func NewNamespace ¶
func NewNamespace(gvr client.GVR) ResourceViewer
NewNamespace returns a new viewer
func NewOpenFaas ¶
func NewOpenFaas(gvr client.GVR) ResourceViewer
NewOpenFaas returns a new viewer.
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(gvr client.GVR) ResourceViewer
NewPersistentVolumeClaim returns a new viewer.
func NewPortForward ¶
func NewPortForward(gvr client.GVR) ResourceViewer
NewPortForward returns a new viewer.
func NewPortForwardExtender ¶
func NewPortForwardExtender(r ResourceViewer) ResourceViewer
NewPortForwardExtender returns a new extender.
func NewReference ¶
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 ¶
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 ¶
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 ¶
Sanitizer represents an sanitizer tree view.
func (*Sanitizer) BufferActive ¶
func (s *Sanitizer) BufferActive(state bool, k model.BufferKind)
BufferActive indicates the buff activity changed.
func (*Sanitizer) BufferChanged ¶
BufferChanged indicates the buffer was changed.
func (*Sanitizer) ExtraHints ¶
ExtraHints returns additional hints.
func (*Sanitizer) GetSelectedPath ¶
GetSelectedPath returns the current selection as string.
func (*Sanitizer) SetBindKeysFn ¶
func (s *Sanitizer) SetBindKeysFn(BindKeysFunc)
SetBindKeysFn sets up extra key bindings.
func (*Sanitizer) SetContextFn ¶
func (s *Sanitizer) SetContextFn(f ContextFunc)
SetContextFn sets custom context.
func (*Sanitizer) SetInstance ¶
SetInstance sets specific resource instance.
func (*Sanitizer) TreeChanged ¶
TreeChanged notifies the model data changed.
func (*Sanitizer) TreeLoadFailed ¶
TreeLoadFailed notifies the load failed.
func (*Sanitizer) TreeNodeSelected ¶
func (s *Sanitizer) TreeNodeSelected()
TreeNodeSelected callback for node selection.
func (*Sanitizer) UpdateTitle ¶
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 ¶
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) 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) SetBindKeysFn ¶
func (t *Table) SetBindKeysFn(f BindKeysFunc)
SetBindKeysFn adds additional key bindings.
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) 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) ExtraHints ¶
ExtraHints returns additional hints.
func (*Xray) GetSelectedPath ¶
GetSelectedPath returns the current selection as string.
func (*Xray) SetBindKeysFn ¶
func (x *Xray) SetBindKeysFn(BindKeysFunc)
SetBindKeysFn sets up extra key bindings.
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
- 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
- job.go
- log.go
- log_dialog.go
- log_indicator.go
- logs_extender.go
- meow.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