package storage

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

Index

Types

type StorageDriver

type StorageDriver interface {
	AddStats(ref info.ContainerReference, stats *info.ContainerStats) error

	// Read most recent stats. numStats indicates max number of stats
	// returned. The returned stats must be consecutive observed stats. If
	// numStats < 0, then return all stats stored in the storage. The
	// returned stats should be sorted in time increasing order, i.e. Most
	// recent stats should be the last.
	RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)

	// Close will clear the state of the storage driver. The elements
	// stored in the underlying storage may or may not be deleted depending
	// on the implementation of the storage driver.
	Close() error
}

Source Files

storage.go

Directories

PathSynopsis
Godeps/_workspace/src/github.com/google/cadvisor/storage/bigquery
Godeps/_workspace/src/github.com/google/cadvisor/storage/bigquery/client
Godeps/_workspace/src/github.com/google/cadvisor/storage/bigquery/client/example
Godeps/_workspace/src/github.com/google/cadvisor/storage/influxdb
Godeps/_workspace/src/github.com/google/cadvisor/storage/memory
Godeps/_workspace/src/github.com/google/cadvisor/storage/redis
Godeps/_workspace/src/github.com/google/cadvisor/storage/test
Version
v0.19.0
Published
Jun 10, 2015
Platform
linux/amd64
Imports
1 packages
Last checked
57 seconds ago

Tools for package owners.