sysinfo

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Events

func Events(eventChan chan entities.Event, cancelChan chan bool) error

Events returns libpod events.

func Info

func Info() (string, error)

Info returns podman system information.

func Prune

func Prune() (string, error)

Prune removes all unused pod, container, image and volume data.

Types

type DfSummary

type DfSummary struct {
	// contains filtered or unexported fields
}

DfSummary implements df summary report.

func DiskUsage

func DiskUsage() ([]*DfSummary, error)

DiskUsage returns information about image, container, and volume disk consumption.

func (*DfSummary) Active

func (dfsum *DfSummary) Active() string

Active returns active value of df summary.

func (*DfSummary) Reclaimable

func (dfsum *DfSummary) Reclaimable() string

Reclaimable returns reclaimable value of df summary.

func (*DfSummary) Size

func (dfsum *DfSummary) Size() string

Size returns size value of df summary.

func (*DfSummary) Total

func (dfsum *DfSummary) Total() string

Total returns total value of df summary.

func (*DfSummary) Type

func (dfsum *DfSummary) Type() string

Type returns df summary report type: Images, Containers or Local Volumes.

type SystemInfo

type SystemInfo struct {
	Hostname       string
	OS             string
	Arch           string
	Kernel         string
	MemUsagePC     float64
	SwapUsagePC    float64
	Runtime        string
	APIVersion     string
	BuildahVersion string
	ConmonVersion  string
}

SystemInfo implements system information data.

func SysInfo

func SysInfo() (*SystemInfo, error)

SysInfo returns basic system information.

Jump to

Keyboard shortcuts

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