package storage

import "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 ListDrivers

func ListDrivers() []string

func RegisterStorageDriver

func RegisterStorageDriver(name string, f StorageDriverFunc)

Types

type StorageDriver

type StorageDriver interface {
	AddStats(cInfo *info.ContainerInfo, 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

Version
v0.52.1 (latest)
Published
Mar 5, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
3 days ago

Tools for package owners.