container

package
v0.0.0-...-ac82891 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatsString

func GetStatsString(stats Stats) string

Types

type ContainerCreateBody

type ContainerCreateBody struct {
	ExtContainerID string

	ImageName string

	ExposedTCPPorts []string
	ExposedUDPPorts []string

	Mounts []string

	CoreCnt int
	// max memory usage, in bytes
	MemorySize int64
	// max storage usage size, in bytes
	StorageSize int64
}

type ContainerProfile

type ContainerProfile struct {
	ExtContainerID string
	ImageName      string

	ExposedTCPPorts        []string
	ExposedTCPMappingPorts []string
	ExposedUDPPorts        []string
	ExposedUDPMappingPorts []string

	CoreRequest    int
	MemoryRequest  int64
	StorageRequest int64
}

ContainerProfile static container info

type ContainerStatus

type ContainerStatus struct {
	// container stats
	Stats

	// resource
	CPUPercent    float64
	MemoryPercent float64
	MemorySize    float64
	StorageSize   int64
}

type Stats

type Stats uint
const (
	Running Stats = iota
	Creating
	Created
	Restarting
	Removing
	Stopping
	Exited
	Error
)

Jump to

Keyboard shortcuts

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