sinks

package
v0.18.5-skytap Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: Apache-2.0 Imports: 20 Imported by: 2

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

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