manager

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: Apache-2.0 Imports: 14 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 {
	// 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.
	GetModel() model.Model

	// Starts the manager.
	Start()

	// Stops the manager.
	Stop()
}

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,
	c cache.Cache, useModel bool, modelRes, modelDuration time.Duration) (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