memory

package
Version: v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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(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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL