Documentation ¶
Index ¶
- Constants
- func CommitContainer(w http.ResponseWriter, r *http.Request)
- func CreateContainer(w http.ResponseWriter, r *http.Request)
- func CreateImageFromImage(w http.ResponseWriter, r *http.Request)
- func CreateImageFromSrc(w http.ResponseWriter, r *http.Request)
- func ExportImage(w http.ResponseWriter, r *http.Request)
- func GetContainer(w http.ResponseWriter, r *http.Request)
- func GetDiskUsage(w http.ResponseWriter, r *http.Request)
- func GetImage(w http.ResponseWriter, r *http.Request)
- func GetImages(w http.ResponseWriter, r *http.Request)
- func GetInfo(w http.ResponseWriter, r *http.Request)
- func KillContainer(w http.ResponseWriter, r *http.Request)
- func ListContainers(w http.ResponseWriter, r *http.Request)
- func LoadImages(w http.ResponseWriter, r *http.Request)
- func LogsFromContainer(w http.ResponseWriter, r *http.Request)
- func PruneImages(w http.ResponseWriter, r *http.Request)
- func RemoveContainer(w http.ResponseWriter, r *http.Request)
- func StatsContainer(w http.ResponseWriter, r *http.Request)
- func WaitContainer(w http.ResponseWriter, r *http.Request)
- type CPUStats
- type Stats
- type StatsJSON
Constants ¶
View Source
const DefaultStatsPeriod = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CommitContainer ¶
func CommitContainer(w http.ResponseWriter, r *http.Request)
func CreateContainer ¶
func CreateContainer(w http.ResponseWriter, r *http.Request)
func CreateImageFromImage ¶
func CreateImageFromImage(w http.ResponseWriter, r *http.Request)
func CreateImageFromSrc ¶
func CreateImageFromSrc(w http.ResponseWriter, r *http.Request)
func ExportImage ¶
func ExportImage(w http.ResponseWriter, r *http.Request)
func GetContainer ¶
func GetContainer(w http.ResponseWriter, r *http.Request)
func GetDiskUsage ¶
func GetDiskUsage(w http.ResponseWriter, r *http.Request)
func KillContainer ¶
func KillContainer(w http.ResponseWriter, r *http.Request)
func ListContainers ¶
func ListContainers(w http.ResponseWriter, r *http.Request)
func LoadImages ¶
func LoadImages(w http.ResponseWriter, r *http.Request)
func LogsFromContainer ¶
func LogsFromContainer(w http.ResponseWriter, r *http.Request)
func PruneImages ¶
func PruneImages(w http.ResponseWriter, r *http.Request)
func RemoveContainer ¶
func RemoveContainer(w http.ResponseWriter, r *http.Request)
func StatsContainer ¶
func StatsContainer(w http.ResponseWriter, r *http.Request)
func WaitContainer ¶
func WaitContainer(w http.ResponseWriter, r *http.Request)
Types ¶
type CPUStats ¶
type CPUStats struct { // CPU Usage. Linux and Windows. CPUUsage docker.CPUUsage `json:"cpu_usage"` // System Usage. Linux only. SystemUsage uint64 `json:"system_cpu_usage,omitempty"` // Online CPUs. Linux only. OnlineCPUs uint32 `json:"online_cpus,omitempty"` // Usage of CPU in %. Linux only. CPU float64 `json:"cpu"` // Throttling Data. Linux only. ThrottlingData docker.ThrottlingData `json:"throttling_data,omitempty"` }
CPUStats aggregates and wraps all CPU related info of container
type Stats ¶
type Stats struct { // Common stats Read time.Time `json:"read"` PreRead time.Time `json:"preread"` // Linux specific stats, not populated on Windows. PidsStats docker.PidsStats `json:"pids_stats,omitempty"` BlkioStats docker.BlkioStats `json:"blkio_stats,omitempty"` // Windows specific stats, not populated on Linux. NumProcs uint32 `json:"num_procs"` StorageStats docker.StorageStats `json:"storage_stats,omitempty"` // Shared stats CPUStats CPUStats `json:"cpu_stats,omitempty"` PreCPUStats CPUStats `json:"precpu_stats,omitempty"` // "Pre"="Previous" MemoryStats docker.MemoryStats `json:"memory_stats,omitempty"` }
Stats is Ultimate struct aggregating all types of stats of one container
Click to show internal directories.
Click to hide internal directories.