memory

package
v0.0.0-...-57db455 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(maxNumSamples, maxNumStats int) storage.StorageDriver

Types

type InMemoryStorage

type InMemoryStorage struct {
	// contains filtered or unexported fields
}

func (*InMemoryStorage) AddStats

func (self *InMemoryStorage) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error

func (*InMemoryStorage) Close

func (self *InMemoryStorage) Close() error

func (*InMemoryStorage) Percentiles

func (self *InMemoryStorage) Percentiles(name string, cpuPercentiles, memPercentiles []int) (*info.ContainerStatsPercentiles, error)

func (*InMemoryStorage) RecentStats

func (self *InMemoryStorage) RecentStats(name string, numStats int) ([]*info.ContainerStats, error)

func (*InMemoryStorage) Samples

func (self *InMemoryStorage) Samples(name string, numSamples int) ([]*info.ContainerStatsSample, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL