datasource

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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) (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) (containers *api.Container, err error)

	// Get stats for all non-Kubernetes containers.
	GetAllRawContainers(host Host, start, end time.Time) ([]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