kubelet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "v1"
)

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

func NewKubeletMetricsSource

func NewKubeletMetricsSource(host Host, client *KubeletClient, nodeName string, hostName string, hostId string) MetricsSource

func NewKubeletProvider

func NewKubeletProvider(uri *url.URL) (MetricsSourceProvider, error)

Types

type ErrNotFound

type ErrNotFound struct {
	// contains filtered or unexported fields
}

func (*ErrNotFound) Error

func (err *ErrNotFound) Error() string

type Host

type Host struct {
	IP       string
	Port     int
	Resource string
}

type KubeletClient

type KubeletClient struct {
	// contains filtered or unexported fields
}

func NewKubeletClient

func NewKubeletClient(kubeletConfig *kube_client.KubeletClientConfig) (*KubeletClient, error)

func (*KubeletClient) GetAllRawContainers

func (self *KubeletClient) GetAllRawContainers(host Host, start, end time.Time) ([]cadvisor.ContainerInfo, error)

Get stats for all non-Kubernetes containers.

func (*KubeletClient) GetPort

func (self *KubeletClient) GetPort() int

func (*KubeletClient) GetSummary

func (self *KubeletClient) GetSummary(host Host) (*stats.Summary, error)

Jump to

Keyboard shortcuts

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