memory

package
v0.0.0-...-0003b89 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStorage

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

func New

func New(
	maxNumSamples,
	maxNumStats int,
	backend storage.StorageDriver,
) *InMemoryStorage

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