datastruct

package
v0.0.0-...-733d78f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Short       types.Container
	Full        types.ContainerJSON
	Stats       *Stats `json:"stats"`
	Environment map[string]string
}

type ImageMeta

type ImageMeta struct {
	Labels   map[string]string
	RepoTags []string
}

type Stats

type Stats struct {
	Memory struct {
		Usage int64 `json:"usage"`
		Limit int64 `json:"limit"`
		Stats struct {
			Cache int64 `json:"cache"`
		} `json:"stats"`
	} `json:"memory_stats"`
	CPUStats    types.CPUStats `json:"cpu_stats"`
	PreCPUStats types.CPUStats `json:"precpu_stats"`
}

func (*Stats) GetCPUUsage

func (s *Stats) GetCPUUsage() float64

func (*Stats) GetUsedMemory

func (s *Stats) GetUsedMemory() int64

Jump to

Keyboard shortcuts

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