sinks

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

This package implements the various storage backends supported by heapster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSinkManager

type ExternalSinkManager interface {
	Sink
	// SetSinks changes the sinks to be used and registers/unregisters
	// them accordingly.
	SetSinks([]v1.ExternalSink) error
}

func NewExternalSinkManager

func NewExternalSinkManager(externalSinks []sink_api.ExternalSink, cache cache.Cache, syncFrequency time.Duration) (ExternalSinkManager, error)

NewExternalSinkManager returns an external sink manager that will manage pushing data to all the sinks in 'externalSinks', which is a map of sink name to ExternalSink object.

type Sink added in v0.17.0

type Sink interface {
	// Sync starts exporting stats periodically to backends.
	// Returns a channel that can be used to stop syncing.
	Sync() chan<- struct{}
	DebugInfo() string
}

TODO: Once in-memory storage is implemented, make the manager extract data from the in-memory store periodically.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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