package memory

import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/google/cadvisor/cache/memory"

Index

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 (self *InMemoryCache) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error

func (*InMemoryCache) Close

func (self *InMemoryCache) Close() error

func (*InMemoryCache) RecentStats

func (self *InMemoryCache) RecentStats(name string, start, end time.Time, maxStats int) ([]*info.ContainerStats, error)

func (*InMemoryCache) RemoveContainer

func (self *InMemoryCache) RemoveContainer(containerName string) error

Source Files

memory.go

Version
v1.1.9-beta.0
Published
Feb 23, 2016
Platform
linux/amd64
Imports
7 packages
Last checked
50 seconds ago

Tools for package owners.