manager

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: 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 {
	// 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

type Uri struct {
	Key string
	Val url.URL
}

func (*Uri) Set

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

func (*Uri) String

func (u *Uri) String() string

type Uris

type Uris []Uri

func (*Uris) Set

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

func (*Uris) String

func (us *Uris) String() string

Jump to

Keyboard shortcuts

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