Documentation ¶
Index ¶
- type Engine
- func (engine *Engine) ConnStatus() (registry.ConnStatus, string)
- func (engine *Engine) Connect(connection registry.Connection)
- func (engine *Engine) Disconnect()
- func (engine *Engine) EventStatus() bool
- func (engine *Engine) GetEventMessages() []string
- func (engine *Engine) GetEvents() []string
- func (engine *Engine) GetPodmanInfo() (string, string, string, string)
- func (engine *Engine) GetSysInfo() (string, string, string)
- func (engine *Engine) GetSysUsage() (float64, float64)
- func (engine *Engine) HasNewEvent() bool
- func (engine *Engine) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine implements connection and system info check.
func (*Engine) ConnStatus ¶ added in v0.3.0
func (engine *Engine) ConnStatus() (registry.ConnStatus, string)
ConnStatus returns connection status.
func (*Engine) Connect ¶ added in v0.3.0
func (engine *Engine) Connect(connection registry.Connection)
Connect sets engine connection.
func (*Engine) Disconnect ¶ added in v0.3.0
func (engine *Engine) Disconnect()
Disconnect disconnects engine and unsets the connection.
func (*Engine) EventStatus ¶ added in v0.3.0
EventStatus returns event stats.
func (*Engine) GetEventMessages ¶
GetEventMessages returns events buffer messages.
func (*Engine) GetPodmanInfo ¶
GetPodmanInfo returns podman information: api, runtime, conmon and buildah.
func (*Engine) GetSysInfo ¶
GetSysInfo returns podman system information: hostname, kernel, ostype.
func (*Engine) GetSysUsage ¶
GetSysUsage returns podman system memory and swap usage.
func (*Engine) HasNewEvent ¶
HasNewEvent returns true if there is new event added to event buffer.
Click to show internal directories.
Click to hide internal directories.