package storage

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

Index

Variables

var ArgDbBufferDuration = flag.Duration("storage_driver_buffer_duration", 60*time.Second, "" /* 131 byte string literal not displayed */)
var ArgDbHost = flag.String("storage_driver_host", "localhost:8086", "database host:port")
var ArgDbIsSecure = flag.Bool("storage_driver_secure", false, "use secure connection with database")
var ArgDbName = flag.String("storage_driver_db", "cadvisor", "database name")
var ArgDbPassword = flag.String("storage_driver_password", "root", "database password")
var ArgDbTable = flag.String("storage_driver_table", "stats", "table name")
var ArgDbUsername = flag.String("storage_driver_user", "root", "database username")

Functions

func RegisterStorageDriver

func RegisterStorageDriver(name string, f StorageDriverFunc)

Types

type StorageDriver

type StorageDriver interface {
	AddStats(ref info.ContainerReference, stats *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
}

func New

func New(name string) (StorageDriver, error)

type StorageDriverFunc

type StorageDriverFunc func() (StorageDriver, error)

Source Files

common_flags.go 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/elasticsearch
Godeps/_workspace/src/github.com/google/cadvisor/storage/influxdb
Godeps/_workspace/src/github.com/google/cadvisor/storage/redis
Godeps/_workspace/src/github.com/google/cadvisor/storage/statsd
Godeps/_workspace/src/github.com/google/cadvisor/storage/statsd/client
Godeps/_workspace/src/github.com/google/cadvisor/storage/stdout
Godeps/_workspace/src/github.com/google/cadvisor/storage/test
Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
linux/amd64
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.