Documentation ¶
Overview ¶
Copyright © 2020 The PES Open Source Team pesos@pes.edu
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionTable ¶
ActionTable is a wrapper widget around a Table meant to display error messages if any
func NewActionTable ¶
func NewActionTable() *ActionTable
NewActionTable is a constructor for the ActionTable type
func (*ActionTable) Draw ¶
func (actionTable *ActionTable) Draw(buf *ui.Buffer)
Draw puts the required text into the widget
func (*ActionTable) SelectedAction ¶
func (actionTable *ActionTable) SelectedAction() string
SelectedAction returns an action as string from the selected row of the action table
type ErrorBox ¶
ErrorBox is a wrapper widget around a List meant to display error messages if any. It implements the ui.Drawable interface.
func (*ErrorBox) SetErrorString ¶
SetErrorString sets the error string to be displayed.
type HelpKeybindingType ¶
type HelpKeybindingType int
HelpKeybindingType is the type of the keybinding that a help page will use for a specific command.
const ( // RootCommand is the keybinding identifier // for the "main" command of grofer, i.e. `grofer`. RootCommand HelpKeybindingType = iota // ProcCommand is the keybinding identifier // for the `grofer proc` command. ProcCommand // PerProcCommand is the keybinding identifier // for the `grofer proc -p <pid>` command. PerProcCommand // ContainerCommand is the keybinding identifier // for the `grofer container` command. ContainerCommand // PerContainerCommand is the keybinding identifier // for the `grofer container -c <CID>` command. PerContainerCommand )
type HelpMenu ¶
HelpMenu is a wrapper widget around a List meant to display the help menu for a command. HelpMenu implements the ui.Drawable interface.
func (*HelpMenu) ForCommand ¶
func (help *HelpMenu) ForCommand(command HelpKeybindingType) *HelpMenu
ForCommand sets the keybindings to be displayed as part of the help for a specific command and returns the modified HelpMenu.
type SignalTable ¶
SignalTable is a wrapper widget around a Table meant to display error messages if any
func NewSignalTable ¶
func NewSignalTable() *SignalTable
NewSignalTable is a constructor for the SignalTable type
func (*SignalTable) Draw ¶
func (sigTable *SignalTable) Draw(buf *ui.Buffer)
Draw puts the required text into the widget
func (*SignalTable) SelectedSignal ¶
func (sigTable *SignalTable) SelectedSignal() syscall.Signal
SelectedSignal returns the signal at the currently selected row index
func (*SignalTable) SignalFromRow ¶
func (sigTable *SignalTable) SignalFromRow(rowIndex int) syscall.Signal
SignalFromRow returns the symbol at a given row index