Documentation
¶
Index ¶
- type NodeRow
- type NodeTasksWidget
- type NodesWidget
- func (s *NodesWidget) Buffer() gizaktermui.Buffer
- func (s *NodesWidget) Filter(filter string)
- func (s *NodesWidget) Mount() error
- func (s *NodesWidget) Name() string
- func (s *NodesWidget) OnEvent(event appui.EventCommand) error
- func (s *NodesWidget) RowCount() int
- func (s *NodesWidget) Sort()
- func (s *NodesWidget) Unmount() error
- type ServiceInfoWidget
- type ServiceListInfo
- type ServiceRow
- type ServiceTasksWidget
- type ServicesWidget
- func (s *ServicesWidget) Buffer() gizaktermui.Buffer
- func (s *ServicesWidget) Filter(filter string)
- func (s *ServicesWidget) Mount() error
- func (s *ServicesWidget) Name() string
- func (s *ServicesWidget) OnEvent(event appui.EventCommand) error
- func (s *ServicesWidget) RowCount() int
- func (s *ServicesWidget) Sort()
- func (s *ServicesWidget) Unmount() error
- type StackRow
- type StacksTasksWidget
- type StacksWidget
- func (s *StacksWidget) Buffer() gizaktermui.Buffer
- func (s *StacksWidget) Filter(filter string)
- func (s *StacksWidget) Mount() error
- func (s *StacksWidget) Name() string
- func (s *StacksWidget) OnEvent(event appui.EventCommand) error
- func (s *StacksWidget) RowCount() int
- func (s *StacksWidget) Sort()
- func (s *StacksWidget) Unmount() error
- type TaskRow
- type TasksWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRow ¶
type NodeRow struct { Name *drytermui.ParColumn Role *drytermui.ParColumn Labels *drytermui.ParColumn CPU *drytermui.ParColumn Memory *drytermui.ParColumn Engine *drytermui.ParColumn IPAddress *drytermui.ParColumn Status *drytermui.ParColumn ManagerStatus *drytermui.ParColumn Availability *drytermui.ParColumn drytermui.Row // contains filtered or unexported fields }
NodeRow is a Grid row showing runtime information about a node
func NewNodeRow ¶
NewNodeRow creats a new NodeRow widget
func (*NodeRow) ColumnsForFilter ¶
ColumnsForFilter returns the columns that are used to filter
func (*NodeRow) Highlighted ¶
func (row *NodeRow) Highlighted()
Highlighted marks this rows as being highlighted
func (*NodeRow) NotHighlighted ¶
func (row *NodeRow) NotHighlighted()
NotHighlighted marks this rows as being not highlighted
type NodeTasksWidget ¶
type NodeTasksWidget struct { TasksWidget // contains filtered or unexported fields }
NodeTasksWidget shows a node's task information
func NewNodeTasksWidget ¶
func NewNodeTasksWidget(swarmClient docker.SwarmAPI, s appui.Screen) *NodeTasksWidget
NewNodeTasksWidget creates a TasksWidget
func (*NodeTasksWidget) Buffer ¶
func (s *NodeTasksWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*NodeTasksWidget) ForNode ¶
func (s *NodeTasksWidget) ForNode(nodeID string)
ForNode sets the node for which this widget will render tasks
func (*NodeTasksWidget) Mount ¶
func (s *NodeTasksWidget) Mount() error
Mount prepares this widget for rendering
func (*NodeTasksWidget) Name ¶
func (s *NodeTasksWidget) Name() string
Name returns this widget name
type NodesWidget ¶
NodesWidget presents Docker swarm information
func NewNodesWidget ¶
func NewNodesWidget(swarmClient docker.SwarmAPI, s appui.Screen) *NodesWidget
NewNodesWidget creates a NodesWidget
func (*NodesWidget) Buffer ¶
func (s *NodesWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*NodesWidget) Filter ¶
func (s *NodesWidget) Filter(filter string)
Filter applies the given filter to the container list
func (*NodesWidget) Mount ¶
func (s *NodesWidget) Mount() error
Mount prepares this widget for rendering
func (*NodesWidget) OnEvent ¶
func (s *NodesWidget) OnEvent(event appui.EventCommand) error
OnEvent runs the given command
func (*NodesWidget) RowCount ¶
func (s *NodesWidget) RowCount() int
RowCount returns the number of rows of this widget.
func (*NodesWidget) Unmount ¶
func (s *NodesWidget) Unmount() error
Unmount tells this widge that in will not be rendered anymore
type ServiceInfoWidget ¶
type ServiceInfoWidget struct { drytermui.SizableBufferer // contains filtered or unexported fields }
ServiceInfoWidget shows service information
func NewServiceInfoWidget ¶
func NewServiceInfoWidget(swarmClient docker.SwarmAPI, service *swarm.Service, screen appui.Screen) *ServiceInfoWidget
NewServiceInfoWidget creates ServiceInfoWidget with information about the service with the given ID
type ServiceListInfo ¶
ServiceListInfo stores the information about mode and replicas to be used by template
type ServiceRow ¶
type ServiceRow struct { ID *drytermui.ParColumn Name *drytermui.ParColumn Mode *drytermui.ParColumn Replicas *drytermui.ParColumn Image *drytermui.ParColumn ServicePorts *drytermui.ParColumn appui.Row // contains filtered or unexported fields }
ServiceRow is a Grid row showing service information
func NewServiceRow ¶
func NewServiceRow(service swarm.Service, serviceInfo ServiceListInfo, table drytermui.Table) *ServiceRow
NewServiceRow creats a new ServiceRow widget
func (*ServiceRow) ColumnsForFilter ¶
func (row *ServiceRow) ColumnsForFilter() []*drytermui.ParColumn
ColumnsForFilter returns the columns that are used to filter
type ServiceTasksWidget ¶
type ServiceTasksWidget struct { TasksWidget // contains filtered or unexported fields }
ServiceTasksWidget shows a service's task information
func NewServiceTasksWidget ¶
func NewServiceTasksWidget(swarmClient docker.SwarmAPI, s appui.Screen) *ServiceTasksWidget
NewServiceTasksWidget creates a TasksWidget
func (*ServiceTasksWidget) Buffer ¶
func (s *ServiceTasksWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*ServiceTasksWidget) ForService ¶
func (s *ServiceTasksWidget) ForService(serviceID string)
ForService sets the service for which this widget is showing tasks
func (*ServiceTasksWidget) Mount ¶
func (s *ServiceTasksWidget) Mount() error
Mount prepares this widget for rendering
func (*ServiceTasksWidget) Name ¶
func (s *ServiceTasksWidget) Name() string
Name returns this widget name
type ServicesWidget ¶
ServicesWidget shows information about services running on the Swarm
func NewServicesWidget ¶
func NewServicesWidget(swarmClient docker.SwarmAPI, s appui.Screen) *ServicesWidget
NewServicesWidget creates a ServicesWidget
func (*ServicesWidget) Buffer ¶
func (s *ServicesWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*ServicesWidget) Filter ¶
func (s *ServicesWidget) Filter(filter string)
Filter applies the given filter to the container list
func (*ServicesWidget) Mount ¶
func (s *ServicesWidget) Mount() error
Mount prepares this widget for rendering
func (*ServicesWidget) OnEvent ¶
func (s *ServicesWidget) OnEvent(event appui.EventCommand) error
OnEvent runs the given command
func (*ServicesWidget) RowCount ¶
func (s *ServicesWidget) RowCount() int
RowCount returns the number of rowns of this widget.
func (*ServicesWidget) Sort ¶
func (s *ServicesWidget) Sort()
Sort rotates to the next sort mode. SortByServiceName -> SortByServiceImage -> SortByServiceName
func (*ServicesWidget) Unmount ¶
func (s *ServicesWidget) Unmount() error
Unmount marks this widget as unmounted
type StackRow ¶
type StackRow struct { Name *drytermui.ParColumn Services *drytermui.ParColumn Orchestrator *drytermui.ParColumn Networks *drytermui.ParColumn Configs *drytermui.ParColumn Secrets *drytermui.ParColumn appui.Row // contains filtered or unexported fields }
StackRow is a Grid row showing stack information
func NewStackRow ¶
NewStackRow creats a new StackRow widget
func (*StackRow) ColumnsForFilter ¶
ColumnsForFilter returns the columns that are used to filter
type StacksTasksWidget ¶
type StacksTasksWidget struct { TasksWidget // contains filtered or unexported fields }
StacksTasksWidget shows a service's task information
func NewStacksTasksWidget ¶
func NewStacksTasksWidget(swarmClient docker.SwarmAPI, s appui.Screen) *StacksTasksWidget
NewStacksTasksWidget creates a StacksTasksWidget
func (*StacksTasksWidget) Buffer ¶
func (s *StacksTasksWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*StacksTasksWidget) ForStack ¶
func (s *StacksTasksWidget) ForStack(stack string)
ForStack sets the stack for which this widget is showing tasks
func (*StacksTasksWidget) Mount ¶
func (s *StacksTasksWidget) Mount() error
Mount prepares this widget for rendering
func (*StacksTasksWidget) Name ¶
func (s *StacksTasksWidget) Name() string
Name returns this widget name
type StacksWidget ¶
StacksWidget shows information about services running on the Swarm
func NewStacksWidget ¶
func NewStacksWidget(swarmClient docker.SwarmAPI, s appui.Screen) *StacksWidget
NewStacksWidget creates a StacksWidget
func (*StacksWidget) Buffer ¶
func (s *StacksWidget) Buffer() gizaktermui.Buffer
Buffer returns the content of this widget as a termui.Buffer
func (*StacksWidget) Filter ¶
func (s *StacksWidget) Filter(filter string)
Filter applies the given filter to the container list
func (*StacksWidget) Mount ¶
func (s *StacksWidget) Mount() error
Mount prepares this widget for rendering
func (*StacksWidget) OnEvent ¶
func (s *StacksWidget) OnEvent(event appui.EventCommand) error
OnEvent runs the given command
func (*StacksWidget) RowCount ¶
func (s *StacksWidget) RowCount() int
RowCount returns the number of rowns of this widget.
func (*StacksWidget) Sort ¶
func (s *StacksWidget) Sort()
Sort rotates to the next sort mode. SortByServiceName -> SortByServiceImage -> SortByServiceName
func (*StacksWidget) Unmount ¶
func (s *StacksWidget) Unmount() error
Unmount marks this widget as unmounted
type TaskRow ¶
type TaskRow struct { ID *drytermui.ParColumn Name *drytermui.ParColumn Image *drytermui.ParColumn Node *drytermui.ParColumn DesiredState *drytermui.ParColumn CurrentState *drytermui.ParColumn Error *drytermui.ParColumn Ports *drytermui.ParColumn drytermui.Row // contains filtered or unexported fields }
TaskRow is a Grid row showing runtime information about a task
func NewTaskRow ¶
NewTaskRow creats a new TaskRow widget
func (*TaskRow) ColumnsForFilter ¶
ColumnsForFilter returns the columns that are used to filter
func (*TaskRow) Highlighted ¶
func (row *TaskRow) Highlighted()
Highlighted marks this rows as being highlighted
func (*TaskRow) NotHighlighted ¶
func (row *TaskRow) NotHighlighted()
NotHighlighted marks this rows as being not highlighted
type TasksWidget ¶
TasksWidget shows a service's task information
func (*TasksWidget) Filter ¶
func (s *TasksWidget) Filter(filter string)
Filter applies the given filter to the container list
func (*TasksWidget) OnEvent ¶
func (s *TasksWidget) OnEvent(event appui.EventCommand) error
OnEvent runs the given command
func (*TasksWidget) RowCount ¶
func (s *TasksWidget) RowCount() int
RowCount returns the number of rowns of this widget.
func (*TasksWidget) Sort ¶
func (s *TasksWidget) Sort()
Sort rotates to the next sort mode. SortByTaskService -> SortByTaskImage -> SortByTaskDesiredState -> SortByTaskState -> SortByTaskService
func (*TasksWidget) Unmount ¶
func (s *TasksWidget) Unmount() error
Unmount marks this widget as unmounted