mirror of
https://github.com/containers/podman.git
synced 2025-05-31 15:42:48 +08:00

Note: this makes info.go linux-only since it mixes linux-specific and generic code. This should be addressed in a separate refactoring PR. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
18 lines
518 B
Go
18 lines
518 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/containers/podman/v4/libpod/define"
|
|
)
|
|
|
|
// GetContainerStats gets the running stats for a given container.
|
|
// The previousStats is used to correctly calculate cpu percentages. You
|
|
// should pass nil if there is no previous stat for this container.
|
|
func (c *Container) GetContainerStats(previousStats *define.ContainerStats) (*define.ContainerStats, error) {
|
|
return nil, errors.New("not implemented (*Container) GetContainerStats")
|
|
}
|