Documentation ¶
Index ¶
- Variables
- type InMemoryCache
- func (self *InMemoryCache) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error
- func (self *InMemoryCache) Close() error
- func (self *InMemoryCache) RecentStats(name string, start, end time.Time, maxStats int) ([]*info.ContainerStats, error)
- func (self *InMemoryCache) RemoveContainer(containerName string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataNotFound = errors.New("unable to find data in memory cache")
ErrDataNotFound is the error resulting if failed to find a container in memory cache.
Functions ¶
This section is empty.
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(cInfo *info.ContainerInfo, 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
Click to show internal directories.
Click to hide internal directories.