src

package
v0.0.0-...-0019dea Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUData

func CPUData(perCPU bool) float64

Cpu usage

func ContainerData

func ContainerData() []types.Container

func FilterNetworkInterfaces

func FilterNetworkInterfaces(interfaces *[]net.Interface) string

filter network interfaces so that you get only the one you are using for outside connections

func GetNetworkInterfaces

func GetNetworkInterfaces() []net.Interface

get a list of all network interfaces

func HostInfo

func HostInfo() interface{}

func SanitizeContainer

func SanitizeContainer(containers []types.Container) []types.Container

func ShortenContainerId

func ShortenContainerId(id string) string

func StartContainer

func StartContainer(containerId string)

func StopContainer

func StopContainer(containerId string)

func VirtualMemory

func VirtualMemory() float64

Virtual Memory

Types

type FormattedTime

type FormattedTime struct {
	Hours   int32
	Minutes int32
	Seconds int32
}

func FormatTime

func FormatTime(seconds uint64) FormattedTime

type HostInfoStats

type HostInfoStats struct {
	Hostname        string
	Uptime          FormattedTime
	OS              string
	Platform        string
	PlatformFamily  string
	PlatformVersion string
	KernelVersion   string
	KernelArch      string
}

Jump to

Keyboard shortcuts

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