datasource

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cadvisor

type Cadvisor interface {
	// GetAllContainers returns container spec and stats for the root cgroup as 'root' and
	// and all containers on the 'host' as 'subcontainers'.
	GetAllContainers(host Host, start, end time.Time, resolution time.Duration) (subcontainers []*api.Container, root *api.Container, err error)
}

func NewCadvisor

func NewCadvisor() Cadvisor

type Host

type Host struct {
	IP       string
	Port     int
	Resource string
}

type Kubelet

type Kubelet interface {
	// GetContainer returns container spec and stats for the container pointed to by 'host.Resource', running on the kubelet specified in 'host.IP'.
	// TODO(vishh): Once kubelet exposes a get all stats API, modify this API to return stats for all Pods.
	GetContainer(host Host, start, end time.Time, resolution time.Duration) (containers *api.Container, err error)

	// Get stats for all non-Kubernetes containers.
	GetAllRawContainers(host Host, start, end time.Time, resolution time.Duration) ([]api.Container, error)
}

func NewKubelet

func NewKubelet(kubeletConfig *kube_client.KubeletConfig) (Kubelet, error)

Jump to

Keyboard shortcuts

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