package memory
import "github.com/google/cadvisor/cache/memory"
Index ¶
- Variables
- type InMemoryCache
- func New( maxAge time.Duration, backend []storage.StorageDriver, ) *InMemoryCache
- func (c *InMemoryCache) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error
- func (c *InMemoryCache) Close() error
- func (c *InMemoryCache) RecentStats(name string, start, end time.Time, maxStats int) ([]*info.ContainerStats, error)
- func (c *InMemoryCache) RemoveContainer(containerName string) error
Variables ¶
ErrDataNotFound is the error resulting if failed to find a container in memory cache.
Types ¶
type InMemoryCache ¶
type InMemoryCache struct {
// contains filtered or unexported fields
}
func New ¶
func New( maxAge time.Duration, backend []storage.StorageDriver, ) *InMemoryCache
func (*InMemoryCache) AddStats ¶
func (c *InMemoryCache) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error
func (*InMemoryCache) Close ¶
func (c *InMemoryCache) Close() error
func (*InMemoryCache) RecentStats ¶
func (c *InMemoryCache) RecentStats(name string, start, end time.Time, maxStats int) ([]*info.ContainerStats, error)
func (*InMemoryCache) RemoveContainer ¶
func (c *InMemoryCache) RemoveContainer(containerName string) error
Source Files ¶
- Version
- v0.52.1 (latest)
- Published
- Mar 5, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 days ago –
Tools for package owners.