schema

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	// The Update operation populates the Cluster from a cache.
	Update(cache.Cache) error

	// The Get operations extract internal types from the Cluster.
	// The returned time.Time values signify the latest metric timestamp in the cluster.
	// TODO(alex): Returning pointers is NOT safe, will be addressed in a later PR
	GetAllClusterData() (*ClusterInfo, time.Time, error)
	GetAllNodeData(string) (*NodeInfo, time.Time, error)
	GetAllPodData(string, string) (*PodInfo, time.Time, error)
}

func NewCluster

func NewCluster(tsConstructor func() store.TimeStore) Cluster

NewCluster returns a new Cluster, given a TimeStore constructor function.

type ClusterInfo

type ClusterInfo struct {
	InfoType
	Namespaces map[string]*NamespaceInfo // key: Namespace Name
	Nodes      map[string]*NodeInfo      // key: Hostname
}

type ContainerInfo

type ContainerInfo struct {
	InfoType
}

type InfoType

type InfoType struct {
	Metrics map[string]*store.TimeStore // key: Metric Name
	Labels  map[string]string           // key: Label
}

type NamespaceInfo

type NamespaceInfo struct {
	InfoType
	Pods map[string]*PodInfo // key: Pod Name
}

type NodeInfo

type NodeInfo struct {
	InfoType
	Pods           map[string]*PodInfo       // key: Pod Name
	FreeContainers map[string]*ContainerInfo // key: Container Name
}

type PodInfo

type PodInfo struct {
	InfoType
	UID        string
	Containers map[string]*ContainerInfo // key: Container Name
}

Jump to

Keyboard shortcuts

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