manager

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Housekeep collects data from all the configured sources and
	// stores the data to all the configured sinks.
	Housekeep()

	// HousekeepModel performs housekeeping for the Model entity
	HousekeepModel()

	// Export the latest data point of all metrics.
	ExportMetrics() ([]*sink_api.Point, error)

	// Set the sinks to use
	SetSinkUris(Uris) error

	// Get the sinks currently in use
	SinkUris() Uris

	// Get a reference to the cluster entity of the model, if it exists.
	GetCluster() model.Cluster
}

Manager provides an interface to control the core of heapster. Implementations are not required to be thread safe.

func NewManager

func NewManager(sources []source_api.Source, sinkManager sinks.ExternalSinkManager, res, bufferDuration time.Duration, useModel bool, modelRes time.Duration, align bool) (Manager, error)

type Uri added in v0.17.0

type Uri struct {
	Key string
	Val url.URL
}

func (*Uri) Set added in v0.17.0

func (u *Uri) Set(value string) error

func (*Uri) String added in v0.17.0

func (u *Uri) String() string

type Uris added in v0.17.0

type Uris []Uri

func (*Uris) Set added in v0.17.0

func (us *Uris) Set(value string) error

func (*Uris) String added in v0.17.0

func (us *Uris) String() string

Jump to

Keyboard shortcuts

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