docker

package
v0.0.0-...-0c72717 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerStats

func GetContainerStats(cli *client.Client, ctx context.Context) (int, int, int, error)

func GetDockerInfo

func GetDockerInfo(
	cli *client.Client,
	ctx context.Context,
) (cgroup string, driver string, root string, err error)

func GetDockerVersion

func GetDockerVersion(cli *client.Client, ctx context.Context) (string, error)

func GetImagesStats

func GetImagesStats(cli *client.Client, ctx context.Context) (int, error)

func GetNetworksStats

func GetNetworksStats(cli *client.Client, ctx context.Context) (int, error)

func GetOsName

func GetOsName() string

func GetVolumesStats

func GetVolumesStats(cli *client.Client, ctx context.Context) (int, error)

func NewDockerClient

func NewDockerClient() (*client.Client, error)

Types

type DockerInfo

type DockerInfo struct {
	OsName            string
	Version           string
	ContainersTotal   int
	ContainersRunning int
	ContainersStopped int
	Volumes           int
	Images            int
	Networks          int
	CgroupDriver      string
	DockerRoot        string
	Driver            string
}

func FetchDockerInfo

func FetchDockerInfo(cli *client.Client, ctx context.Context) (*DockerInfo, error)

Jump to

Keyboard shortcuts

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