system

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 NewEngine

func NewEngine(refreshInterval time.Duration) *Engine

NewEngine returns new health checker.

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

func (engine *Engine) EventStatus() bool

EventStatus returns event stats.

func (*Engine) GetEventMessages

func (engine *Engine) GetEventMessages() []string

GetEventMessages returns events buffer messages.

func (*Engine) GetEvents

func (engine *Engine) GetEvents() []string

GetEvents returns event buffer types.

func (*Engine) GetPodmanInfo

func (engine *Engine) GetPodmanInfo() (string, string, string, string)

GetPodmanInfo returns podman information: api, runtime, conmon and buildah.

func (*Engine) GetSysInfo

func (engine *Engine) GetSysInfo() (string, string, string)

GetSysInfo returns podman system information: hostname, kernel, ostype.

func (*Engine) GetSysUsage

func (engine *Engine) GetSysUsage() (float64, float64)

GetSysUsage returns podman system memory and swap usage.

func (*Engine) HasNewEvent

func (engine *Engine) HasNewEvent() bool

HasNewEvent returns true if there is new event added to event buffer.

func (*Engine) Start

func (engine *Engine) Start()

Start starts health checkers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL